All things Shopify and commerce
In a nutshell i'm trying to put a low in stock label on products where the inventory is under 5.
I managed this but it's also displaying 0 in stock as opposed to saying sold out badge.
I want it to display on products where the inventory is between 1 and 5.
This is the code i've used in product-grid-item.liquid file:
{% if product.first_available_variant.inventory_quantity > 0 %} <div class="items-left"> Left {{ product.first_available_variant.inventory_quantity }} </div> {% endif %}
Thanks
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024