Add stock quantities badge in the collection page

Solved
chandaro_
Tourist
5 1 2

Hi,

So far I can only show the low stock in the product page.

chandaro__2-1623716733464.png

 

by modify the code in the product-template.liquid ,this is the following code.

chandaro__3-1623716895667.png

 

And I need help with creating low stock badge in the collection list page. I want to create the badge underneath the price poing which next to the SAVE badge which only alert when the quantity is less than 50 items. 

chandaro__1-1623716657366.png

Thanks in advance!!! 

 

KetanKumar
Shopify Partner
22276 2265 8330

This is an accepted solution.

@chandaro_ 

sorry for this issue can you please try this code

product.selected_or_first_available_variant.inventory_quantity }} LEFT
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
chandaro_
Tourist
5 1 2

Thank you for that but where do I input the code ? Thanks

0 Likes
KetanKumar
Shopify Partner
22276 2265 8330

@chandaro_ 

product grid item, product cart etc as per your theme 

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
chandaro_
Tourist
5 1 2

This is an accepted solution.

Thank you for that, took me some time to come up find the place to assign and create the function. Otherwise it will show the whole inventory items.

chandaro__0-1623811950983.png

 

 

KetanKumar
Shopify Partner
22276 2265 8330

@chandaro_ 

thanks for update here..

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
0 Likes