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

Rounding aproximate price, value and shipping rates

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 ,

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.

Thanks,

Marko

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