Support Forum

Content of the article

WPBE - WordPress Posts Bulk Editor Professional
You need to log-in to create request (topic) to the support

Rounding aproximate price, value and shipping rates

(new from 01-07-2019)
If you not got email within 24 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here.
The support doesn work on saturdays and sundays, so some Friday requests can be answered on Monday.

Hello ,

I am using Show aprox. Price and Amount options.
Is it possible to round the last full digit to zero same as for the raw and variable price for which I am using the following code:

global $WOOCS;

if($WOOCS->current_currency=="RUB") {

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

if (($price <= 10))


$price = round($price / 10, 0) * 10;

return $price;

} else


$price = ceil($price/10) * 10;

return $price;




Also for the shipping cost to round the last full digit to zero.



Hello Marko

You  need  to customize  plugin code

In file - \wp-content\plugins\woocommerce-currency-switcher\classes\woocs_after_33.php  in  function woocs_add_approx_to_price