Content of the article

You need to log-in to create request (topic) to the support

Error currency after update 2.9

(new from 01-07-2019)

Yes that, rounded without cents, but i have one question, round the main currency, the second currency or each prince in each currency.

I send you a email with my FTP


To round with  cents (it's much easier):

round($price * 2, 0) / 2;

but i have one question - I do not understand your question  - it will round all currencies

Thanks for all Pablo you are the best


Thank you and Welcome;)

Pablo, really you are the best the function for round price by 5 works whell, expect on the variable products.

i leave a picture here


If you like to test you can use my dev site.


Thanks again for your help.


Read this -

Excellent Pablo, really you are the best, i put a new video on the Private Area, yo can see an error when you use is multiple allowed, i think i a problem with the dynamic pricing because its a problem with you option plugin "is multiple allowed" and the dynamic plugin option Settings > Change display prices in shop .

About the previous video and your answer of how to solve the problem of rounding in variable products did not work, there is a problem definitely when I enable the option "is multiple allowed"

Try to show the other video video the error you are making when that option is enabled.

Thanks in advance


About conflict  with third party  plugins -

My video -

perhaps a third-party plugin(on your  site) affects prices after rounding

Perfect Pablo, about the Variation prices, i add a lines to the functions.php

add_filter('woocs_woocommerce_variation_prices', function($price) {
return(ceil($price)%5 === 0) ? ceil($price) : round(($price+5/2)/5)*5;


I see in your video. i only have this before see your video

add_filter('woocs_raw_woocommerce_price', function($price) {

return(ceil($price)%5 === 0) ? ceil($price) : round(($price+5/2)/5)*5;


About the problem with the rightpress plugin i see this

But here have to change 3 files, but only 1 are in the rightpress plugin, the sendond and third its not there.





About the problem with the rightpress plugin -Yes, because we did an adaptation for the old version. Unfortunately for this plugin we will not do adaptation