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
- This topic has 11 replies, 2 voices, and was last updated 2 years, 10 months ago by Luke Nielsen.
-
AuthorPosts
-
January 13, 2022 at 11:33 am #345108
FarkhandaParticipantHi,
Why is the theme not allowing prices to be in decimal? and rounding the decimal
although the WooCommerce settings are configured for 3 decimal placesJanuary 13, 2022 at 2:51 pm #345182
Luke NielsenKeymasterHello,
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
January 16, 2022 at 8:55 am #345703
FarkhandaParticipantHi,
Please check the screenshot of WooCommerce settings below
https://snipboard.io/5X7QnS.jpgPlease 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.jpgCheck how it looks on website
Hi,
Please check the screenshot of WooCommerce settings below
https://snipboard.io/5X7QnS.jpgPlease 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.jpgCheck how it looks on website (shows 545 BHD instead of 0.545 BHD)
https://snipboard.io/mraYtV.jpgPlease check it on the backend yourself. The credentials are provided
January 17, 2022 at 3:41 pm #345947
Luke NielsenKeymasterHello,
Could you please check how it works with some default WordPress themes to understand is it our theme issue or not?
Kind Regards
January 18, 2022 at 9:01 am #346075
FarkhandaParticipantI 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 figuresPlease 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
January 18, 2022 at 10:24 am #346105
Luke NielsenKeymasterHello,
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
January 18, 2022 at 10:52 am #346116
FarkhandaParticipantIf 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 finePlease help in solving this ASAP
January 18, 2022 at 12:33 pm #346145
Luke NielsenKeymasterHello,
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
January 19, 2022 at 7:40 am #346305
FarkhandaParticipantHi,
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 commaJanuary 19, 2022 at 10:44 am #346338
Luke NielsenKeymasterHello,
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
January 19, 2022 at 10:46 am #346339
FarkhandaParticipantHi
Yes
I already fixed that, the comma was set to appear in the settingsJanuary 19, 2022 at 12:10 pm #346372
Luke NielsenKeymasterHello,
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
-
AuthorPosts
Tagged: woocommerce, WoodMart
The topic ‘Why is the theme not allowing prices to be in decimal? and rounding the decimal’ is closed to new replies.
- You must be logged in to create new topics. Login / Register