Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address.state_id not cleared when changed to a country without states #6598

Closed
mleglise opened this issue Jul 16, 2015 · 0 comments
Closed

Comments

@mleglise
Copy link
Contributor

To reproduce:

  • /checkout/address: enter United States, select a state, and fill out address, click "Save and Continue"
  • from /checkout/delivery, click link to go back to /checkout/address
  • select new country (ex: Chile), which hides the state select box.
  • "Save and Continue" does not submit the state_id, but the value is preserved in the spree_address model instance.

This can cause problems with making certain shipping methods available (if they are available based on State-based Zones) when they are not meant for that country. Example: Given Free US Shipping for some US states, now customer can get free shipping to Chile.

tanmay3011 added a commit to vinsol/spree that referenced this issue Mar 8, 2016
tanmay3011 added a commit to vinsol/spree that referenced this issue Mar 8, 2016
tanmay3011 added a commit to vinsol/spree that referenced this issue Mar 9, 2016
damianlegawiec added a commit that referenced this issue Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants