My Shopify store has been paused for a while due to a move of country. I’m starting up again and resurrecting my store, using the same theme as before (until I can afford a more up to date one). Previously I used a dual tax display app, which I think is no longer required now. Deleting that app means that the text under the product price now shows ‘Tax included’, which is fine for the country I’m in, but it also shows this for sales outside of the country, which I don’t collect taxes from. So I need to figure out how to change this. I think I have found the coding in the product summary liquid. I just need it show ‘Tax not included’ for the international customers. Any guidance on this is appreciated.
Think it through.
If the uses location isn’t known then how would any logic determine what to show or not-show.
To hide things by location the users location needs to be KNOWN.
Either by the user choosing a country /market , or by using an app with geolocation that then modifies such things.
The only thing that really matters for hidden-displays logic is the taxes are configured correctly in the checkout once shipping info is known.
I did test it with a VPN coming from Australia and it did show the ‘Tax included’ text on the product description page, but the pricing was correct at the checkout (which yes, is what matters).
I just presumed the user location would usually be known, which from what you’re saying isn’t always the case.
If there is a way to change the text to something general, ie - taxes calculated at the checkout, that would make it easier. Or remove it altogether.
Hi @Hair_Flair ,
You’re on the right file - that block does control the “Tax included” text.
If you want to show “Tax not included” for international customers, you can use Shopify’s built-in Liquid variable: cart.taxes_included
use conditional logic
{%- if cart.taxes_included or shop.shipping_policy.body != blank -%}
<div class="product__policies rte cb" data-product-policies>
{%- if cart.taxes_included -%}
Tax included
{%- else -%}
Tax not included
{%- endif -%}
{%- if shop.shipping_policy.body != blank -%}
{{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- endif -%}
</div>
{%- endif -%}