@vmkvana - this will need some code editing
Hello @vmkvana
It’s GemPages support team and glad to support you today.
I would like to give you a solution to support you.
- Go to Online Store → Theme → Edit code:
-
Open your Snippets/card-product.liquid theme file.
-
Search with the keyword: products.product.on_sale
-
There will be 2 results: line 102 and 220
- Replace each line above with code:
{% assign diff = card_product.compare_at_price | minus: card_product.price %}
{% assign comparePriceFloat = card_product.compare_at_price | times: 1.0 %}
{% assign diff = diff | divided_by: comparePriceFloat %}
{% assign diff = diff | times: 100.0 %}
{% assign diff = diff | round %}
-{{ diff }}%
Result:
Hope my solution can work and support you!
Kind & Best regards!
GemPages Support Team.




