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

Price rounding does not work

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.

Using the functions provided on your site, for example:

3
4
5
6
7
8
9
10
11
add_filter('woocs_raw_woocommerce_price', function($price) {
    if (($price <= 1000))
    {
        $price = round($price / 1000, 0) * 1000;
        return $price;
    } else
    {
        $price = ceil($price / 500) * 500;
        return $price;
    }
});

rounding does not work at all

Hello

Check please that this hook works at all - return for example '777', if no changes - something has influence on this woocs hook or you placed the code not in the right place.

What result its returned to you?