WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
zipcode issues (8 posts)

  1. scruffy1
    Member
    Posted 1 year ago #

    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.

    thanks

    http://wordpress.org/extend/plugins/woocommerce/

  2. maggiemolloy
    Member
    Posted 1 year ago #

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

    maggie

  3. scruffy1
    Member
    Posted 1 year ago #

    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

    thanks

  4. paddyphilipryan
    Member
    Posted 1 year ago #

    Hi maggie,

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

  5. paddyphilipryan
    Member
    Posted 1 year ago #

    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

  6. tristanfaganguimond
    Member
    Posted 1 year ago #

    Hi Paddy,

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

    Cheers,
    Tristan

  7. Sakshin
    Member
    Posted 1 year ago #

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

  8. AndrewAdcock
    Member
    Posted 1 year ago #

    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' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.