cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2.4.7 configure cart item no decimals

magento 2.4.7 configure cart item no decimals

I upgraded from 2.4.5 to 2.4.7 and now there are some problems with decimal values. Adding to cart of 0.5 qty is no problem, but when i trie to change it to eg. 0.7 in the minicart of by configure page (clicking the pencil) only integers are possible.

 

I think it is in some javascript validation, but i'm not sure. I searched for hours now, so please help :-)

 

Naamloos.jpg

2 REPLIES 2

Re: magento 2.4.7 configure cart item no decimals

Hello @Tricotstoffen,

the issue could be related to JavaScript validation or the input settings for quantity fields, especially after the upgrade. Magento 2 has built-in validation for quantities, and it may have been affected by the update.

 

  • Go to Catalog > Products in the admin panel.
  • Edit the product in question.
  • In the Advanced Inventory section, ensure that "Enable Qty Increments" is set to Yes and that "Qty Uses Decimals" is also enabled. And set Minimum Qty Allowed in Shopping Cart to 0 if you want to add qty 0.5 to the cart.cm1.png
cm2.png

 

If the issue will be resolved, Click Kudos & Accept as a Solution.

Re: magento 2.4.7 configure cart item no decimals

Already done, with no result.

Made a workaround in PHP to replace the comma