Title: Post Code Validation Fails
Last modified: January 30, 2020

---

# Post Code Validation Fails

 *  Resolved [quoindesign](https://wordpress.org/support/users/quoindesign/)
 * (@quoindesign)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/post-code-validation-fails/)
 * 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](https://imgur.com/4rkLpO9)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpost-code-validation-fails%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [crslz](https://wordpress.org/support/users/crslz/)
 * (@crslz)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/post-code-validation-fails/#post-12382608)
 * Can you give this a try?
 * Change
    `$address_fields['postcode']['validate'] = false;`
 * To
    `unset( $address_fields['postcode']['validate']);`
 *  Thread Starter [quoindesign](https://wordpress.org/support/users/quoindesign/)
 * (@quoindesign)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/post-code-validation-fails/#post-12383213)
 * 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](https://wordpress.org/support/users/quoindesign/)
 * (@quoindesign)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/post-code-validation-fails/#post-12394355)
 * Unfortunately, after making the suggested change on Thursday, zip code validation
   failed again on Friday.
 * Any other possibilities?
 *  Thread Starter [quoindesign](https://wordpress.org/support/users/quoindesign/)
 * (@quoindesign)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/post-code-validation-fails/#post-12398871)
 * 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](https://wordpress.org/support/users/rossviviano/)
 * (@rossviviano)
 * Automattic Happiness Engineer
 * [6 years, 3 months ago](https://wordpress.org/support/topic/post-code-validation-fails/#post-12461718)
 * 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](https://wordpress.org/support/users/quoindesign/)
 * (@quoindesign)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/post-code-validation-fails/#post-12461723)
 * 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 6 years, 3 months ago by [quoindesign](https://wordpress.org/support/users/quoindesign/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Post Code Validation Fails’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [quoindesign](https://wordpress.org/support/users/quoindesign/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/post-code-validation-fails/#post-12461723)
 * Status: resolved