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 up

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.

I added following rounding code (I tried your example too) as I need to round up to .97c - but it only works for the main price, not for product variations:

add_filter('woocs_woocommerce_variation_prices', function($price) {
return round($price + 0.03) - 0.03;
});

 

You can see the problem at the link I provided

 

Hello

Please  try to add this code:

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

return round($price + 0.03) - 0.03;

});

I tried this code, but there is still a problem. If you look at the link provided in"private data" you will see that the main price is not affected, but variation prices are affected correctly.

Hello

Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png

Are you using these two code?

I pasted the purchase code.

I replaced my original code with yours. Should I do both together?

Hello

Should I do both together? -  Yes! one code for simple products second code for variable products