Title: Postcode validation issue for countries without ZIP/postcode (e.g. UAE)
Last modified: June 16, 2026

---

# Postcode validation issue for countries without ZIP/postcode (e.g. UAE)

 *  [gleenk](https://wordpress.org/support/users/gleenk/)
 * (@gleenk)
 * [1 day, 16 hours ago](https://wordpress.org/support/topic/postcode-validation-issue-for-countries-without-zip-postcode-e-g-uae/)
 * Hello,
 * we found an issue related to postcode validation when using WooCommerce Checkout
   Manager.Scenario
    - Customer selects **United Arab Emirates** as billing/shipping country.
    - WooCommerce correctly hides the postcode field because UAE does not use ZIP/
      postal codes.
    - However, when the customer submits the checkout/payment form, validation fails
      with an error saying that the postcode is required.
    - If we temporarily disable the **Required** option for the postcode field in
      WooCommerce Checkout Manager, checkout works as expected.
 * This suggests that the field is correctly hidden on the frontend according to
   the country locale, but it is still treated as required during checkout validation.
   Expected behavior
 * If WooCommerce defines:
 *     ```wp-block-code
       $locale[$country]['postcode']['required'] === false
       ```
   
 * then the plugin should automatically skip postcode validation for that country,
   while keeping postcode required for countries where WooCommerce defines it as
   mandatory.Possible approach
 * One possible solution could be to rely on WooCommerce country locale settings(`
   WC()->countries->get_country_locale()`) and dynamically set the required flag
   for `billing_postcode` and `shipping_postcode` according to the selected country.
 * We tested a custom filter that adjusts the `required` property based on `postcode.
   required`, but we did not deploy it because we’d prefer a plugin-level solution
   if possible.
 * Could you please investigate whether WooCommerce Checkout Manager is overriding
   WooCommerce’s native postcode requirements during checkout validation?
 * Ideally, the fix should:
    - keep postcode required for countries that use it;
    - automatically make it optional for countries where WooCommerce sets `postcode.
      required = false`;
    - avoid hardcoded country exceptions where possible.
 * Thank you.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpostcode-validation-issue-for-countries-without-zip-postcode-e-g-uae%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 0 replies
 * 1 participant
 * Last reply from: [gleenk](https://wordpress.org/support/users/gleenk/)
 * Last activity: [1 day, 16 hours ago](https://wordpress.org/support/topic/postcode-validation-issue-for-countries-without-zip-postcode-e-g-uae/)
 * Status: not resolved