A simple, powerful and independent e-commerce platform.
Sell anything with ease.

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: 1067