• Resolved fastfingaz

    (@fastfingaz)


    Hi,

    I’ve setup Shipping with different Flat Rate Shipping methods using postcodes. The challenge I have is this;

    On the Cart page, the system accepts the Postcode and generates the appropriate shipping rate for that postcode.

    But once I proceed to the Checkout page, the shipping method disappears as soon as I enter information into the Street Address textfield.

    Once it does, the There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help.

    I’ve attached screenshots of the Checkout page below.

    Empty Street Address textfield

    With Street Address textfield

    Please help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Can you share a screenshot of your shipping zone setup? I’m particularly interested in the zipcodes in your zone and how that matches with the address you’re using for testing ??

    Also, is there any chance you can forward a publicly accessible URL for your store?

    Thanks!

    Thread Starter fastfingaz

    (@fastfingaz)

    Hi,

    Thanks for replying. While I searched through the internet yesterday, I discovered that Postcode shipping wasn’t enabled for Nigeria.

    I’ve attached the screenshot below.

    Shipping Zone Screenshot

    Site

    Thread Starter fastfingaz

    (@fastfingaz)

    Hi,

    I fixed it in Woocommerce myself. I realized that Postcodes weren’t enabled for Nigeria so I went into the Woocommerce folder and edited the class-wc-countries.php file.

    The existing code on line 1082 was `
    NG’ => array(
    ‘postcode’ => array(
    ‘label’ => __( ‘Postcode’, ‘woocommerce’ ),
    ‘required’ => false,
    ‘hidden’ => true,
    ),
    ‘state’ => array(
    ‘label’ => __( ‘State’, ‘woocommerce’ ),
    ),
    )

    
    
    So I edited it to 
    
    

    NG’ => array(
    ‘postcode’ => array(
    ‘label’ => __( ‘ZIP’, ‘woocommerce’ ),
    ),
    ‘state’ => array(
    ‘label’ => __( ‘State’, ‘woocommerce’ ),
    ),
    )
    `

    That fixed it. I’m going to make a copy of the Woocommerce folder into my theme so the next Woocommerce update doesn’t overwrite my changes.

    Can an admin please help me hide the link in my previous reply? Thank you!

    • This reply was modified 4 years, 9 months ago by fastfingaz.
    • This reply was modified 4 years, 9 months ago by fastfingaz.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shipping Option Disappears’ is closed to new replies.