How do you remove "Sale" tag in narrative theme?

Solved
New Member
3 0 0

I recently set compered prices on my items. But now I have sale stickers attached to each item. How would I remove them in the "Narrative" theme?  Thank you in advance for help!

0 Likes
Highlighted

Success.

Shopify Partner
1843 170 537

You can comment them out by editing some code in Snippets / product-card.liquid where you will find

 

    {% if product.compare_at_price > product.price %}
      {% assign sale_text_length = 'products.product.on_sale' | t | size %}
      <span class="card__badge{% if sale_text_length > 6 %} card__badge--large{% endif %}">
        {{ 'products.product.on_sale' | t }}
      </span>
    {% endif %}

Simply wrap that in comments as so

 

    {% comment %}
    {% if product.compare_at_price > product.price %}
      {% assign sale_text_length = 'products.product.on_sale' | t | size %}
      <span class="card__badge{% if sale_text_length > 6 %} card__badge--large{% endif %}">
        {{ 'products.product.on_sale' | t }}
      </span>
    {% endif %}
    {% endcomment %}

and the sales tags will no show.

 

Hope this helps!

I turn coffee in to code - since 1998
3 Likes
New Member
3 0 0

Thank you. It worked!

0 Likes
New Member
1 0 0

great! But I can't see file: Snippets / product-card.liquid in my theme. my theme is Mr.Parker. Can you show me how to do?

0 Likes