spree-multi-domain icon indicating copy to clipboard operation
spree-multi-domain copied to clipboard

Unable to set store for Spree::StockLocation

Open vernondegoede opened this issue 8 years ago • 0 comments

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.

vernondegoede avatar Sep 22 '16 15:09 vernondegoede