Home Forums WoodMart support forum Why is the theme not allowing prices to be in decimal? and rounding the decimal

Why is the theme not allowing prices to be in decimal? and rounding the decimal

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #345108

    Farkhanda
    Participant

    Hi,
    Why is the theme not allowing prices to be in decimal? and rounding the decimal
    although the WooCommerce settings are configured for 3 decimal places

    #345182

    Luke Nielsen
    Keymaster

    Hello,

    This is a Woocommerce feature and our theme doesn’t influence or have any options to change.

    Please, check the decimal value in the “Number of decimals” field (https://prnt.sc/26d7jt6) in Woocommerce -> Settings -> General.

    I tested the “Number of decimals” field and everything works well (see below video).

    https://monosnap.com/file/N1V66xgu61goTuTXpEa4CzQhITcTby

    If you still have further questions, please don’t hesitate to reach out. We’d be happy to talk through them with you.

    Kind Regards

    #345703

    Farkhanda
    Participant

    Hi,
    Please check the screenshot of WooCommerce settings below
    https://snipboard.io/5X7QnS.jpg

    Please check the screenshot of product price at the back end as it doesn’t allow to put price as 0.545 and changes to 0545 while automatically removing the decimal. Please help
    https://snipboard.io/1yLidN.jpg

    Check how it looks on website
    Hi,
    Please check the screenshot of WooCommerce settings below
    https://snipboard.io/5X7QnS.jpg

    Please check the screenshot of product price at the back end as it doesn’t allow to put price as 0.545 and changes to 0545 while automatically removing the decimal.
    https://snipboard.io/1yLidN.jpg

    Check how it looks on website (shows 545 BHD instead of 0.545 BHD)
    https://snipboard.io/mraYtV.jpg

    Please check it on the backend yourself. The credentials are provided

    #345947

    Luke Nielsen
    Keymaster

    Hello,

    Could you please check how it works with some default WordPress themes to understand is it our theme issue or not?

    Kind Regards

    #346075

    Farkhanda
    Participant

    I already did that.
    That’s why I said your theme doesn’t allow as all other themes are allowing the decimal places and not rounding up the figures

    Please help fix this ASAP as this is delaying the payment integration testing where I want to test the payment only with the small amount as 0.05 but it doesn’t allow the prices to be in decimal

    #346105

    Luke Nielsen
    Keymaster

    Hello,

    Sorry, but our theme has nothing to do with prices on the product page or shop page. If you put values in the “Number of decimals” field in the WooCommerce -> Settings -> General and it doesn’t work then this is a problem with the WooCommerce because it’s their functionality. Try to contact their support team.

    Kind Regards

    #346116

    Farkhanda
    Participant

    If this is a woocommerce functionality problem then how is it working fine in other themes.
    I have used this theme in 2 of other websites as well and I am facing the same problem.
    The websites where there are different themes than this, it works fine

    Please help in solving this ASAP

    #346145

    Luke Nielsen
    Keymaster

    Hello,

    I checked this functionality with the “Twenty Nineteen” theme (that is the default WordPress theme) and I saw the same problem.

    https://gyazo.com/2ceb5d4cdf6dd30319423eefa2169362

    https://gyazo.com/137075644e59296ad011a994b633a064

    https://gyazo.com/c457178dd794454ce35d85dfd49e8037

    Therefore it turns out that it is not a problem with our theme.

    Please, clarify if we are doing something wrong.

    Kind Regards

    #346305

    Farkhanda
    Participant

    Hi,

    I just checked why is the product price asking to put comma instead of decimal point?
    That happens only in this theme. The payment gateways reject prices with comma instead of decimal thus failing the payment process.
    Please check the screenshot
    https://snipboard.io/zrB9H7.jpg
    How do I change the configuration to accept decimal instead of comma

    #346338

    Luke Nielsen
    Keymaster

    Hello,

    The decimal separator also refers to the functionality of WooCommerce, it can be changed via WooCommerce -> Settings -> General -> Decimal separator.

    https://monosnap.com/file/aeGfDHvH121SohKLwWOJZXWofvupbj

    https://gyazo.com/6da61fe6c5a7a2748ff80f17a6b17b60

    Don’t hesitate to reach out and let us know if you have any questions.

    Kind Regards

    #346339

    Farkhanda
    Participant

    Hi
    Yes
    I already fixed that, the comma was set to appear in the settings

    #346372

    Luke Nielsen
    Keymaster

    Hello,

    We are glad that you sorted it out.

    If you still have further questions, please don’t hesitate to reach out. We’d be happy to talk through them with you.

    Have a wonderful day!

    Kind Regards

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Why is the theme not allowing prices to be in decimal? and rounding the decimal’ is closed to new replies.