Title: Verification city as post code
Last modified: December 10, 2024

---

# Verification city as post code

 *  Resolved [Humaniza](https://wordpress.org/support/users/humaniza/)
 * (@humaniza)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/verification-city-as-post-code/)
 * Hi!
 * We have a problem with the checkout step. It verifies the city as if it were 
   the post code and it always gives an error.
 * ![](https://wordpress.org/6eafab52-cfcf-45fb-a143-9ef3721b4d35)
 * At the moment, so that the error does not occur and we can receive orders, we
   have put this code that recognizes all postal codes as correct. Now on this development
   page the code is disabled, to see the error you just have to pretend that you
   are making a purchase.
 * `add_filter( 'woocommerce_validate_postcode' , 'mycode_override_postcode_check',
   99, 3 );
   function mycode_override_postcode_check( $valid, $postcode, $country){
   return true;}
 * Thank you,
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fverification-city-as-post-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/verification-city-as-post-code/#post-18203289)
 * [@humaniza](https://wordpress.org/support/users/humaniza/)
 *  Hi mate,
 * We recommend submitting a support ticket through the following link: [https://urbiport1.atlassian.net/servicedesk/customer/portal/2](https://urbiport1.atlassian.net/servicedesk/customer/portal/2).
 * This will allow us to investigate further. 
   Best regards.
 *  Thread Starter [Humaniza](https://wordpress.org/support/users/humaniza/)
 * (@humaniza)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/verification-city-as-post-code/#post-18205577)
 * Done,
 * [https://urbiport1.atlassian.net/servicedesk/customer/portal/2/QLS-96](https://urbiport1.atlassian.net/servicedesk/customer/portal/2/QLS-96)
 * Thank you!
    -  This reply was modified 1 year, 5 months ago by [Humaniza](https://wordpress.org/support/users/humaniza/).
 *  [lurym](https://wordpress.org/support/users/lurym/)
 * (@lurym)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/verification-city-as-post-code/#post-18408544)
 * I struggled with it as well. Changing validation in functions.php didn’t work,
   but what helped is modification of `wp_options` table for `wooccm_billing` setting.
   Find `billing_city` part of the setting and replace `s:8:"validate";a:1:{i:0;
   s:8:"postcode";}` and try to replace with `s:8:"validate";a:0:{}`. Obviously 
   it’s risky to modify DB by hand, but I found that’s the only option if I want
   to continue using the plugin.

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

The topic ‘Verification city as post code’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [lurym](https://wordpress.org/support/users/lurym/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/verification-city-as-post-code/#post-18408544)
 * Status: resolved