
pickingcherry(@pickingcherry)
1 Post
Customers
Quote from pickingcherry on November 1, 2021, 02:36
Hi,
I am using Dokan marketplace, I need to have the EUR for vendors and GBR for customers, the shop sells only in UK at the moment but all vendors are in Europe.
If I place as main currency EUR but as welcome currency GBR also the vendors have GBR, if I use as welcome currency EUR the customers find it when they enter in the website but all customers are in UK and they are not interested at the Euro.
thank you for your help
Hi,
I am using Dokan marketplace, I need to have the EUR for vendors and GBR for customers, the shop sells only in UK at the moment but all vendors are in Europe.
If I place as main currency EUR but as welcome currency GBR also the vendors have GBR, if I use as welcome currency EUR the customers find it when they enter in the website but all customers are in UK and they are not interested at the Euro.
thank you for your help

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on November 1, 2021, 11:43
Hello
In this case, you need customization of the code.
An example:
add_action('wp_head', function(){
if(class_exists('WOOCS')){
$is_vendor = '''; //check current user
global $WOOCS;
if($is_vendor){
$WOOCS->set_currency('EUR');
}else{
$WOOCS->set_currency('GBR');
}
}
});
Hello
In this case, you need customization of the code.
An example:
add_action('wp_head', function(){
if(class_exists('WOOCS')){
$is_vendor = '''; //check current user
global $WOOCS;
if($is_vendor){
$WOOCS->set_currency('EUR');
}else{
$WOOCS->set_currency('GBR');
}
}
});