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

Currency change based on delivery country

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.

Hi,

I recenty bought your plugin. I would like to display the currency based on the delivery country selected. For eg if I select India as shipping country then inr should be shown, if I select USA then USD should be shown. I followed the instructions mentioned in the below link but it's not working. Can you help me out please

 

https://currency-switcher.com/possible-delivery-country-change-currency

Hello

Please give me the code you are using?

add_action('woocommerce_checkout_update_order_review', function($data) { global $WOOCS; if (is_string($data)) { parse_str($data, $data); } //*** $_currency = $WOOCS->get_currency_by_country($data['shipping_country']); if (!empty($_currency)) { $WOOCS->set_currency($_currency); } }, 9999);

Ok!  Please  use billing_country instead of  shipping_country

thanks a lot, Now its working perfectly. But to select payment gateway based on currency sir ?

Hi,

I have set base / welcome currency as INR, but for some reason it's showing USD for all my users. Can you please help me change it ?

Hello

But to select payment gateway based on currency sir ? -  Please check option - https://share.pluginus.net/image/i20231013113209.png

but for some reason it's showing USD for all my users.  - Check  option - https://share.pluginus.net/image/i20231013113322.png

use different devices for testing

Thanks, payment gateway is working perfectly.

 

But still I have issues with base / welcome currency. Can you please login and check if there is any issue ?

Hello

I checked everything works correctly ( I used countries that you don't have in GeoIP )- https://share.pluginus.net/video/v20231013144602.mp4

When i try, irrespective of the location its showing USD for everyone and there were many complaints. So currently I have changed to Side switcher so that users can select the currency that they want.

I think the issue is because of caching or cloudflare, when your free can you please check again ? s

Is it possible to display the price in INR and only during the time of checkout based on the shipping country it should change the currency?

add_action('woocommerce_checkout_update_order_review', function($data) {
global $WOOCS;

if (is_string($data)) {
parse_str($data, $data);
}
//***
$_currency = $WOOCS->get_currency_by_country($data['billing_country']);
if (!empty($_currency)) {
$WOOCS->set_currency($_currency);
}
}, 9999);

 

I tried this code but still many are complaining that the pricing is in USD

https://ibb.co/Fw3yMKf

https://ibb.co/FJQBHTR

https://ibb.co/6nMF9M5

 

As you can see, even though my default currency is inr its showing as Singapore dollars

Hello

Please  check  options - https://share.pluginus.net/image/i20231016121053.png and https://share.pluginus.net/image/i20231016121137.png

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