How to check if price includes taxes?

Hi,

I’m developing a theme for a store that charges taxes dynamically based on customer location. Customers in its home country Norway are charged VAT and customers from elsewhere are not. So far everything works, depending on where you are coming from you see the product prices either with or without VAT.

Now I would like to add a disclaimer saying “including VAT” or “excluding taxes”. Unfortunately I don’t know how to reliably find out if the displayed price includes taxes or not.

The value cart.taxes_included seems to only work once the customer entered an address on the checkout page or is logged in to an account. Otherwise it returns “true” even if the user is from another country and the displayed price does not include taxes.

The value variant.taxable returns false, even if the user is in the only country where taxes are charged and indeed the displayed price clearly includes the VAT.

How can I find out if the currently displayed price includes taxes or not?

Thanks a lot,

Till

I have the same issue, and it has already led to customer confusion.

On the product page, the label directly under the product price displays “including VAT”, which is required for anyone ordering within the EU. However for customers outside the EU, the price is correctly displayed excluding VAT, but the label still says “including VAT”. Same problem happens in the cart.

As a workaround, I have changed the text to read “including VAT (for EU countries only)” but I am not sure if that is completely legal.

Another possible workaround would be to hide the default text and insert a custom liquid block similiar to the following:

{% if localization.country.iso_code == “CH” %}
excl. VAT
{% else %}
incl. VAT
{% endif %}
{{ ‘products.product.shipping_policy_html’ | t: link: shop.shipping_policy.url }}

Shopify can you please fix this!