You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to save a shipping zone I received the error message saying the name 'Canada' was already in use, however I had no other shipping zones setup. Looking in the database I saw no records in the shipping zones tables either, nor anything named 'Canada' in the shipping methods or shipping category sections. Eventually I noticed that i had a tax zone named 'Canada', and when changing this to 'Canadab' I was able to save my shipping zone. However, going back to the tax zone I was still able to save it as 'Canada' no problem.
Steps to reproduce
Create a tax zone called 'Canada'
Attempt to create a shipping zone called 'Canada'
Expected behavior
Save the shipping zone
Actual behavior
Unable to save, seemingly because there is a tax zone present with the same name
Craft CMS version
4.5.3
Craft Commerce version
4.2.11
PHP version
8.1
Operating system and version
macOS 13.3 (22E252)
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
TomFaust
changed the title
[4.x]: Shipping zone can't have the name of a tax zone
[4.x]: Shipping zone can't have the same name as a tax zone
Oct 25, 2023
What happened?
Description
While trying to save a shipping zone I received the error message saying the name 'Canada' was already in use, however I had no other shipping zones setup. Looking in the database I saw no records in the shipping zones tables either, nor anything named 'Canada' in the shipping methods or shipping category sections. Eventually I noticed that i had a tax zone named 'Canada', and when changing this to 'Canadab' I was able to save my shipping zone. However, going back to the tax zone I was still able to save it as 'Canada' no problem.
Steps to reproduce
Expected behavior
Save the shipping zone
Actual behavior
Unable to save, seemingly because there is a tax zone present with the same name
Craft CMS version
4.5.3
Craft Commerce version
4.2.11
PHP version
8.1
Operating system and version
macOS 13.3 (22E252)
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: