WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Where are zeroes after decimal point? (4 posts)

  1. blufragola
    Member
    Posted 1 year ago #

    Hello.
    I have updated Woocommerce plugin to the version 2.1.1.
    In my previous version, 2.0.20, there was an option "Remove zeros after the decimal point.". I used not to check it because I wanted to have prices with zeroes.
    In the new version I can't find it, and the results are prices without decimal point. Is there a way to resolve my problem?
    Thank you.

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

  2. Mike Jolley
    Member
    Plugin Author

    Posted 1 year ago #

    add_filter( 'woocommerce_price_trim_zeros', '__return_false' );

    in theme functions.php

  3. penseelibre
    Member
    Posted 1 year ago #

    thank you that works !

  4. blufragola
    Member
    Posted 1 year ago #

    Yeaaahhh, it works like a charm!

    Thank you very much! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.