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

Problem when changing the 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,

We bought the plugin, but there is a problem when changing the currency.

This site https://noisebgone.com/ has language versions (Bulgarian and English) with Polylang.

In the Bulgarian version we want only Bulgarian levs.

In the English version we want to set a switch to three currencies. Euro, British pound and dollar, but when we put a shortcode [woocs], currencies do not switch. We want the consumer to be able to choose the currency in which he wants to buy the product.

How can we do this?

We set the following code in function.php:

global $WOOCS;

switch($lang){
case 'bg_BG':
$WOOCS->current_currency='BGN';
$WOOCS->storage->set_val('woocs_current_currency', 'BGN');
break;
case 'en_US':
$WOOCS->current_currency='EUR';
$WOOCS->storage->set_val('woocs_current_currency', '€');
break;
}
Now the store switches and calculates the Bulgarian and English currencies correctly, but how can we add the other two currencies only for the English version and be functional?

Regards,

Hello

Unfortunately, the plugin does not have such a feature.  You need customization of the code.

The problem is that the code must determine whether the user has changed the currency manually or switch the currency according to the rules of the language. or the user has long switched the currency and then the language rules should not work

Hello,

Can you develop such functionality?

Regards,

Hello

Unfortunately we do not have time for custom tasks

Hello,

We have another problem.

We have set a default currency of euro, but if there is no script to force the currency, then the currency is BGN. Why?

script:
case 'en_US':
$WOOCS->current_currency='EUR';
$WOOCS->storage->set_val('woocs_current_currency', '€');
break;
}

Regards,

Hello

Correct  script:

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

OR

case 'en_US':

$WOOCS->set_currency('EUR');
break;
}

 

Hi,

Thanks for the quick answer, but what we mean is that we want to remove this script.

Our default currency is EUR, but without the script, prices are shown in BGN.

We want for EN version of the website, to have prices shown in EUR, as this is the default currency, and we want to remove this script so to have the option to use the currency switcher widget.

---

We will use the script only for the BG version of the site, so to show prices there in BGN.

I hope it is clear now.

Thanks!

Hello

Ok!  Set  EUR as  welcome  currency - https://c2n.me/47z9Yq4.png - for the first user visit there will always be EUR.  Next, the user will see his last currency