Can I add product tags on Shopify product pages?

AMOB
Shopify Partner
115 1 36

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:

Screen Shot 2022-05-13 at 5.32.23 PM.png

Replies 4 (4)

LitCommerce
Astronaut
2860 684 732

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:

Screenshot.png

If you want to add a 'new' label, you can add the following code:

{% if card_product.tags contains 'few left in stock' %} 
  <span class="badge badge--bottom-left color-{{ settings.sale_badge_color_scheme }}">few left in stock</span>
{% endif %}
{% if card_product.tags contains 'new' %} 
  <span class="badge badge--bottom-left color-{{ settings.sale_badge_color_scheme }}">new</span>
{% endif %}

Hope it helps!

 

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
AMOB
Shopify Partner
115 1 36

I typed the code in, and added the tag when I edited the product, but did not show up!

 

Screen Shot 2022-05-13 at 7.36.50 PM.pngScreen Shot 2022-05-13 at 7.37.07 PM.pngScreen Shot 2022-05-13 at 7.37.40 PM.png 

 

AMOB
Shopify Partner
115 1 36

did not work! 😞

LitCommerce
Astronaut
2860 684 732

Hi @AMOB,

Please send your site and if your site is password protected, please send me the password. I will check it.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!