How can I remove the sale tag in the Dawn theme?

Same thought process is still there.

Here is a modified use case for price.liquid

{%- if show_badges -%}
{% comment %}

{{ 'products.product.on_sale' | t }}

{% endcomment %}

{{ 'products.product.sold_out' | t }}

{%- endif -%}

And for Card-Product.liquid

{%- if card_product.available == false -%}
{{ 'products.product.sold_out' | t }}
{% comment %}
{%- elsif card_product.compare_at_price > card_product.price and card_product.available -%}

{{ 'products.product.on_sale' | t }}
{% endcomment %}
{%- endif -%}

I would like to point out the part that says {{ ‘products.product.on_sale’ | t }} or {{ ‘products.product.sold_out’ | t }}. You can remove this and make it say something else. Instead of Sold out, you can change it to Not in Stock or Returning Soon.

1 Like