Display Quantity available on Shopify Theme Venture

Hello,

Does anyone know where I can find the proper place to adjust the code to display quantity available?

I currently have the check box “Track Quantity” for the specific product.

I know there is a way to have it display quantity if it’s less than 10 but I want it to show the whole time until its sold out.

Thank you.

Hi @plyzo26

Aibek is here from Speedimize.io

Hope everything is fine on your end.

You can use the code below to track the number. You will need to insert this code into the product-template:

{% comment %} Inventory tracking on product page {% endcomment %}
            <div id="variant-inventory" class="{% unless current_variant.available %} hide {% endunless %}">
              {% 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 %}
            </div>

For more details check this article: https://community.shopify.com/c/Shopify-Design/How-do-I-Show-inventory-quantities-on-product-pages-using-Debut/td-p/330688

Hope that helps you.

1 Like