• Resolved jeremyclose

    (@jeremyclose)


    I’ve been fighting this issue for a while now and while I can get it to happen most of the time, it is not fully consistent. I have searched the forums and found nothing that matches this situation. I have this issue in both Chrome and Firefox. There are no error logs or JS errors related to this or anything else. I have tested this on multiple live sites, on a local dev copy of one site, and a clean WP + WC + Storefront theme install.

    When checking out as a guest, with United States (US) selected, changing the state dropdown does not refresh the shipping options, nor do other address fields. Changing country does, changing other state or regions does, but not US State selection.

    For reference, I have setup 2 shipping zones, a single state, and elsewhere. The single state has 2 shipping methods, pickup and free delivery. Elsewhere has a single method of flat rate.

    This can happen when logged in, but it can also work as expected. I can’t find a consistent pattern.

    ** Edit: This is not limited to just US and States.

    • This topic was modified 3 years, 9 months ago by jeremyclose.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jeremyclose

    (@jeremyclose)

    Additional testing is showing that perhaps it does work, but not as I would expect.

    It appears that all required fields must be filled in for it to do the shipping recalculation. However, since the store is setup to only consider state or possibly zip code, then I would expect it to recalculate the shipping any time those are changed, regardless of other fields being filled or not.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @jeremyclose,

    Based on what you described and what currently shows on the site, it sounds like the “Hide shipping costs until an address is entered” option is enabled on WooCommerce > Settings > Shipping > Shipping options page and the “Shipping Destination” is set to “Force shipping to the customer billing address”. Is this correct?

    Thread Starter jeremyclose

    (@jeremyclose)

    Surprisingly, no. On the live site linked, “Hide shipping costs until an address is entered” is disabled (we have hidden the entire shipping section via CSS on the Cart page for other reasons), and “Shipping destination” is set to “Default to customer billing address”.

    Additional info, the clean install testing environment is all default settings other than adding sample products and adding some shipping zones.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @jeremyclose,

    Thanks for clarifying that. Can you also let me know what options you are using on the WooCommerce > Settings > General page? It looks like the site only sells to specific countries (the US), but what options are being used for “Shipping location(s)” and “Default customer location”?

    Thread Starter jeremyclose

    (@jeremyclose)

    Yes, US only. Shipping locations “Ship to all countries you sell to” and Default custom location is “Shop base address”.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @jeremyclose,

    I’m able to replicate this behavior as well, and it doesn’t appear to be related to solely to those settings (as other options respond in the same way).

    It looks like from WC version 4.5+ there have been a few changes to how the updates work on the checkout page (especially with regards to specific settings and validation).

    You are correct that so long as a street address has been entered already, any changes to the fields below that (State, Zip, etc) will trigger an update to the info (and look to see if a different Shipping Zone/rates should be used).

    This behavior should help with unnecessary processes and site load, but if you think it should function differently (like not requiring a street address to update rates/look for other shipping zones), I’d suggest creating an issue on the public Github repo so the developers can respond.

    Thanks!

    Thread Starter jeremyclose

    (@jeremyclose)

    Thanks for digging in and validating Shaun! The reasoning for why it wouldn’t work as anticipated makes sense as well. I was looking at it purely from a “testing the conditionals” view.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shipping options not updating on US address change’ is closed to new replies.