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

Decimal formatting

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.

Please guide how I can format any decimal value in all currency ending with 99. For example, if currency value is 27.24 I want it always format into 27.99.

Hello

Read  this  please - https://currency-switcher.com/hook/woocs_raw_woocommerce_price AND https://currency-switcher.com/hook/woocs_woocommerce_variation_prices

I do not understand the content provided on the resources you provide. You just tell me what code should I put and wherein the theme to get 99 cents in prices

Hello

To customize the code, you should hire a developer.

In functions.php add:

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

return round($price + 0.01)0.01;

});

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

return round($price + 0.01)0.01;

});

Please confirm, will it be safer to add compatibility code using"code snippet" plugin rather than editing functions.php file?

Hello

The best thing for the site is to create a child theme and add this code to functions.php file