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 ID not working as intended.

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.

I am using FOX - Currency Switcher Professional for WooCommerce v.2.4.1.9  and have set up GEO ID so that each country get its own currency shown when landed on the website. I have set up the following rules: GeoIP rules: AED:United Arab Emirates, EUR: Ireland, BHD: Bahrain, GBP:UK, KWD:Kuwait, OMR:Oman, QAR:Qatar, SAR:Saudi Arabia. However wherever I set my location from it comes up automatically as AED rather than changing to the correct currency by location. I have followed the steps in your guide https://currency-switcher.com/using-geolocation-causes-problems-doesnt-seem-to-work-for-me/ without success. I have added the code to the wp theme file functions.php:

add_filter("woocs_geobone_ip",function(){ return true; });

And I have also set Default customer location to Geocate (with page caching support)

I have created a custom page with the shortcodes: [woocs_show_current_currency] [woocs_geo_hello] which shows “Current currency is: AED   Your country is: Ireland. (defined by woocommerce GeoIP functionality)” as you can see here: https://tomperiodwear.ae/test-page/ which is not as I have set up with the plugin.

The welcome currency is set to AED as this is where the shop is located but if someone visits from the UK they should be shown GBP, not AED.

I am hosted with Siteground.

Can you help?

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png and  wp-admin access - https://share.pluginus.net/image/i20230222134615.png - I will check your settings

I have sent it now. Thank you!

Hello

I did a test - https://share.pluginus.net/video/v20240613174253.mp4 - Woocommerce is sending incorrect user location data. There may be a problem with the server settings (optimization)

Do you use cloudflare?

 

No we are on Siteground, never Cloudflare.

We currently ship to the following countries only:

  1. Bahrain
  2. Jordan
  3. Kuwait
  4. Oman
  5. Qatar
  6. Saudi Arabia
  7. United Arab Emirates
  8. United Kingdom

Hello

Perhaps you have server side caching settings?

I have cleared all the cache on the server

Hello

Please disable the cache to test

The caching is part of the host (siteground) I do not have any caching plugins to disable

Please drop me ftp access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png

Done, thank you

Hello

Yes, I checked. Your server caches GEO location of users. In fact, the current caching settings are incompatible with the functionality of woocommerce(geo ip)

In this case, you should contact your hosting support and ask for compatibility with woocommerce geolacations

Hi there,

I've been in touch now with my hosting support and we have turned off NGINX caching and Dynamic Caching. They have asked to check if there are particular URLs that should be excluded from caching and once the exact URLs are provided, I can exclude from caching option.

 

Thanks,

Hello

In this case, you should select the pages where you want woocommerce to determine the user's current position.

Since GEO IP only works for the user's first visit, I think it makes sense to add a home page

Great, I've updated those settings on my end now. Are you able to check on your site if it is working appropriately?

Hello

Yes, it looks like it works correctly now. - https://share.pluginus.net/video/v20240620125422.mp4

Ah that is great - thanks so much!

Welcome;)