Low Stock Badge on Thumbnails

Simon_Brindle
New Member
6 0 0

Hi everyone.

I am wanting to add a "low in stock" label to products which have less than x items left in stock. Same as when a product is sold out it has the "sold out" label underneath the image of the product in collections.

I've read on here at {% if product.first_available_variant.inventory_quantity < 2 %}<div>low in stock</div>{% endif %} would do the job but unsure where to place it on the Brooklyn theme

Can anyone help please?

Thanks

Simon

 

 

0 Likes