WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. BBIndikator
    Member
    Posted 5 months ago #

    Hello,

    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

    https://wordpress.org/plugins/woocommerce/

  2. manfredschmutz
    Member
    Posted 5 months 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
    Member
    Posted 5 months ago #

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

    add_filter( 'woocommerce_price_trim_zeros', function() { return false; } );
  4. BBIndikator
    Member
    Posted 5 months 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
    Member
    Posted 5 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.