WooCommerce - excelling eCommerce
[resolved] Where are the decimals ?? (5 posts)

  1. BBIndikator
    Posted 1 year ago #


    I use WC 2.1.2. I have set it in settings to 2 decimal places but it don´t work.

    I want this € 75,00

    but I become this € 75 (and I don´t want this).

    Does anybody know how to fix this?

    Best regards


  2. manfredschmutz
    Posted 1 year ago #

    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

  3. Roy Ho
    Posted 1 year ago #

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

    add_filter( 'woocommerce_price_trim_zeros', function() { return false; } );
  4. BBIndikator
    Posted 1 year ago #

    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

  5. PhaseCreative
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.