Skip to content

Instantly share code, notes, and snippets.

@behrendtio
Last active December 18, 2015 11:59
Show Gist options
  • Save behrendtio/5779239 to your computer and use it in GitHub Desktop.
Save behrendtio/5779239 to your computer and use it in GitHub Desktop.
Shopify explanation

VAT: 20%

Price including VAT: 35 €

Price excluding VAT: 29.17 €

Calculating incl. VAT using {{ price | times: 1.2 | money }}

  • for 1 item: 35 € ==> correct
  • for 2 items: 70.01 € ==> incorrect

70.01 is actually correct since 29.17 * 1.2 is 35.004. But this of course leads to confused customers. I noticed it's the same when Shopify calculates the grand total during checkout.

Any ideas? Since we can't change the checkout page anyway, I guess we have to change the price?

To clarify: We're trying to show prices including VAT on product page, collection, cart etc. But appearentely the problem occurs during Shopify's checkout as well.

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