Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

WooCommerce - Checkout Zip Code Issue #61811

Open IanJonesTAM opened 2 years ago

IanJonesTAM commented 2 years ago

Quick summary

On checkout when folks enter their zip code to calculate shopping the state is not updated, for example, https://d.pr/i/3lWPY4

Example site: https://shop.tumblr.com/cart/

Is it possible to update the state when a zip code is entered, please?

If so, could this be expanded for folks in other countries, for example, if someone in the UK enters just their post code, their county is updated.

Steps to reproduce

  1. Visit https://shop.tumblr.com/ and go to 'Browse Shop'
  2. Select an item and add to Cart.
  3. Click 'View Cart'
  4. Click 'Calculate Shipping'
  5. Enter a non-Arizona zip code (90202 for example).
  6. Press 'Update'
  7. Note that Arizona is still the selected state despite the zip code that was entered is in California.

What you expected to happen

We would like the state to be updated when a zip code is entered.

What actually happened

The default state was retained.

Context

No response

Simple, Atomic or both?

No response

Theme-specific issue?

No response

Browser, operating system and other notes

All browsers and devices as this is standard Woo behavior.

Reproducibility

Consistent

Severity

All

Available workarounds?

No but the platform is still usable

Workaround details

No response

edequalsawesome commented 2 years ago

Added as an enhancement request to the WooCommerce repo here: https://github.com/woocommerce/woocommerce/issues/32059

FWIW it looks like this extension will do what you're looking for in the meantime! https://woocommerce.com/products/postcodeaddress-validation/

IanJonesTAM commented 2 years ago

Thank you @edequalsawesome