Support » Plugin: WooCommerce » Where are the decimals ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have excactly the same problem, I think the problem is somewhere in the method wc_price()

    Here is my topic: Decimals not working at price

    Roy Ho


    Put this in your theme’s functions.php file.

    add_filter( 'woocommerce_price_trim_zeros', function() { return false; } );

    Hey Roy,
    thank you! I fixed it with this one, it´s similar to your solution:

    add_filter( 'woocommerce_price_trim_zeros', '__return_false' );

    Thanks for your help!

    I wish you a nice weekend!

    Best regards

    I’m also having this problem. I’ll use the code above but perhaps it needs to be addressed in the next patch.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where are the decimals ??’ is closed to new replies.