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

How to Round Up/Down prices for different currencies.

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.

Hello, I am just wondering if there is a way to round prices when converted to different currencies.

So for example, if a price is usually $29.99 US Dollars, opposed to it being converted and displaying as $42.88 AUD, is it possible to have it rounded to $42.99/$43.00. Same for if it converts to $43.20 for example, to simply go to $42.99/$43.

Had a look in settings, but didn't see anything. Let me know if you guys have any suggestions, and if this is possible. Thanks!

Hello

In this case, you need code customization

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

Hello, I followed the tutorial to have it round to .99 cents, but i get this error message, any idea?

Error msg

the code is correct. problem in the code editor (false warning)

try  to  use FTP  to add  this  code

Do you know how I could go about doing this? Not all too familiar with making changes directly within the FTP, thank you!

Hello

OK! Perhaps the editor will work correctly with other code

Please  try this  code:

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

$price = round($price + 0.01) - 0.01;

return $price;

});

Worked a charm! Thank you sir.

Hello

Great! Welcome;)