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

Geotagging issues

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.

Hey.

Having about a 7-10% failure rate with Geotagging for Canadian customers and they are being treated and charged like US customers. I have inquired with customers and they are not using IP Blockers, or Ingonito mode etc.

Do you have a fix for this?

Is there a way to set the Currency Switcher to work on billing address instead?

Thanks.

Hello

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

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:

Test using different browsers or incognito/private mode
Use VPN or https://www.locabrowser.com for testing different locations
Clear cookies between tests

Quick Diagnostic Test:
Add this shortcode to any page: [woocs_geo_hello]
It should display:"Your country is: [Country Name] (defined by WooCommerce GeoIP functionality)"
If it shows wrong country or no output → the issue is with WooCommerce geolocation, not WOOCS.
Additional Checks:

Go to WooCommerce → Status → scroll to"Geolocation debug info" section
Verify WOOCS plugin is updated to the latest version
Check if any security plugins are blocking geolocation requests

Please try these solutions and let me know the results. If the [woocs_geo_hello] shortcode shows incorrect country, we'll need to investigate the WooCommerce MaxMind integration specifically.

 


Billing country, Add this code to your theme's functions.php:

add_action('woocommerce_checkout_update_order_review', function($post_data) {
global $WOOCS;

parse_str($post_data, $data);

if (isset($data['billing_country']) && !empty($data['billing_country'])) {
$country = $data['billing_country'];

// Map billing country to currency
$currency_map = array(
'US' => 'USD',
'CA' => 'CAD',
);

if (isset($currency_map[$country]) && $WOOCS->current_currency !== $currency_map[$country]) {
$WOOCS->set_currency($currency_map[$country]);
}
}
}, 10);

 

When a customer selects their billing country during checkout, WooCommerce automatically recalculates the order via AJAX. We can hook into this process to switch the currency at the same time. This will automatically switch to CAD when Canada is selected, and USD for USA. The order totals will recalculate immediately.
You can add more countries to the $currency_map array as needed.