×

 

Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

Trim zeros in price decimals

This code trims the zeros to show whole units where applicable, for example $43 instead of $43.00.

		/**
 * Trim zeros in price decimals
 **/

add_filter('woocommerce_price_trim_zeros', '__return_true');
	
   View Raw Code ID: 91067