How to change % sale tag to just a sale tag on Booster theme?

currently using Booster theme

shop: www.trlapparel.com.au

password: 100Percent

1 Like

@TRLapparel

can you please sent product grid item code so i will check and let you know

where can ifind this

@TRLapparel

your have find this file at snippets

Edit code >>>>> Snippets >>> product gird item or product card or product foor loop etc name or give me screenshot so i will let you know which file

1 Like

Hi @TRLapparel , Happy to help you with this

Comment two lines on code marked with a red arrow in the below image will fix your problem.

@TRLapparel

thanks if have able to code try or sent code here…

{% if currsale %}
{%- case block.settings.saleType %}
{% when ‘percent’ %}
{{ current_variant.price | minus: current_variant.compare_at_price | times: 100 | divided_by: current_variant.compare_at_price }}% OFF
{% when ‘amount’ %}

  • {{ current_variant.compare_at_price | minus: current_variant.price | money | strip_html }} OFF
    {% when ‘text’ %}
    {{‘general.tags.sale’ | t}}
    {%- endcase -%}
    {% endif %}

    {%- endunless -%}
    {% endif %}
1 Like

Replace your code block with this one and your problem will be fixed

{% if currsale %}
{%- case block.settings.saleType %}
{% when 'percent' %}
{% endcomment %} {{ current_variant.price | minus: current_variant.compare_at_price | times: 100 | divided_by: current_variant.compare_at_price }}% OFF{% endcomment %} 
{% when 'amount' %}
{% comment %} - {{ current_variant.compare_at_price | minus: current_variant.price | money | strip_html }} OFF{% endcomment %} 
{% when 'text' %}
{{'general.tags.sale' | t}}
{%- endcase -%}
{% endif %}

{%- endunless -%}
{% endif %}

{% if currsale %}
{%- case block.settings.saleType %}
{% when 'percent' %}
{% comment %}{{ current_variant.price | minus: current_variant.compare_at_price | times: 100 | divided_by: current_variant.compare_at_price }}% OFF{% endcomment %}
{% when 'amount' %}
- {{ current_variant.compare_at_price | minus: current_variant.price | money | strip_html }} OFF
{% when 'text' %}
{{'general.tags.sale' | t}}
{%- endcase -%}
{% endif %}

{%- endunless -%}
{% endif %}

still not working :disappointed_face: @KetanKumar @SagarSukhanandi

@TRLapparel Could you please add me as staff so I can check?

yep done added thank you! @SagarSukhanandi

@TRLapparel I have made changes on section/product-card-default.liquid.

Issue fixed, Pleae verify

Hi. All sale tags are removed? I was just wanting the % to be changed to the word sale

Hi @TRLapparel

Please check % replaced with text Sale

Hi sorry for the late reply, all sale tags are looking like this:

TRLapparel_0-1630456908877.png