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

Round Off not working properly

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.

Hi,

I have added round off code to my site:

add_filter('woocs_raw_woocommerce_price', function($price) {
return round($price * 2, 0) / 2; // rounds to nearest 0.5
});

https://utsukushi-global.com/?v=55add3d845bf&currency=USD

However it seems that it does not apply to some products. Could you please help me to check.

Best Regards,

Issac

 

Hello Issac

I have and idea that another hook can intercept the logic. If you using cache plugins - reset all kinds of cache

If no luck: using duplicator plugin https://wordpress.org/plugins/duplicator/ create test subdomain and place copy of your site there, then in the secret area"Private data of the current support request" of this topic share acess to there and place message here that you did it to lte us know (paste and click save button) ...

+ also in the private area share please actual purchase code for the plugin because I see premium version installed there (paste and click save button)

Welcome ...

Hello Issac

Please try  to add this  code:

add_filter('woocs_woocommerce_variation_prices', function($price) {
return round($price * 2, 0) / 2; // rounds to nearest 0.5
});

Thank you so much, Pablo! 🙏
I tested the code and it works perfectly now. Really appreciate your help!

Great! Welcome;)