Hi,
The “Test mode” is enabled to test “Singapore,” so the customer’s IP country will be overridden, and the plugin will always display the Singapore price.
Disable the Test mode, and review also:
https://www.pricebasedcountry.com/docs/getting-started/testing/
sorry please ignore the test mode screenshot – I tested it with Malaysia and yet it still shows USD
-
This reply was modified 1 year, 1 month ago by
kraken85.
You have to do the test in a new incognito window:
* Close all incognito windows of your browser.
* Open the page you want to test in a new incognito window.
https://www.pricebasedcountry.com/docs/getting-started/testing/#_test-mode
Below screenshot is taken in Incognito mode from Malaysia based IP address
https://snipboard.io/vS3h9o.jpg
Hi,
How did you change the currency symbol to USD?? The way you use to change it causes the problem.
The free version of Price Based on Country does not include any way to change the currency symbol.
Remove the custom function you added to replace the currency symbol with USD, and the issue will solve.
yes there is a custom function to add a USD label – Removing that will output this
https://snipboard.io/PEI2Oa.jpg
This amount is still reflecting a USD amount
Actual prices should be 95 and 30 respectively for malaysian based visitors
**in the product page settings, for some reason the ‘other’ price is overwriting it
https://snipboard.io/D5E9Bt.jpg
**this was working before this – but not after your recent plugin update
-
This reply was modified 1 year, 1 month ago by
kraken85.
-
This reply was modified 1 year, 1 month ago by
kraken85.
Hi,
Yes, if this variable is not empty, the WooCommerce Geolocation function gets the IP from the HTTP_X_REAL_IP.
You can try to replace this value on your wp-config.php or using a code snippet:
function fix_geolocation_vars(){
$_SERVER['HTTP_X_REAL_IP'] = $_SERVER['REMOTE_ADDR'];
}
add_filter( 'init', 'fix_geolocation_vars', -1 );