Created
May 2, 2013 19:00
-
-
Save Chrisedmo/5504506 to your computer and use it in GitHub Desktop.
SHOPIFY: How To Show Percentage Discount Saved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %}How To Show Percentage Discount Saved{% endcomment %} | |
{% if product.compare_at_price_max > product.price %}You save {{ product.compare_at_price_max | minus: product.price | times: 100.0 | divided_by: product.compare_at_price_max | money_without_currency | times: 100 | remove: ‘.0′}}%{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where should this get inserted ?