
amazingquoteshassan(@amazingquoteshassan)
1 Post
Customers
Quote from amazingquoteshassan on April 17, 2020, 20:11
Is this possible to Auto change currency based on customer country? If the visitor is from the United States it displays product price in USD and if the customer is from the United Kingdom it displays product price in GBP. I have found this but how to implement it ?
https://currency-switcher.com/function/woocs-get_currency_by_country/
Is this possible to Auto change currency based on customer country? If the visitor is from the United States it displays product price in USD and if the customer is from the United Kingdom it displays product price in GBP. I have found this but how to implement it ?
https://currency-switcher.com/function/woocs-get_currency_by_country/

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 20, 2020, 12:06
Hello
Please watch a video - https://currency-switcher.com/video-tutorials#video_1
Use GeoIP rules - https://c2n.me/47733Sd.png
Read this - https://currency-switcher.com/using-geolocation-causes-problems-doesnt-seem-to-work-for-me/
If you want the user to not be able to change the currency. Add in functions.php
add_filter('wp_head',function(){
global $WOOCS;
$customer_country = $WOOCS->storage->get_val('woocs_user_country')
$currency = $WOOCS->get_currency_by_country($customer_country);
$WOOCS->set_currency($currency );
},99)
Hello
Please watch a video - https://currency-switcher.com/video-tutorials#video_1
Use GeoIP rules - https://c2n.me/47733Sd.png
Read this - https://currency-switcher.com/using-geolocation-causes-problems-doesnt-seem-to-work-for-me/
If you want the user to not be able to change the currency. Add in functions.php
add_filter('wp_head',function(){
global $WOOCS;
$customer_country = $WOOCS->storage->get_val('woocs_user_country')
$currency = $WOOCS->get_currency_by_country($customer_country);
$WOOCS->set_currency($currency );
},99)