Trailing zeros in Woocommerce - by rkunderground

This topic has 8 replies, 2 voices, and was last updated 7 years ago ago by Olga Barlow

  • Avatar: rkunderground
    rkunderground
    Participant
    March 24, 2017 at 03:43

    Hi. In the products display page I want to show the price with no trailing zeros in the price – i.e. $120, not $120.00.

    And I want to show the two decimal places in the the checkout page, with the added shipping and tax – $135.45.

    Right now in the woocommerce options I have 0 decimals for the front end display. It’s ok for the product page, but in the checkout there is no decimal places 🙁

    7 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 24, 2017 at 14:21

    Hello,

    All the options related to the currency you can find in WooCommerce > Settings > Currency Options. There is no any special settings for this in our theme. It’s WC plugin options.

    Regards

    Avatar: rkunderground
    rkunderground
    Participant
    March 24, 2017 at 14:54

    Aww. There’s no css code to fix that?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 24, 2017 at 18:04

    Hello,

    No, product price is 1 block http://prntscr.com/enzzfr how can you hide just a few symbols using CSS only?

    Regards

    Avatar: rkunderground
    rkunderground
    Participant
    March 24, 2017 at 18:08

    Sorry, I don’t understand Olga

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 24, 2017 at 18:14

    We don’t have the option to implement things that you want.
    Maybe it could be done by additional customization, but I’m not sure. You can send request to customization team https://wpkraken.io/?ref=8theme

    Regards

    Avatar: rkunderground
    rkunderground
    Participant
    March 24, 2017 at 18:16

    Oh, I thought you were suggesting to change some css code from your screen shot.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 24, 2017 at 18:37

    Nope. I have shown that price is one block that’s why there is no way to hide something using CSS.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 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.