Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce - Stop to trim zeros!
add_filter( 'woocommerce_price_trim_zeros', '__return_false' );
@indikatordesign

This comment has been minimized.

Copy link

indikatordesign commented Feb 16, 2014

Hey, thanks a lot! It works nice..

@MarianneTopping

This comment has been minimized.

Copy link

MarianneTopping commented Feb 16, 2014

Works :)

@Aozuas

This comment has been minimized.

Copy link

Aozuas commented Feb 18, 2014

Just what I need! Obrigado novamente, mestre!

@amatzon

This comment has been minimized.

Copy link

amatzon commented Feb 27, 2014

Just for the record, from v2.1.3 default status is flipped. Enable it with:

add_filter( 'woocommerce_price_trim_zeros', '__return_true' );

@llest

This comment has been minimized.

Copy link

llest commented Apr 13, 2014

Weird thing is that it doesn't work for me. Not one way nor the other. I have WC 2.1.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.