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

Rounding to nearest $0.50

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see blue-green button on the right side) and press Save button.
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.

Our store is setup in Canadian funds and we also sell in US funds.  We have been using fixed prices for the US price but would like to change that and have it automatically convert with the Currency Switcher and current exchange rates.   When prices are automatically converted to US funds, we want them rounded (preferably to the nearest $0.95 cents, but there isn't a code for that).  I am using the plugin Code Snippet to enter the code provided on how to round to the nearest $0.50 but nothing changes.  When I use the $0.99 code, it gives an error.    Is the issue with the Code Snippet or the codes?  Also, will all prices be rounded or only the converted US prices?  Thanks

Hello

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

Is the issue with the Code Snippet or the codes?  - it looks like you did something wrong

preferably to the nearest $0.95 cents:  

add_filter('woocs_raw_woocommerce_price', function($price) {
return round($price + 0.01)-0.05;
});