Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add this code in your themes functions.php or as a separate plugin.
<?php
/**
* Trim zeros in price decimals in WooCommerce.
* For instance $200.00 is displayed as $200.
**/
add_filter( 'woocommerce_price_trim_zeros', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment