Liquid, JavaScript, themes, sales channels
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
Hi Simon_Brindle,
You can add “Low Stock” badges to your store with ModeMagic as well. You don’t need to search for any coding for your badges. You can apply them to your product image in minutes. Not just that, you can even automate these badges on your store to keep it updated with your stock. Trust me, it saves a lot of time. 😄
Here’s a loom video for you. Do let me know if this was helpful to you.
Pasting the app link here for you here: LINK
Please lemme know if this helped. 🙂
User | RANK |
---|---|
22 | |
22 | |
11 | |
9 | |
7 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023