WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Decimals products and shipments (9 posts)

  1. lucanorillo
    Member
    Posted 6 months ago #

    Hi. Now if I want to show the price of a product for example 99€ and the shipment 3,99€, I only can select the number of decimals, for example 2 decimals, and then happens that shows 99,00€ (a bit stupid thing) and 3,99€. Is it possible to change this? (when the decimals are 00 not to show) Thanks

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

  2. brocheafoin
    Member
    Posted 6 months ago #

    It's the last option in WooCommerce > Settings > Catalog > Price options.

  3. lucanorillo
    Member
    Posted 5 months ago #

    I cant find this option (I use the last version 2.1.3) Could you explain better please? Thanks

  4. brocheafoin
    Member
    Posted 5 months ago #

    The option has been removed in version 2.1, you are correct. Here is a relevant answer from the developers:
    http://wordpress.org/support/topic/where-are-zeroes-after-decimal-point?replies=4

  5. Roy Ho
    Member
    Posted 5 months ago #

    Actually that filter is no longer needed in 2.1.3 as we flipped it to false already by default. So you should see 99,00.

  6. lucanorillo
    Member
    Posted 5 months ago #

    So, its imposible to put 99 without zeros in products price, and 2,99 in shipments. Is it correct?

  7. brocheafoin
    Member
    Posted 5 months ago #

    Try adding this:

    add_filter( 'woocommerce_price_trim_zeros', '__return_true' );

    in your functions.php

  8. lucanorillo
    Member
    Posted 5 months ago #

    Yeahhh, thanks brocheaton!!!

  9. brocheafoin
    Member
    Posted 5 months ago #

    You're welcome. Could you mark this topic as resolved please?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.