Skip to content

Instantly share code, notes, and snippets.

@Chrisedmo
Created May 2, 2013 19:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chrisedmo/5504506 to your computer and use it in GitHub Desktop.
Save Chrisedmo/5504506 to your computer and use it in GitHub Desktop.
SHOPIFY: How To Show Percentage Discount Saved
{% 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 %}
@nirogam
Copy link

nirogam commented Mar 30, 2017

Where should this get inserted ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment