I maintain an app that adds products to our users’ Shopify product catalog, and it maintains inventory. Occasionally, the products will show as Out of Stock on a store’s product page, even if the admin shows the product having stock at the app’s inventory location.
I checked the theme code for a store where this issue exists, and the “available” field on the variant liquid object returns false. If I add stock to the variant at the store location, it does return true.
When I query the variant with graphQL, I see the following: {“activatable”:true,“fulfillsOnlineOrders”:true,“isFulfillmentService”:true,“hasActiveInventory”:true,“isActive”:true,“shipsInventory”:false}}
Any suggestions? Another odd note is that I do not have access to some of the attributes listed in the Liquid documentation. For example, I can’t see variant.inventory_quantity or variant. inventory_policy
Thanks!