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

Stop the GEo location tracking for specific user role i.e wholesale customer

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.

Hello There,

I purchased and installed woocs currency switcher plugin on my site.

Plugin is working great. but I want to stop using the currency switcher for the wholesale customer role. I want to show in default currency i.e euro for all products prices for all countries
I have used code but using this code only disables the sidebar and widget of the currency switcher.

As per ip location currency still currency is changing
For example: When I logged in as a wholesale customer from Norway all prices were shown in KR. we require all prices in euro for all ip locations
Could you please help me with this?
Thank you

Hello

In this case, you need code customization

An example:

add_filter('wp_head',function(){

$user = wp_get_current_user();

if(class_exists('WOOCS')  &&  in_array( 'your_wholesale_role', (array) $user->roles )){

global $WOOCS;

$WOOCS->set_currency('EUR');

}

});

Thank you so much It's working

Welcome;)