In stock inventory display counter

Sarahclements92
Tourist
3 0 1

Hi! I am trying to find a way to add a counter like this that shows how many I have left in stock. I contacted Shopify support and they said they can’t find an app that it looks like a theme but couldn’t give me a theme that had the option. Wondering if anyone knows how I could add something like this!? 

https://wildandgorgeoustransfers.com/collections/all

 

Replies 5 (5)

KetanKumar
Shopify Partner
36839 3635 11972

@Sarahclements92 

oh sorry for that if please try this code whenever you have display

<div id="variant-inventory">
{% if product.variants.first.inventory_management == "shopify" %}
{% if product.variants.first.inventory_quantity > 0 %}
We currently have {{ product.variants.first.inventory_quantity }} in stock.
{% else %}
The product is out of stock
{% endif %}
{% else %}
This product is available
{% endif %}
</div>

 

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Zworthkey
Shopify Partner
5581 642 1565

@Sarahclements92 

Welcome to Shopify Community.
Kindly check out this tutorials,
https://ecomexperts.io/blogs/liquid-tutorial-shopify/show-the-number-of-products-left-in-stock-on-yo...

 

Let me know if you need any more help.

Thank you.

Sarahclements92
Tourist
3 0 1

trying to follow the link but I don't have the Product-template.liquid in my sections tab that is wants me to place the code in :s

Sarahclements92
Tourist
3 0 1

where would i place this code? 🙂

Zel_
Shopify Partner
25 0 1

Hey @Sarahclements92  

You can check out this app. It is exactly providing what you asked for except for displaying the counter on the collection page at the moment. The app displays remaining/left in stock just above the add-to-cart button and works for variant levels. The threshold can be also selected within the app so that you can only display the widget if you are low in stock.