• Resolved amdon

    (@amdon)


    Using your plugin, I turned off validation for the email field, but still when someone types an email without @ or .com, it throws an error. I want to achieve that the user can type any text in the email field without any validation as to how they can do it?

    I also tried adding this code to function.php but it still didn’t work as expected:

    add_filter( 'woocommerce_checkout_fields', 'no_email_validation' );

    function no_email_validation( $fields ) {

    unset( $fields[ 'billing' ][ 'billing_email' ][ 'validate' ] );
    unset( $fields[ 'shipping' ][ 'shipping_email' ][ 'validate' ] );

    return $fields;
    }
Viewing 1 replies (of 1 total)
  • Plugin Support Dina S.

    (@themehighsupport)

    We would like to let you know that we are using the WooCommerce default email validation in our plugin. You can check the same by temporarily deactivating our plugin Checkout Field Editor for WooCommerce.

    Unfortunately, there is no direct option available in the current version of our plugin to achieve this requirement.

    Please be informed that if you remove the default WooCommerce field or change the expected behavior of the default WooCommerce field then there can be unexpected errors.

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Email validation field’ is closed to new replies.