
Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on January 17, 2020, 12:55
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
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

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on January 20, 2020, 13:53
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
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

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on January 21, 2020, 12:58
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 );
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 );