How to show "incl VAT" only inside EU?

Highlighted
New Member
4 0 0

Hello, 

My webshop is based in the EU and all our prices are incl VAT. But when I enter our webshop from the US (which I have set to not be collecting taxes) it still says "Incl. VAT" next to the prices. Are there any solutions how to remove this for the customers outside of the EU? Just remove the text "Incl. VAT" since I want the prices to remain the same. 

 

Best regards, 

Niklas

 

0 Likes
Highlighted
Shopify Partner
1092 170 195

Hello @NickSweden!

A solution would be to detect the user IP in Javascript and hide the "Incl VAT" element if it is outside the EU. 

You can use IPStack for detection and add the relevant code then.

Let me know if you need additional help! 

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
K&J
0 Likes
Highlighted
New Member
4 0 0

Hi! 

 

THank you very much for your reply. 

 

Being a beginner at this, the IPstack is a sort of Geolocation? Are you suggesting an app for this (which alters the code and removes the text "Incl VAT" for the international customers) or manually? 

 

Thanks again! 

 

Niklas

0 Likes
Highlighted
Shopify Partner
1092 170 195

IPStack is an API that returns a customer's location, you can see a few things about it here: https://ipstack.com/

It's not a Shopify app and gives you the flexibility to execute any code you write based on the location of the IP address. 

Once it is included in your code you can then execute any type of code you need based on individual countries.

Let me know if you need any help with this! 

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
K&J
0 Likes
Highlighted
New Member
4 0 0

This looks awesome, thank you. Now I just need to integrate it into my website (...). Thank you for your help! 

0 Likes
Highlighted
Shopify Partner
1092 170 195

You're welcome! Should you find it complicated we can get this done for you if you want to. 

Good Luck! 

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
K&J
0 Likes