PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

GEO IP Rules not working

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi

I followed all the steps in  the article below but still cant get geo ip currency rules to work.

https://currency-switcher.com/using-geolocation-causes-problems-doesnt-seem-to-work-for-me

I added the below to a page and it shows the correct country i am in but the incorrect currency based on the geo ip rule that I set for that country.

[woocs_geo_hello][woocs_show_current_currency]

Could you please help identify the issue.

Thanks!

Hello

What you’re seeing is expected behavior.

The country shortcode shows correctly because GeoIP works, but the currency is already stored for your session/user, stored on the same first moment when you activated the plugin and looked the front, or even changed the currency.

Once a visitor enters the site for the first time, the currency is detected by IP and saved (cookies / transients / session).
After that, changing GeoIP rules will not override the already stored currency for the same user - because by logic it is choise of customer

So:

  • only new / unique visitors will see the new currency rules

  • existing visitors will keep the previously detected currency

What you can do:

  • clear browser cookies

  • or open the site in a different browser / incognito

  • or switch storage to Session in the Options tab (recommended for testing), otherwise you’ll keep seeing the “wrong” currency because it’s already saved for your IP/session.

The issue is that I've tried with VPN and also on different browser / incognito and the issue still persists.

I tried all currency storage types as well as switch  on"I am using cache plugin on my site" but it still  doesn't change the currency for the user based on  geo location. On every test i used a fresh incognito window and also new IP so not sure what the issue is, any idea?

Hello

Regarding the GeoIP issue - WOOCS relies on your site's geolocation service to detect the visitor's country. If the country detection doesn't work correctly, WOOCS cannot switch currencies properly.

Solution:

1. Try maxmind please: WooCommerce → Settings → Integration → MaxMind Geolocation .
2. Switch from the default free database to MaxMind GeoIP2
3. Sign up for MaxMind service (they have a free tier): https://www.maxmind.com
4. Get your License Key and configure it in WOOCS settings

The free built-in database may not be accurate enough for reliable country detection. MaxMind provides much better accuracy.

Causes of Geolocation Issues:

1. MaxMind License Key Missing or Expired
Since WooCommerce v3.9+, a MaxMind GeoLite2 license key is required for geolocation to work.
Solution:

Go to WooCommerce → Settings → Integration → MaxMind Geolocation
Register for a free license at https://www.maxmind.com/en/geolite2/signup
Add your license key
The database updates automatically every month

2. Caching Issues
If you're using caching plugins (WP Rocket, LiteSpeed, Cloudflare, etc.), they serve cached pages with default currency before WOOCS can detect location.
Solution:

In WooCommerce → Settings → General: Set"Default customer location" to"Geolocate (with page caching support)"
For WP Rocket: Cache → User Cache → Enable"Disable caching for logged-in users"
Consider excluding shop/product pages from cache
Note: WOOCS works with caching by redrawing prices via AJAX after page load

3. Server/Proxy IP Issues
Some hosting providers (Bluehost, servers with Varnish, Cloudflare) may send their own server IP instead of the visitor's real IP.
Solution:

Check if your hosting uses reverse proxy/load balancer
Ask your hosting to configure HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR headers correctly
For Cloudflare: Dashboard → Caching → Configuration → set"Browser Cache TTL" to"Respect Existing Headers"

4. Browser Caching & Testing
Geolocation only works on first visit. After that, WOOCS remembers the user's currency choice.
Solution:

Important:
Please read this article that explains common GeoIP issues and solutions:
https://currency-switcher.com/using-geolocation-causes-problems-doesnt-seem-to-work-for-me

If after switching to MaxMind the issue persists, it means the geolocation service itself has problems detecting your country correctly, which is beyond WOOCS control.