• Resolved Atiq

    (@sleeptech)


    Hi,

    I Tred to make no requirement filed postcode on my website checkout page. below code, I used already but it does not work for postcode other files are works fine.

    add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );
    function custom_override_checkout_fields( $fields ) {
    $fields[‘billing’][‘billing_postcode’][‘required’] = false;
    $fields[‘shipping’][‘shipping_postcode’][‘required’] = false;
    return $fields;
    }

    please help me with this.

    Or have an option for making it visible for UAE or the country where not show zip-postcode filed.
    please help me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Riaan K.

    (@riaanknoetze)

    Hi there,

    I’ve just tested the checkout on my local testing website without having added your code – On my side, I’m not seeing the postcode field at all when selecting UAE:


    Link to image: https://d.pr/i/JkFFLG

    Just to check, are you using a checkout field editor plugin or is your theme overriding any of the checkout page templates? If you’re unsure, please share a copy of your status report as found under **WooCommerce > Status**.

    Thanks!

    Thread Starter Atiq

    (@sleeptech)

    Hi,

    Yes, if you select the United Arab amirate, the postcode area ar hid automatically.

    but showing the error postcode is required for your reference screenshot below.
    HERE

    have an option for making it visible for UAE or the country where not show zip-postcode filed.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @sleeptech. Sorry we missed your response. Have you been able to resolve this issue? If not, could you please share the screenshot again that shows the issue. Also, please share your system report with me. You can find it by going to WooCommerce > Status > Get system report and then click Copy for support to be able to paste it in your reply.

    You may have already solved the issue. If there is no update on this thread within the next week, we will go ahead and resolve the thread. In that case, please feel free to start a new thread if you have additional questions.

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

The topic ‘How i Make no requirement billing postcode’ is closed to new replies.