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

Issue switching 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.

Hi, I am using your plugin for multi currency alone with polylang for multi language. I have a dropdown which switch the language along with the currency set for the language.

I am facing an issue, when I change a language the currency still remains the same until I reload the page again.

https://stage.belissas.com/ - site URL

Please find the code below,

add_filter( 'wp_head', 'belissas_currency_based_language_selector', 10 );

/**
* When we change the language based on that currency will change.
*
* @return void
*/
function belissas_currency_based_language_selector() {
$lang = get_locale();
global $WOOCS;
switch ( $lang ) {
case 'sv_SE':
$WOOCS->set_currency( 'SEK' );
$WOOCS->storage->set_val('woocs_current_currency', 'SEK');
break;
case 'nn_NO':
$WOOCS->set_currency( 'NOK' );
$WOOCS->storage->set_val('woocs_current_currency', 'NOK');
break;
case 'da_DK':
$WOOCS->set_currency( 'DKK' );
$WOOCS->storage->set_val('woocs_current_currency', 'DKK');
break;
case 'fi':
$WOOCS->set_currency( 'EUR' );
$WOOCS->storage->set_val('woocs_current_currency', 'EUR');
break;
default:
$WOOCS->set_currency( 'EUR' );
$WOOCS->storage->set_val('woocs_current_currency', 'EUR');
break;
}
}

Please let me know if you need access to the site. Also share an email ID so that I can provide access.

Hello

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

give me a link to the page where you use the language switcher

Language switchwe is used in the header.

 

https://stage.belissas.com/

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

Are you sure you're using the correct language codes?

https://nimb.ws/ton4Sb

Yes everything is correct.

Hello

Sorry, we do not support products without the license.

Updated the license not sure if that is the correct one.

this is an invalid license key