minus inventory level excluded from variant.available calculation as causing 'sold out' badge

minus inventory level excluded from variant.available calculation as causing 'sold out' badge

danielgrakka
Visitor
1 0 0

{%- if variant.available == false %}

variant.available the calculation can this be changed? 

I would like to exclude minus numbers from the calculation and to treat those numbers as 0 rather than minus. 

 

issue: we sell B2B outside of shopify and allow B2B customers to order out of stock items. We do not allow shopify B2C customers to order out of stock items. We use our third party inventory management system which we sell to B2B dealers from to import stock into shopify. Because we sell via the third party program past zero, the stock gets imported at minus levels against products in certain locations. In some locations the minus stock outweighs any available stock in other locations and therefore total stock for a variant may be below zero but there is stock availability at some locations. Shopify uses the total stock availability to flag items as out of stock, even though stock is available at some locations. I would like B2C shopify customers to be able to order available stock from locations for which they are able to be shipped from and not see the sold out badge that isn't relevant to their location. 

 

 
Replies 0 (0)