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

Auto update rate currency exclusion. Is it possible?

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.

Is it possible to exclude a specific currency from the automatic update rate? Thanks

Hello

Yes. But you will need a custom code - https://currency-switcher.com/hook/woocs_add_custom_rate

an  example:

add_filter('woocs_add_custom_rate', function($rate, $base_curr, $currency){

if('USD' == $currency){
$rate = 0.99999;
}

return $rate;
},10,3);

Hola Pablo, thanks for answering me

I did not understand very well what the correct code is. If my base currency is USD and the currency that I want to exclude from the automatic update is VES. How would the correct code be please? Thanks

Hello

Try  it please:

add_filter('woocs_add_custom_rate', function($rate, $base_curr, $currency){

if('VES' == $currency){
$rate = 0.99999;
}

return $rate;
},10,3);

 

Use your rate instead - 0.99999

 

Hello

The code works at first but the scheduled auto update rate every 30 minutes still affects VES and changes the rate by the rate of the currency aggregator I am using (Cryptocompare)

Is it possible that the scheduled auto update will not change the VES rate? Thank you pablo

Solved! thanks

 

rate - 1.000*rate + x,xx (my rate)

Hello

Great! Welcome;)