Does SKU have to be unique across all stores? #3965
Unanswered
white-lukas
asked this question in
Ideas
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Currently, the SKU is unique across the whole system as it represents a real stock product for inventory purposes. We will discuss internally whether this is something we can support in the future. I will leave this issue open and give an update soon. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Description
We have a multi store setup with 2 sites/stores that have a separate product catalog (same product type but only propagated to 1 site), but they do have a few products that are the same and so have the sku, but this is giving errors as Craft expects the sku's to be unique across all stores?
Products are imported from their system, so creating a separate product type that is shared is not really an option.
Is this expected behavior that the sku's can't be the same for different stores if they are basically completely separate?
Or would I need to prefix the sku's in craft and removing the prefix again when adding to the cart?
Steps to reproduce
Expected behavior
Sku's to be only unique on store level
Actual behavior
Sku's need to be unique across all stores
Craft CMS version
5.6.9.1
Craft Commerce version
5.3.3
PHP version
8.3
Operating system and version
Ubuntu 24
Database type and version
MySQL
Image driver and version
No response
Installed plugins and versions
Beta Was this translation helpful? Give feedback.
All reactions