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

WOOCS and Polylang - Plugin incorrectly assigns currency to language

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.

Hi,

Recently, I was configuring new language versions on my website, so I decided to use your plugin so that the new languages would have the appropriate currencies for each other.

In the functions.php file, I put the following code recommended by you:

==================

add_filter('wp_head', function() {
$lang = get_locale();
global $WOOCS;
switch ($lang)
{
case 'en_GB':
$WOOCS->current_currency='EUR';
$WOOCS->storage->set_val('woocs_current_currency', 'EUR');
break;

case 'es_ES':
$WOOCS->current_currency='EUR';
$WOOCS->storage->set_val('woocs_current_currency', 'EUR');
break;

case 'pl_PL':
$WOOCS->current_currency='PLN';
$WOOCS->storage->set_val('woocs_current_currency', 'zł');
break;

default:
$WOOCS->set_currency('PLN');
break;
}

==================

But even so, the plugin incorrectly matches the currency to the language.  Let me know what might be wrong.

 

Thank you in advance!

 

Hello

Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png

and  exact  link to the  issue

Hello,

Don't have premium version of the plugin.

Please  drop me  exact  link to the  issue

Please note that the code is not correct - https://share.pluginus.net/image/i20221219114357.png