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 Re Round the Shipping to 99 cents or Integer

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, I follow the guideline to re-round the product price to 99 cents, but I don't know how to re-round the shipping fee to the integer. Can someone help me resolve this? Thanks

Hello

You can  try this  custom  code - https://gist.github.com/dangoodman/0c8aba61b396fa1bcedf15fea8d04acd

Hello, I tried this code, but the shipping rates do not change in currencies other than the USD. How can I apply this rule to other currencies? Thanks

Hello

Try using a higher priority number

An example:

add_filter('woocommerce_package_rates', function ($rates, $package) {
//your code
}, 99999, 2);