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