Hello,
To check if a product is in stock, there is a function thas create the context : commerce_stock_enforcement_get_context
This function check if the product is in the current store. If not, it take another store of the product.
Doing that, a product that can't be order in that store can be set in the cart if it is in stock in another store.
In my use case, (and maybe in general ?), a product witch is not in a store should be considered out of stock.
I propose the function commerce_stock_enforcement_get_context return false when the product is not in the stock. And each time this function is called, if it returns false, the stock is considered as empty.
Closed: works as designed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.