ACSD-50815: The decimal quantity for a simple product cannot be used for a new bundled product option
The decimal quantity for a simple product cannot be used for a new bundled product option. Quality patch ACSD-50815 for magento/module-bundle applies to Magento Open Source and Adobe Commerce 2.4.5 to 2.4.5-p16.
- Categories
- Catalog/Product
- Components
- magento/module-bundle
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.35
Issue
The decimal quantity for a simple product cannot be used for a new bundled product option.
Steps to reproduce
1. Log in as an admin. 1. Create a new simple product. * In the Advanced Inventory window, set Qty Uses Decimal = Yes. * Save the simple product. 1. Create a new bundled product. 1. Add any option. 1. Add the simple product into this option. 1. Set a decimal quantity for the simple product in the bundled product option. For example, 1.5.
Adobe's page lists 2.4.5 - 2.4.5-p3 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.7.
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 ACSD-50815. On Cloud, add ACSD-50815 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-50815/ 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.5 <2.4.5-p17
- Magento Open Source
- 2.4.5-p16, 2.4.5-p15, 2.4.5-p14, 2.4.5-p13, 2.4.5-p12, 2.4.5-p11, 2.4.5-p10, 2.4.5-p9, 2.4.5-p8, 2.4.5-p7, 2.4.5-p6, 2.4.5-p5, 2.4.5-p4, 2.4.5-p3, 2.4.5-p2, 2.4.5-p1, 2.4.5
- Adobe Commerce
- 2.4.5-p16, 2.4.5-p15, 2.4.5-p14, 2.4.5-p13, 2.4.5-p12, 2.4.5-p11, 2.4.5-p10, 2.4.5-p9, 2.4.5-p8, 2.4.5-p7, 2.4.5-p6, 2.4.5-p5, 2.4.5-p4, 2.4.5-p3, 2.4.5-p2, 2.4.5-p1, 2.4.5
- Requires
- ACSD-49898, ACSD-46988
- Patch file
- patches/os/ACSD-50815_2.4.5-p1.patch
- vendor/magento/module-bundle/Ui/DataProvider/Product/BundleDataProvider.php
- vendor/magento/module-bundle/Ui/DataProvider/Product/Form/Modifier/AddSelectionQtyTypeToProductsData.php (added)
- vendor/magento/module-bundle/Ui/DataProvider/Product/Form/Modifier/BundlePanel.php
- vendor/magento/module-bundle/etc/adminhtml/di.xml
