How do I add tags to certain products on product pages, (like few left in stock, or sold out, or new)
Here is a example:
Hi @AMOB ,
Please follow the steps below:
Step 1: Add tags for products, eg ‘few left in stock’.
Step 2: Please go to snippets > card-product.liquid file, at line 90 and add the following code:
If you want to add a ‘new’ label, you can add the following code:
{% if card_product.tags contains 'few left in stock' %}
few left in stock
{% endif %}
{% if card_product.tags contains 'new' %}
new
{% endif %}
Hope it helps!
did not work! ![]()
Hi @AMOB ,
Please send your site and if your site is password protected, please send me the password. I will check it.