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

My Geoip not working in my Site

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 have purchased this plugin and found plugin is not working as per requirement it doesn't switch the currency according to  country i have follow https://currency-switcher.com/using-geolocation-causes-problems-doesnt-seem-to-work-for-me/ these all steps still facing troubles in site. Please help asap

Hello

1 You have disabled the location function - https://c2n.me/45y1FpO.png

Please  try  to  read   this  article -  https://c2n.me/45y1Tj7.png

2 you use caching on the site. Check  option - https://c2n.me/45y1YAt.png

which server are you using? Do  you  use  Bluehost OR cloudflare

I created  test  page - http://your_link/test-geoip/

But your server always shows the location as US.  Contact to  hosting support

 

 

We have contacted to our server they have checked the settings and said to us ----ask them to provide a requirement document OR log OR something like that.

 

Server support reply : Write back to plugin support team and ask them to provide a requirement document OR log OR something like that

Hello

Location is a feature of woocommerce ( https://c2n.me/45Akgox.jpg ) - All they need can be found here - \wp-content\plugins\woocommerce\includes\class-wc-geolocation.php  function geolocate_ip

Hello,

This is not what I meant. What I mean is that the server team told me that the reason why you are getting the US location each time is because the server location is set to US.

What we need to fetch is not server location but the location of the IP address from where the site is being accessed.

They said you would have some kind of log file which can store the IP addresses from where the site has been accessed from. Once we provide that log file to them, they will check the list of IP addresses and their locations to know from which country they are from.

If the locations are displayed properly on their side, then it would not be their issue but the coding issue.

 

Thanks

Any update on this?

Hello

I understood you! And wrote everything in a previous message.

My plugin does not determine the location of the user, it does woocommerce. My plugin takes all data from woocommerce.

I gave you the way where this function is executed. There are several ways to solve this! But this should be done on server support( Because they know in which variables the correct data is stored. ).

Example:  Use  this  hook - https://c2n.me/45BrvHK.png to  send  correct  currency  codes

add_filter( 'woocommerce_geolocate_ip', function($code, $ip_address, $fallback, $api_fallback){

return $corect_country_code;

},20,4 );