Support » Plugin: WooCommerce » [Plugin: WooCommerce – excelling eCommerce] zipcode issues

  • hi

    some countries such as Ireland do not have zipcodes, yet the person checking out is required to enter this, how can this be changed to not required if it does not exist?

    also a second question, how can i upload a list of countries I want to ship to rather than using the list you supply which is rather too long.


Viewing 7 replies - 1 through 7 (of 7 total)
  • maggiemolloy


    i saw your question when trying to fix this problem myself. ive since got it to work if you want to know how?




    to be honest I gave up on it as the woocommerce team dont have the decency to reply or offer a workaround given the money they want for themes and plugins, they simply offer extremely poor service for their core item which is required to spend money with them

    in my opinion woocommerce team are slowly letting themselves down

    yes maggie please do post how you did this




    Hi maggie,

    please post the content here if you can, I’m having the same problem as scruffy!!



    Hi guys, here’s what you need to do, from an Irish perspective:

    Go to your hosting package (Reg365 or whoever) and go to the file /wp-content/plugins/woocommerce/classes/class-wc-countries.php

    What you want to do is to change the requirement to ‘false’ instead of ‘true’

    ie ‘postcode’ => array(
    ‘label’ => __(‘Postcode/Zip’, ‘woocommerce’),
    ‘placeholder’ => __(‘Postcode/Zip’, ‘woocommerce’),
    ‘required’ => false

    there are two places you need to do this, if you want, I can get the other place or sent you my file which you can copy and paste

    Hi Paddy,

    Can you send me on the location of the other file that needs to be updated? I am having the same issue!


    Same issue here. Can you please send us the file or location? Thank you so much.

    The following code worked for me with on caveat, it makes ALL postcodes optional. Add this to your themes functions.php so future wooCommerce updates don’t overwrite it.

    function override_postcode( $fields ) {
         $fields['billing']['billing_postcode']['required'] = false;
         $fields['shipping']['shipping_postcode']['required'] = false;
         return $fields;
    add_filter( 'woocommerce_checkout_fields' , 'override_postcode' );
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WooCommerce – excelling eCommerce] zipcode issues’ is closed to new replies.