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

Help rounding converted prices to nearest 10?

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 very happy with the plugin! I would like to figure out how to round the converted prices to the nearest 10, if possible. I did a search on this forum, but I think all the results I saw were from other plugins (WOOCS, FOX, etc.) rather than WPCS. I have some screenshots here in case they are helpful to reference. Thank you very much for your product and assistance.

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

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

Hi there, I have pasted my license key there already—is it not showing for you?

I have also referenced that page and am having a hard time understanding what code I need specifically to make the rounding happen.

Currently, I have something like the example on that page [wpcs_price type="fixed" value="USD:15,EUR:20,GBP:45"] because otherwise, the converted currencies weren't showing (it said"none", I think).

Hello

Please add  in  functions.php

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

//http://stackoverflow.com/questions/11692770/rounding-to-nearest-50-cents

return $price = ceil($num / 10) * 10;

});