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

Changing language with polylang currency doesnt change

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,

The problem is the following:

I found a code on your site that was written for polylang. What it does is that if I change the language, the currency also changes. The problem is that when I change the language, the currency sign does not change. PL: 1000 HUF for a product in Hungarian, I convert it to English and the amount will not be 3 euros but 3 HUF. I tested it and if I turn off polylang and use your currency converter widget, the currency is converted perfectly. Could you possibly look at the code to see what could be wrong with it? Could you modify it to make it work?

Hello

Please  drop me  exact  link to  the issue

Check  options  - https://share.pluginus.net/image/i20220919075353.png and  https://share.pluginus.net/image/i20220919075423.png

Hello,

Issue:

https://gaborsmandalas.com/en/product/brahma-brahms-drachma/?v=35b5282113b8

Code:

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

Daniel

My  test - https://c2n.me/4gF7dJv

You also use a third-party plugin for pricing. Read  this - https://currency-switcher.com/woocs-labs

Hi,

The plugin I use for pricing is this plugin: https://www.studiowombat.com/knowledge-base/which-plugins-and-themes-are-compatible-with-advanced-product-fields-for-woocommerce/ If you look, it says here that it is 100% compatible with your plugin. I've already talked to their support and they said that the code you created is the one you put on the official page (here: https://currency-switcher.com/switch-currency-with-language-change) so that when Polyalang changes the language, the currency also changes, it's not good. Could you check if the code is correct? Because when I change the language, it's as if the page doesn't reload completely and because of this the sign behind the currencies doesn't change.

Daniel

 

Hello Daniel

I already did this and inserted a link to the video with my test - https://share.pluginus.net/image/i20220920081717.png - I couldn't reproduce this error