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

Currency problem (3 currency for 2 languages)

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 want to know is it possible to set 2 languages and 3 currency.
1. PL will be set to PLN
2. EN will be set to EUR and GBP But we want to use your functions that depends on chosen language (polylang version). Explain:
When you choose PL (language) then automatically currency switched to PLN, but when you choose EN (language) then you can change between EUR or GBP.
Could you help?

Best regards

Hello

Unfortunately, the plugin does not have the function of switching currency depending on the language.

You need code customization. An  example  - https://currency-switcher.com/switch-currency-with-language-change

Okey, I understand.

I ask one more question. Can I just switch off one of currency for one language?

"switch off" - please  describe it in more detail. Remove from switcher? Reset if this currency is current?

If it can be removed from switcher it will be good or to set it to non clickable thing.

Hello

I will provide code example. Add  the  code  in  functions.php

add_filter('woocs_currency_manipulation_before_show', function($currencies){

$your_currency = 'PLN';

global $WOOCS;

$lang = get_locale();

if ($lang == 'en_GB') {

unset($currencies($your_currency));

if($your_currency == $WOOCS->current_currency) {

$WOOCS->set_currency('EUR');

}

}

return $currencies;

});