- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2024
12:40 PM
10-05-2024
12:40 PM
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 :-)
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024
05:00 AM
10-28-2024
05:00 AM
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.
If the issue will be resolved, Click Kudos & Accept as a Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024
05:53 AM
11-04-2024
05:53 AM
Re: magento 2.4.7 configure cart item no decimals
Already done, with no result.
Made a workaround in PHP to replace the comma
Made a workaround in PHP to replace the comma