Trustpilot | Site Banner Q4 2026

Banner image
Product Icon

WooCommerce

Sell online with the flexible, customizable ecommerce platform designed to grow with your business. From your first sale to millions in revenue, Woo is with you. See why merchants trust us to power 4+ million online stores.

Rounding function for Swiss Shops

In Switzerland prices are always mathematically rounded to CHF 0.05. Hence, CHF 9.92 will be CHF 9.90. Therefore, it would be great to have that built in into WooCommerce Core so no complicated custom function is needed to achieve that.

Author

inoiv

Current Status

Open

Last updated: April 29, 2025

1 comment

Log in to comment on this feature request.

  1. strainovicit says:

    Until this lands in core: the part that usually breaks is not the rounding itself but where the difference ends up. A filter on `woocommerce_calculated_total` only changes the cart total. With the block checkout the order is rebuilt from its line items, so the rounded amount often gets lost between checkout and the saved order (a user described exactly this here: Rounding issue | WordPress.org). What holds up is a separate, untaxed line (a fee) that carries the difference to the nearest 0.05, calculated after coupons, shipping and other fees. Then the order, the invoice PDF and any accounting export all show the same total, and product and shipping VAT stay exactly as WooCommerce calculated them.

    Disclosure: I develop a free plugin that does exactly this for CHF shops (classic and block checkout, rounding shown as its own line): https://www.strainovic-it.ch/en/rappenrundung/

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.