
undergroundretail123(@undergroundretail123)
51 Posts
Customers
Quote from undergroundretail123 on August 1, 2021, 19:32
Hi
We are based in the UK using £GBP as the base currency.
We want to use addtional currencies, € & $, on the site, we know how to configure those.
We want to use GeoIP, so for example a customer in France will see € prices but when they checkout they have to make payment in GBP.
Also we do not want the customer in France to see the price in $USD or any other currencies ( just the base currency)
Is all this possible in the Settings on the full version of the programme?
Thank you
Peter
Hi
We are based in the UK using £GBP as the base currency.
We want to use addtional currencies, € & $, on the site, we know how to configure those.
We want to use GeoIP, so for example a customer in France will see € prices but when they checkout they have to make payment in GBP.
Also we do not want the customer in France to see the price in $USD or any other currencies ( just the base currency)
Is all this possible in the Settings on the full version of the programme?
Thank you
Peter

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 2, 2021, 10:13
Hello Peter
In this case, you need to add some extra code to functions.php
An example:
add_filter('wp_head',function(){
if(class_exists('WOOCS')){
global $WOOCS;
if(is_checkout()){
$WOOCS->set_currency('GBP');
}else{
$country = $WOOCS->storage->get_val('woocs_user_country');
$user_currency = $WOOCS->get_currency_by_country($country);
if (!empty($user_currency)) {
$WOOCS->set_currency($user_currency);
}
}
}
});
Hello Peter
In this case, you need to add some extra code to functions.php
An example:
add_filter('wp_head',function(){
if(class_exists('WOOCS')){
global $WOOCS;
if(is_checkout()){
$WOOCS->set_currency('GBP');
}else{
$country = $WOOCS->storage->get_val('woocs_user_country');
$user_currency = $WOOCS->get_currency_by_country($country);
if (!empty($user_currency)) {
$WOOCS->set_currency($user_currency);
}
}
}
});