#Should a new Store's default_sales_channel be set?
8 messages · Page 1 of 1 (latest)
Should a store always require a default_sales_channel? I noticed that if one isn't set and if instead it is null we face issues in the Admin UI when you go to the Sales Channel screen.
As of now, it seems to always be set, because of the createDefault loader. But i'm wondering if we could face potential bugs down the line if we leave the default_sales_channel null.
Wouldn't a potential better option be to add a store_id column to SalesChannel , this would ensure that a Store <--> SalesChannel mapping always exists.
All of my points from above can also be said for ShippingProfile
I think it could make sense to have the store id on the ss. They will not be shared across the stores in your project right?
Not in the core because multiple stores does not exists, it would require you to make some customisation. Some investigation would be required around the product, ss, store.
I don’t think there is much to do in fact but just to be sure that a product from a store can only be assigned to a store sales channel for example