product unavailable but show quantity in stock shopify.
I mean the quantity available for each size is different and its showing an incorrect quantity.
I wanted to add the number of quantity available in stock on my product pages. Please ensure this is the correct quantity?"
Hello @harivishwakarma
In order to enable the inventory tracking option, navigate to your HTML/CSS editor and select the product-template.liquid:
{% if current_variant.inventory_management == "shopify" and current_variant.inventory_policy != "continue" %}
We have {{ current_variant.inventory_quantity }} in stock.
{% else %}
This product is available.
{% endif %}
If your product does not have inventory tracking enabled, it will simply read as, “This product is available.”
I hope the above is useful to you.
Best regards,
GemPages Support Team
If you need to change the variant dynamic display inventory quantity you may need to match the javascript.