Remove trailing zeros in decimal fields - by santo21

This topic has 9 replies, 2 voices, and was last updated 8 years, 6 months ago ago by Jack Richardson

  • Avatar: santo21
    santo21
    Participant
    September 23, 2015 at 22:41

    Hello,

    I have set 2 decimals in the whoocomerce settings. I don’t have the option to remove zeros after decimals, like here: https://www.8theme.com/topic/currency-2/
    It’s just not in the whoocommerce settings.

    Any help?

    8 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 24, 2015 at 09:46

    Hello,

    That option was removed in the recent Woocomerce update. Please refer to this article:
    http://docs.woothemes.com/document/show-trailing-zeros-on-prices/

    Best regards,
    Jack Richardson.

    Avatar: santo21
    santo21
    Participant
    September 24, 2015 at 09:51

    I saw that. The problem is that I want the zeros removed, not to show when it’s “00” as it should be by default. Now they are showing if I put 2 decimals in whoocommerce setings.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 24, 2015 at 09:54

    Hello,

    Please show us a page where the problem persists.
    Thank you.

    Best regards,
    Jack Richardson.

    Avatar: santo21
    santo21
    Participant
    September 24, 2015 at 11:30

    Please check:

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 24, 2015 at 15:02

    Hello,

    I’ve set “0” for “Number of Decimals” option in Woocommerce > Settings > General > Currency Options.
    Please clear browser cache and check prices now.

    Best regards,
    Jack Richardson.

    Avatar: santo21
    santo21
    Participant
    September 25, 2015 at 09:20

    I also did that and it’s working. But is not what i need.
    I want to only not show 0. For exemple if the price is 57,00 to show 57 but if it’s 57,99 to show 57,99.
    This is also need it when the are taxes like VAT in the total to show up correctly. If it is like now, with no decimals the final tax calculation is not exact, but rounded up.

    Avatar: santo21
    santo21
    Participant
    September 28, 2015 at 09:59

    Any update? Thank you.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 28, 2015 at 12:52

    Hello,

    The same issue persists with default WordPress theme too. In this case you have to ask Woocommerce support team for the solution.

    Also please update the theme to the latest version and Woocommerce as well.
    Before update delete “woocommerce” folder in the directory wp-content/themes/woopress/ and it’ll be reuploaded from a new theme package.
    Also update all required plugins https://www.8theme.com/download-plugins/ .

    Don’t forget to create back up of your files and database before starting update process!


    (it’s for Legenda theme but the process is the same).

    Best regards,
    Jack Richardson.

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.