A space to discuss online store customization, theme development, and Liquid templating.
I want to replace the "sale" label in the product collection page with a discount label in the form of a percentage
And here is my shopify website:https://thefolls.com/collections/best-seller
This is the current style:
This is the style I want:
Any help is most welcome.
Thank you
Follow the below steps to achieve your requirement. I hope you have knowledge of liquid code.
{% if product.compare_at_price > product.price %}
<span class="discount-label">
{{ product.compare_at_price | minus: product.price | times: 100 | divided_by: product.compare_at_price | money_without_currency | remove: '.00' }}% Off
</span>
{% endif %}
Please note that modifying the theme code requires some technical knowledge.
The impulse theme does not have any of those views in the sections:
on "product-card-grid.liquid" or "product-card-list.liquid"