MDVA-43091: When trying to order bundled product from the Admin, it throws the following error: You…
When trying to order bundled product from the Admin, it throws the following error: You cannot use decimal quantity for this product. Quality patch MDVA-43091 for magento/module-catalog-inventory applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.3-p3.
- Categories
- Admin, Shopping Cart
- Components
- magento/module-catalog-inventory
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.10
Issue
When trying to order bundled product from the Admin, it throws the following error: You cannot use decimal quantity for this product.
Steps to reproduce
1. Install a clean Adobe Commerce. 1. Create two simple products. 1. Create a bundled product with two options. 1. Create a customer account on the frontend. 1. Go to Admin > Sales > Orders > Create New Order. * Select the customer account created just now. * Try to add the bundled product to the cart.
Adobe's page lists 2.4.3 - 2.4.3-p1 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.4.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply MDVA-43091. On Cloud, add MDVA-43091 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-43091/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.4.3 <2.4.4
- Patch file
- patches/os/MDVA-43091_2.4.3-p1.patch
- vendor/magento/module-catalog-inventory/Model/StockStateProvider.php
