Address restriction does not apply to existing addresses

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
NopCommerce version 3.8

Adding an address restriction against a state or country does not impact addresses already saved in the system. For example, my store used to allow shipping to Mexico. Now, due to a change in regulations, I can no longer ship to Mexico. So I add a restriction to stop Mexico as a ship to country at checkout. If customers have added Mexico as a ship to address in the past then they are still allowed to choose the existing Mexico address at checkout. So, the restriction seems to only apply to NEW addresses. This is certainly a bug, right?

Step to recreate:

1. Create a customer account
2. Make sure shipping to Mexico is allowed
2. Enter an address into the system using Mexico as the ship to country
3. Place an order using this address
4. Change shipping restrictions to NOT allow shipping to Mexico (from admin panel)
5. Using the same customer account, place another order. You will be allowed to choose the address showing Mexico as the country.
6 years ago
stehta wrote:
4. Change shipping restrictions to NOT allow shipping to Mexico (from admin panel)

Where exactly do you restrict it? Please provide more info
6 years ago
Country > select countries which you do Not want shipping available
6 years ago
Thanks a lot! It works fine in 4.00. But I can confirm the issue when "Shipping to the same address" option is used. I've described it in this work item. Thanks again
6 years ago
Done. Please see this commit for more details
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.