spree-multi-domain
spree-multi-domain copied to clipboard
Unable to set store for Spree::StockLocation
At this point there's no option to assign a Spree::Store
to a Spree::StockLocation
.
Variant quantity will be checked for a Spree::StockLocation
which is assigned to the current store, so a validation error (not enough quantity) will be thrown whenever you try to use a variant for your line item.
Setting a store_id in the spree_stock_locations
table manually fixed this problem for us. There should be an option to select a store per stock location in the admin though.
I didn't test this on a Spree installation with one store. I did test it with in an installation with multiple stores, which failed.