New / Sale Labels

Solved
Highlighted
New Member
3 0 0

So I'm using this theme that I really like. I added several new products and I wanted to add some of them immediately with discounts. However, I don't want the products that I chose to compare with price to also have a "new" label along with the "sale" label because it looks weird (new + sale simultaneously). So I'd like to do the following:

IF ITEM IS ON "SALE", HIDE "NEW".

I have zero experience in web development and I know this is supposed to be easy but I've no idea what the code is to do that and where to add it. Please any help is much appreciated, thank you in advance.

 

0 Likes
Highlighted
Shopify Expert
3485 543 822

This is an accepted solution.

Hi @DanielRA 

This is not so easy suppose to do, but i can give you way.

1. You can add tag "new_pro" n new product and then code in product snippet->product-grid.liquid file with this tag condition.

2. Do this code to check "new_pro" tag and then add you tab html.

{% assign check_item='false' %}
{% for tag in product.tags %}
     {% if tag  contains 'new_pro' %}     
            {% assign check_item='true' %} 
     {% endif %}
  {% endfor %}

  {% if check_item=='true' %}
     //code your new label code here 
  {% endif%}
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Highlighted
New Member
3 0 0

Thank you!!

0 Likes