
romandesign(@romandesign)
15 Posts
Customers
Quote from romandesign on March 10, 2022, 20:37
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
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

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on March 11, 2022, 11:45
Hello
Please try to add this code:
add_filter('woocs_raw_woocommerce_price', function($price) {
return round($price + 0.03) - 0.03;
});
Hello
Please try to add this code:
add_filter('woocs_raw_woocommerce_price', function($price) {
return round($price + 0.03) - 0.03;
});

romandesign(@romandesign)
15 PostsTopic Author
Customers
Quote from romandesign on March 14, 2022, 21:44
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.
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.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on March 15, 2022, 12:03
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?
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?

romandesign(@romandesign)
15 PostsTopic Author
Customers
Quote from romandesign on March 17, 2022, 02:03
I pasted the purchase code.
I replaced my original code with yours. Should I do both together?
I pasted the purchase code.
I replaced my original code with yours. Should I do both together?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on March 17, 2022, 12:01
Hello
Should I do both together? - Yes! one code for simple products second code for variable products
Hello
Should I do both together? - Yes! one code for simple products second code for variable products