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

Language switcher doesnt change currency

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, i am currently using this code:

add_filter('wp_head', function() {
$lang = get_locale();
global $WOOCS;
switch ($lang)
{
case 'pl_PL':
$WOOCS->set_currency('PLN');
break;
case 'en_GB':
$WOOCS->set_currency('EUR');
break;
default:
$WOOCS->set_currency('EUR');
break;
}
});

and it works but when i enabled currency switcher it doesnt switch currency with language swtich.

Hello

Please drop me exact link to the issue.

It depends on the language switcher and which translation plugin you use.

I can't turn on currency switcher because this store is live but i use polylang for translating. Heres link https://stylishdoctor.com/

Hello

I can't turn on currency switcher - Do you mean the dropdown itself with currencies? Of course it won't work because you are overriding the current currency with this custom code