FROM CACHE - en_header
Return management just got easier! We’ve launched Customer Self-Serve Returns to all Shopify merchants. Click here to learn more!

Dawn 2.0 - Adding quantity available to product page

New Member
2 0 0

I feel like this really shouldn't be that difficult. Would anybody have the code that I need to copy and paste into the product page template?

Replies 25 (25)
New Member
5 0 0

I could use that too 🙂

110 7 20

Hey @Stage I just use the following custom liquid field on my product page.


<DIV>{% if product.variants.first.inventory_management == "shopify" and product.variants.first.inventory_quantity < 6 and product.variants.first.inventory_quantity > 0 %}
Only {{ product.variants.first.inventory_quantity }} left in stock!
{% endif %}</DIV>

 This looks to see if there are fewer than 6 in stock but more than 0 products and then outputs, "Only 3 left in stock!"


If the product is out of stock it's hidden and if there are 6 or more in stock it's hidden. Just change the numbers as required. 

New Member
2 0 0


this keeps saying only 1 in stock but I have more?


do you possibly have a solution please??

4 0 0

It works great, thank you. The only problem is that it doesn't work with a product with multiple variants. It just shows the stock quantity of the first variant...

3 0 2

Hi 👋 

I ended up getting the Shopify tea to resolve this for me. They were really helpful.

I couldn’t find a way to resolve the issue with variants without them.


4 0 0
Sorry I'm a complete noob, how do i go about getting the Shopify team to
resolve this for me? Thank you Bec