Remove decimals in WooCommerce

Updated:
Jun 18, 2024

For the Dintero for WooCommerce plugin to work optimally, you need to set 2 decimal places in the WooCommerce settings. This is done by going to WooCommerce → Settings → General -> Number of Decimals → Set value to 2.

If you don't want to show any decimals in your online store, there is still a "workaround". Go to your WordPress theme functions.php and enter the following script:

/** * Trim zeros in price decimals **/ add_filter( 'woocommerce_price_trim_zeros', '__return_true' );

Do your prefer talking to us?

Get help from one of our payment experts.
Or call us at +47 22 34 34 54