• Resolved quoindesign

    (@quoindesign)


    Post code validation fails regularly for UK, Netherlands, Swiss addresses.

    I’ve tried removing validation altogether with this code, and it tests fine:

    /**
     * Remove Zip Code Validation
     * Thanks to BusinessBloomer.com (https://businessbloomer.com/woocommerce-disable-postcodezip-field-checkout-page/)
    */
    
    add_filter( 'woocommerce_default_address_fields' , 'bbloomer_override_postcode_validation', 99 );
    
    function bbloomer_override_postcode_validation( $address_fields ) {
      $address_fields['postcode']['validate'] = false;
    
    return $address_fields;
    }

    But users in those countries are still seeing the problem.

    Here are some screen caps:

    View post on imgur.com

    When I enter the exact info shown on these screen caps, validation doesn’t fail.

    Thanks in advance for any help you can provide!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you give this a try?

    Change
    $address_fields['postcode']['validate'] = false;

    To
    unset( $address_fields['postcode']['validate']);

    Thread Starter quoindesign

    (@quoindesign)

    I’m testing that and will report back. This problem has been only appearing when people visit from Europe, so I need to wait for someone there to try it out.

    Thanks.

    Thread Starter quoindesign

    (@quoindesign)

    Unfortunately, after making the suggested change on Thursday, zip code validation failed again on Friday.

    Any other possibilities?

    Thread Starter quoindesign

    (@quoindesign)

    Just checking to see if anyone has anymore thoughts on this issue? It’s really a huge problem that’s impacting conversion.

    Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi there,

    It looks like that error message is coming from the payment gateway on your site, not WooCommerce core. Your best bet for support would be to get in touch with the developer of the payment gateway you’re using.

    Best,

    Ross

    Thread Starter quoindesign

    (@quoindesign)

    Yes, you’re right. We were notified by the developer that that was the problem. We’ll be replacing the payment provider.

    Thank you!!

    • This reply was modified 5 years, 1 month ago by quoindesign.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post Code Validation Fails’ is closed to new replies.