[Skip to main content](#vessel-content)

#   geolocation plugin overrides tax rule

##

- **[matback](/forum/user/13291-matback "View matback's Profile")**
- [![matback's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13291-matback "View matback's Profile") Topic Author
- [ Offline](/forum/user/13291-matback)

Less More

- Posts: 50
- Thank you received: 1
-
-

13 years 2 months ago [\#124186](#124186) by [matback](/forum/user/13291-matback "View matback's Profile")  *[geolocation plugin overrides tax rule](/forum/40-taxes/862142-geolocation-plugin-overrides-tax-rule#124186 "Hi.  I have been fiddling around with the geolocation plugin. Got it working perfectly with switching to the currencies based upon location. But something strange happens when the plugin is published. It overrides the tax rules for non logged in users. When the user logs in the tax rule works as it should.  In my case I want the swedish customers when visiting the site for the first time to view the price with VAT eg: 100 kr (80 kr excl VAT)  With geolocation enabled/published the price looks like this:  With the geolocation disabled/unpublished the price looks like this:  It is not a cache problem. I have cleared the cache , tried different browsers and proxies.  Hmm? Any idea?  Regards  /Mathias")* was created by *[matback](/forum/user/13291-matback "View matback's Profile")*

Hi.

I have been fiddling around with the geolocation plugin. Got it working perfectly with switching to the currencies based upon location. But something strange happens when the plugin is published. It overrides the tax rules for non logged in users. When the user logs in the tax rule works as it should.

In my case I want the swedish customers when visiting the site for the first time to view the price with VAT eg: *100 kr (80 kr excl VAT)*

With geolocation enabled/published the price looks like this:

[ ![hf2293d8.png](/forum/attachment/12352) ](/forum/attachment/12352 "hf2293d8.png")

With the geolocation disabled/unpublished the price looks like this:

[ ![h0f53226.png](/forum/attachment/12353) ](/forum/attachment/12353 "h0f53226.png")

It is not a cache problem. I have cleared the cache , tried different browsers and proxies.

Hmm? Any idea?

Regards

/Mathias

- [ ![hf2293d8.png](/forum/attachment/12352) ](/forum/attachment/12352 "hf2293d8.png") [ ](/forum/attachment/12352?download=1 "hf2293d8.png")
- [ ![h0f53226.png](/forum/attachment/12353) ](/forum/attachment/12353 "h0f53226.png") [ ](/forum/attachment/12353?download=1 "h0f53226.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2MjE0Mi1nZW9sb2NhdGlvbi1wbHVnaW4tb3ZlcnJpZGVzLXRheC1ydWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#124252](#124252) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[geolocation plugin overrides tax rule](/forum/40-taxes/862142-geolocation-plugin-overrides-tax-rule#124252 "Hi.  I have been fiddling around with the geolocation plugin. Got it working perfectly with switching to the currencies based upon location. But something strange happens when the plugin is published. It overrides the tax rules for non logged in users. When the user logs in the tax rule works as it should.  In my case I want the swedish customers when visiting the site for the first time to view the price with VAT eg: 100 kr (80 kr excl VAT)  With geolocation enabled/published the price looks like this:  With the geolocation disabled/unpublished the price looks like this:  It is not a cache problem. I have cleared the cache , tried different browsers and proxies.  Hmm? Any idea?  Regards  /Mathias")*

Hi,

That's maybe because the geolocation plugin found a location out the suede and no taxes are applied.
Thanks to try to set a global tax (for the world).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2MjE0Mi1nZW9sb2NhdGlvbi1wbHVnaW4tb3ZlcnJpZGVzLXRheC1ydWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[matback](/forum/user/13291-matback "View matback's Profile")**
- [![matback's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13291-matback "View matback's Profile") Topic Author
- [ Offline](/forum/user/13291-matback)

Less More

- Posts: 50
- Thank you received: 1
-
-

13 years 2 months ago [\#124267](#124267) by [matback](/forum/user/13291-matback "View matback's Profile")  Replied by *[matback](/forum/user/13291-matback "View matback's Profile")* on topic *[geolocation plugin overrides tax rule](/forum/40-taxes/862142-geolocation-plugin-overrides-tax-rule#124267 "Hi.  I have been fiddling around with the geolocation plugin. Got it working perfectly with switching to the currencies based upon location. But something strange happens when the plugin is published. It overrides the tax rules for non logged in users. When the user logs in the tax rule works as it should.  In my case I want the swedish customers when visiting the site for the first time to view the price with VAT eg: 100 kr (80 kr excl VAT)  With geolocation enabled/published the price looks like this:  With the geolocation disabled/unpublished the price looks like this:  It is not a cache problem. I have cleared the cache , tried different browsers and proxies.  Hmm? Any idea?  Regards  /Mathias")*

The geolocation plugin recognize Sweden. It switches to "kr" SEK (shown in pictures in prev post). I have set SEK to be the currency only for Sweden in zones.

I plan to have 3 currencies in the shop: EUR = default, USD and SEK (kr).

I want customers from:
1. Sweden to have currency SEK and the tax rule applied.
2. European Union to have currency EUR and the tax rule applied.
3. United states to have currecy USD and no tax rule.
4. The rest of the world to have currency EUR and no tax rule.

The tax rules works perfectly with the above when geolocation plugin is disabled. But as mentioned in previous post when enabled the tax rule gets lost.

The geoplugin recognizes countries correct. I have checked it with US-proxy, German-proxy and Swedish-proxy.

Setting tax for the world is not an option if I want the shop to work as planed.

M.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2MjE0Mi1nZW9sb2NhdGlvbi1wbHVnaW4tb3ZlcnJpZGVzLXRheC1ydWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

13 years 2 months ago [\#124555](#124555) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[geolocation plugin overrides tax rule](/forum/40-taxes/862142-geolocation-plugin-overrides-tax-rule#124555 "Hi.  I have been fiddling around with the geolocation plugin. Got it working perfectly with switching to the currencies based upon location. But something strange happens when the plugin is published. It overrides the tax rules for non logged in users. When the user logs in the tax rule works as it should.  In my case I want the swedish customers when visiting the site for the first time to view the price with VAT eg: 100 kr (80 kr excl VAT)  With geolocation enabled/published the price looks like this:  With the geolocation disabled/unpublished the price looks like this:  It is not a cache problem. I have cleared the cache , tried different browsers and proxies.  Hmm? Any idea?  Regards  /Mathias")*

Hi,

When a user comes on your website, the geolocation plugin set the current zone (a country) and based on it it also set the current currency in the session of the user if you configured it to do that.
When the geolocation plugin is deactivated, when a user comes on your website, it's the main tax zone which is set as current zone and the main currency which is set as the current currency.
When a user logs in and has an address or register, its the state/country of his address which is used as the current zone.

On its end, the tax system takes the current zone from the session and tries to match the tax rules with it so that the prices get taxed or not if necessary.

If you don't see the taxes on the prices on your website with the geolocation plugin published while you're not logged in, it basically means that the tax system didn't find any matching tax rule for the current zone of the user set in the session based on the user IP.

In conclusion, it means that either:
- Your tax rules are not configured to match with the country set by the geolocation plugin (for example, suppose that you have two Sweden country zone configured and that you selected one in the tax rule while the plugin set the other one in the session).
- Your IP address was not detected by the geolocation plugin as being from Sweden (for example, if you use a proxy in another country to access the website).

In conclusion, from the information you provided on the result, it seems that the geolocation plugin set a current zone which has the SEK currency configured in it and which is different from the zone of your tax rule.

So I would recommend to check your tax rules and your zone settings.

The following user(s) said Thank You: [matback](/forum/user/13291-matback "View matback's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2MjE0Mi1nZW9sb2NhdGlvbi1wbHVnaW4tb3ZlcnJpZGVzLXRheC1ydWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[matback](/forum/user/13291-matback "View matback's Profile")**
- [![matback's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13291-matback "View matback's Profile") Topic Author
- [ Offline](/forum/user/13291-matback)

Less More

- Posts: 50
- Thank you received: 1
-
-

13 years 2 months ago [\#124577](#124577) by [matback](/forum/user/13291-matback "View matback's Profile")  Replied by *[matback](/forum/user/13291-matback "View matback's Profile")* on topic *[geolocation plugin overrides tax rule](/forum/40-taxes/862142-geolocation-plugin-overrides-tax-rule#124577 "Hi.  I have been fiddling around with the geolocation plugin. Got it working perfectly with switching to the currencies based upon location. But something strange happens when the plugin is published. It overrides the tax rules for non logged in users. When the user logs in the tax rule works as it should.  In my case I want the swedish customers when visiting the site for the first time to view the price with VAT eg: 100 kr (80 kr excl VAT)  With geolocation enabled/published the price looks like this:  With the geolocation disabled/unpublished the price looks like this:  It is not a cache problem. I have cleared the cache , tried different browsers and proxies.  Hmm? Any idea?  Regards  /Mathias")*

YES, YES, YES! It works! Nicolas you are the man! Thanks for a great answer. ![:)](/media/kunena/emoticons/3.png ":)") ![:)](/media/kunena/emoticons/3.png ":)") ![:)](/media/kunena/emoticons/3.png ":)")

I did have two Sweden countries in zones. One of them was a type "zone" that I had made some time ago the other one was a type "country". In the tax rules I had selected the "zone" country. WRONG!! I changed it to the other one of "country " type and now everything works perfect.

Once again many thanks.

Mathias.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2MjE0Mi1nZW9sb2NhdGlvbi1wbHVnaW4tb3ZlcnJpZGVzLXRheC1ydWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.064 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
