FOX - Currency Switcher for WooCommerce

Hide trailing zeros on prices

A converted price of 10.00 reads better as 10. WooCommerce has a filter for exactly this, and it applies to every currency at once:

add_filter('woocommerce_price_trim_zeros', '__return_true');

Put it in the functions.php of your child theme. Prices with real decimals are untouched — 10.50 stays 10.50, only 10.00 becomes 10.

If you want zeros trimmed in some currencies but not others, set the decimals per currency in the plugin settings instead: each currency carries its own decimal count, so a currency with no fractional unit can simply be configured with zero decimals.