Hi
We are trying to build a new theme using Enterprise. We would like to display an Ex Vat and Inc Vat price on all product pages. I can add using the formula to get it too display on all products.
What I am struggling with is we sell some products that are 0% vat. These products are unticked charge tax in the product setup.
I am hoping we can code the it so if the charge Tax on product is unticked it can display the price with VAT Free.
Any help would be much appreciated.
Thanks
use Liquid code to check if the product is taxable and then conditionally display the “Ex VAT” and “Inc VAT” prices or a “VAT Free” message
example
{% if product.taxable %}
{% assign ex_vat_price = product.price | divided_by: 1.20 %}
{% assign inc_vat_price = product.price %}
Ex VAT: {{ ex_vat_price | money }}
Inc VAT: {{ inc_vat_price | money }}
{% else %}
This product is VAT Free
{% endif %}
-
Check if the product is taxable: Use the product.taxable attribute to check if the product is taxable or not.
-
Calculate and Display Prices: Use Liquid to display the Ex VAT and Inc VAT prices if the product is taxable, or show a “VAT Free” message if it’s not.
Hi Graham,
If you are still looking for a solution, we’ve recently launched a new app called Taxify which allows you to show prices including and excluding VAT 