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

How should I round the price for mass editing up to 10 UAH.

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.

When editing the price, how to round it up with an exception of UAH 10. For example, if we have a price of 4729 UAH, we increase it by 30%. Now we get 6148 UAH, but we need to round it up to 6150 UAH?

Hello

Please  read  this - https://bulk-editor.com/woocommerce-price-rounding

try  this  code(an example):

add_filter('woobe_number_field_manipulation', function($value, $field_key, $product_id) {

if ('regular_price' == $field_key || 'sale_price' == $field_key) {

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

}

return $value;

}, 10, 3);