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

GeoLocation is correct but currency does not switch

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.

FYI, USD is set for the rest of the world and MYR is set for Malaysia only. It will show USD for all other countries as expected, HOWEVER, at certain unknow situation USD also appears when the IP / Country detected is Malaysia. Below are 2 scenarios:

Before VPN :
Array ( [country] => MY [state] => [city] => [postcode] => )
After VPN :
Array ( [country] => MY [state] => [city] => [postcode] => )

Before VPN: 210.187.163.72 (country = MY)
After VPN: 129.227.241.151 (country = MY)

The testing is carried out with actual connection to Malaysia IP (210.187.163.72) but the currency shown is USD! But when I connect the VPN to Malaysia and the IP is changed to 129.227.241.151 which is still Malaysia, the currency became MYR, which is correct.

I tested this shortcode in header.php $pd = WC_Geolocation::geolocate_ip(); print_r($pd); and the results (with and without VPN) are the same, which is country = MY (Malaysia).

 

Please help, it's been annoying to our customers.

Thanks,

Andy

Hello Andy

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

If  no  luck - Drop me  wp-admin access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png