Show trailing zeros on prices in WooCommerce

// Show trailing zeros on prices, default is to hide it.
add_filter( 'woocommerce_price_trim_zeros', 'wc_hide_trailing_zeros', 10, 1 );
function wc_hide_trailing_zeros( $trim ) {
    // set to false to show trailing zeros
    return false;
}

You can add this snippet to your (child) theme's functions.php file.

2 Comments

  1. admin December 24, 2014 at 3:26 pm #

    Thanks!

    • Jonas Mekas December 24, 2014 at 3:26 pm #

      You are welcome!

Leave a Reply