Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Unable to set store for Spree::StockLocation #159

Open
vernondegoede opened this issue Sep 22, 2016 · 0 comments
Open

Unable to set store for Spree::StockLocation #159

vernondegoede opened this issue Sep 22, 2016 · 0 comments

Comments

@vernondegoede
Copy link

vernondegoede commented Sep 22, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant