Solved

How to add a counter "Number of Stock: 1" to product page and description (DEBUT THEME)

LucchiCamma
Excursionist
17 0 6

Hey Shopify community,

Happy New Year 2022.

 

Would like to ask about how to add a real-time ticker for stock availability next to the price of a product on the thumbnails and the actual product page. Please ask and see attachments.

 

https://lucchijewelry.com/collections/all

 

Screenshot (57).pngScreenshot (58).png

 

Thank you in advance

Accepted Solution (1)

UmairA
Shopify Partner
1106 101 225

This is an accepted solution.

Replies 5 (5)

UmairA
Shopify Partner
1106 101 225

This is an accepted solution.

LucchiCamma
Excursionist
17 0 6

Thank you so much! Not exact but will do just fine! Would like to ask more about your services? Please send me a DM. Thank you!

UmairA
Shopify Partner
1106 101 225

@LucchiCamma ,


DM sent, thanks.

LucchiCamma
Excursionist
17 0 6

I actually came across a problem with this code and did not notice it until now, the ticker still displays "1 in stock" even when the "add to cart" button displays "out of stock", is there a fix to this?

Zel_
Shopify Partner
25 0 1

Hey @LucchiCamma

If you would like to use an app for this purpose, you can check out this app. It is exactly providing what you asked for. Displays remaining/left in stock just above the add-to-cart button and works for variant level. The threshold can be also selected within the app so that you can only display the widget if you are low in stock.