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

I want the exchange rate to be fixed, not LIVE.

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

newbie here that like to be able to have fixed exchange rate for some currencies.

I found a thread here that seems to solve my issue, but my knowlege isn't enough to get it running.
I guess that the filter below shoud fix the rate of NOK to 1.1, but I dont know where and in what file I shall paste it.

 

add_filter("woocs_add_custom_rate",function( $rate, $default_currency, $currency_name){

if ('NOK' == $currency_name)  {

$rate = 1.1 ; //sey your rate

}

return $rate ;

},10,3);

Hello

Please paste  this code in functions.php of your current theme.

Thanks, it works almost.

When I push"Update all rates" it get to 1,1, so thats as i like it,  but the auto update function seems to override so it put the exchange rate from yahoo there instead of my 1,1

Have you a solution for me here also, or did I make something wrong?

This shouldn't happen.

Please  drop me wp-admin access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png - I will check it

I have sent login details to you

auto update is off since it gives another rate than I like, but if you find whats wrong just leave auto update on

Hello

Yes, we did a test and this hook does not work with automatic update.

I have passed this on to the developers, we will fix it in the next version.

Temporary solution:

In file  - \wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php  - add this code  -  https://share.pluginus.net/image/i20240913105217.png

if ('NOK' == $currency_name)  {
$custom_rate  = 1.1 ; //sey your rate
}