Make price in WooCommerce an absolute value

You can make the prices displayed in WooCommerce an absolute value and remove the decimal .00 places with the WooCommerce woocommerce_price_trim_zeros filter.

So for example to go from $50.00 to $50

In your functions.php add the following…

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

Leave all Comment