• Resolved jameswilson_114

    (@jameswilson_114)


    As of today geolocation doesn’t work on my site. The billing country no longer recognizes the customers location and only shows the default country (UK). I have checked it using a VPN from different locations around the world.

    I have tried deactivating all other plugins except woocommerce and have updated every plugin to its latest version with no luck. No cache plugin is active.

    This is really important to me as I use an automatic currency converting plugin, and the prices are changing back to the default billing country at checkout. Therefore all worldwide customers are not seeing the converted prices but UK prices. The problem persists when the currency converting plugin is deactivated. The plugin uses woocommerce geolocation to serve the appropriate currencies.

    I checked the GeoIP.dat and GeoIPv6.dat files and they were both updated today.

    Any help would be greatly appreciated.

    https://wordpress.org/plugins/woocommerce/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Even when working Geolocation is never 100% accurate. Once they input an address, the taxes would change. Does the plugin you’re using not allow a manual switch?

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Also just cleared my .dat files and tested and was geolocated fine.

    Thread Starter jameswilson_114

    (@jameswilson_114)

    Hey mike, thank you for your response – I appreciate all the help.

    Yes once they select the billing country from the drop down the currency switches automatically to their selected country and back to the currency they have seen on the rest of the site and up to checkout.

    My reason for looking for a fix is customers can come to checkout and see a different currency/price and drop out before realizing the billing country needs changing.

    It worked perfectly up to yesterday and I havent completed any updates. Is there anything my hosting company could have done/updated which could be causing the sudden stop in functionality?

    Is there anything else you can recommended to try to get it to work again and recognize the location of the user?

    Many thanks

    Thread Starter jameswilson_114

    (@jameswilson_114)

    Hey, just an update. I have tested the geolocation on a exact replica site on a different VPS server which I have. It worked perfectly as it should.

    Therefore that must narrow the problem down to a change/update my web hosting company has made which has affected the geolocation.

    Many thanks

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Ok. If you delete the dat files and let them redownload, that should rule out any corruption.

    Thread Starter jameswilson_114

    (@jameswilson_114)

    Hey Mike, I have replaced the dat files but it unfortunately didn’t solve the issue.

    Are there any other suggestions?

    Many thanks

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Nothing else I can think of. it’s working for me, so unless your IP cannot be geolocated for any reason..

    This stopped working for me also just recently.

    I initially thought it was down to recently moving over to Sucuri CloudProxy but after deactivating it and going through a whole host of other tests with the people over at Sucuri it still appears to be an issue.

    Can’t think what else it could be. I am using the “geolocate with caching support” setting.

    Just in case this issue occurs to anyone else:

    Looks like I had a combination issue – it was a misconfiguration in CloudProxy AND corrupted GeoIP.dat and GeoIPv6.dat making it difficult to find the issue!

    I now have everything working with CloudProxy / Sucuri WAF using the Sucuri WordPress Plugin with Reverse Proxy Support enabled, IP Address Discover enabled and Main IP HTTP Header set to HTTP_X_REAL_IP

    GeoIP.dat and GeoIPv6.dat are located in wp-content/uploads folder and I just deleted and then force-downloaded them again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Geolocation not working’ is closed to new replies.