geolocation plugin overrides tax rule

  • Posts: 50
  • Thank you received: 1
11 years 2 months ago #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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #124252

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 or Create an account to join the conversation.

  • Posts: 50
  • Thank you received: 1
11 years 2 months ago #124267

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 2 months ago #124555

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

Please Log in or Create an account to join the conversation.

  • Posts: 50
  • Thank you received: 1
11 years 2 months ago #124577

YES, YES, YES! It works! Nicolas you are the man! Thanks for a great answer. :) :) :)

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 or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum