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 switched prices

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!
Is it possible to round off the switched prices?
For example; 2000 becomes 345667 and I'd like it to be 346000.

Would be great!
Thanks for your help!

Hello

Please  read  this - https://wordpress.currency-switcher.com/hook/wpcs_price/

Thanks Pablo,

But I don't know what this 'Hook is in public function price().' means...
And do I paste this code as it is in my functions.php? Or do I need to change something?

Hello

Try  to add  in  functions.php

add_filter('wpcs_price', function($price) {
return round($price, -3);
});

if you have no experience in programming you should hire a developer

Great thanks!!

Hello

Welcome;)