We have a problem for items marked with inventory policy “Not tracked by Shopify”. Shopify shows these products as available (NOT sold out) even when inventory_quantity <= 0 and “Continue selling when out of stock” is false, but Algolia API indicates sold out (inventory_available = false)
I have seen that there was the same problem here (Shopify - Sold out problem for "Don't track inventory" items), but the response is different in the API (field “inventory_available”). Is it possible to apply the same behaviour on the API?
Changes wanted in Shopify API:
- product.can_order = product.inventory_policy === 'continue' || product.inventory_quantity > 0; + product.can_order = ( + product.inventory_management !== 'shopify' || <=== THIS condition isn't present in API + product.inventory_policy === 'continue' || + product.inventory_quantity > 0 + );