Title: is not a valid postcode / ZIP
Last modified: June 30, 2020

---

# is not a valid postcode / ZIP

 *  Resolved [Fedorka](https://wordpress.org/support/users/fedorka/)
 * (@fedorka)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/is-not-a-valid-postcode-zip/)
 * Hi,
    I have the latest version of WordPress, Woocommerce and Woocommerce Checkout
   Manager. And I have a problem with a billing postcode field. It is setted as 
   not required. But even when I fill it with valid data I get a validation error“
   is not a valid postcode / ZIP.” for unsigned user. I tried to deactivate the 
   Woocommerce Checkout Manager Plugin. There is no error for unsigned user. So 
   I supposed that the post code data is not passed to validation function. When
   the user is logged in the WC validation function can take the postcode data from
   customer profile. I add a function for the filter:
 * add_filter( ‘woocommerce_checkout_postcode_validation_notice’, ‘test_post_code_validation’);
   
   function test_post_code_validation($postcode_validation_notice, $country, $formatted_postcode){
   $country = WC()->customer->get_billing_country(); $postcode_validation_notice.
   = $country.’, ‘.$formatted_postcode; return $postcode_validation_notice; }
 * And my supposition approved. A can see the country code, but the postcode is 
   empty when the checkout posted data is validated.
 * Be so kind to help me with this issue.
    -  This topic was modified 5 years, 11 months ago by [Fedorka](https://wordpress.org/support/users/fedorka/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fis-not-a-valid-postcode-zip%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Fedorka](https://wordpress.org/support/users/fedorka/)
 * (@fedorka)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/is-not-a-valid-postcode-zip/#post-13058365)
 * Be si kind to answer. We have the same problem on the second site too.
 *  Plugin Author [beluserra](https://wordpress.org/support/users/beluserra/)
 * (@beluserra)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/is-not-a-valid-postcode-zip/#post-13377008)
 * Hi [@fedorka](https://wordpress.org/support/users/fedorka/) we are really sorry
   for the delay, could you please test version 5.2.7 and let us know if is it solved?
   
   regards

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

The topic ‘is not a valid postcode / ZIP’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-checkout-manager/assets/icon-256x256.jpg?rev
   =2911736)
 * [Checkout Field Manager (Checkout Manager) for WooCommerce](https://wordpress.org/plugins/woocommerce-checkout-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-checkout-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-checkout-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-checkout-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [beluserra](https://wordpress.org/support/users/beluserra/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/is-not-a-valid-postcode-zip/#post-13377008)
 * Status: resolved