ACSD-48293: Composite products go out of stock when the child products that were sold out…
Composite products go out of stock when the child products that were sold out are returned to stock. Quality patch ACSD-48293 for magento/module-bundle applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.3-p3.
- Categories
- Catalog/Product
- Components
- magento/module-bundle, magento/module-bundle-import-export, magento/module-inventory-bundle-import-export, magento/module-inventory-bundle-product, magento/module-inventory-catalog, magento/module-inventory-configurable-product, magento/module-inventory-grouped-product
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.25
Issue
Composite products go out of stock when the child products that were sold out are returned to stock.
Steps to reproduce
1. Create a secondary website, store, and store view. 1. Create two sources and stocks and assign them to each website. 1. Enable the show out-of-stock products option under Store > Config > Catalog > Inventory > Stock Options > Display Out-of-Stock Products = Yes. 1. Create a configurable product with one associated product using the primary website's stock source (set qty = 1). 1. Place an order for the configurable product. 1. Run the cron. 1. Open the configurable product from the storefront and confirm it is out of stock. 1. Open the configurable product from the Admin and set the Manage Stock Option to No. 1. Run the cron. 1. Ship the order and add qty to the simple product making it in stock. 1. Run the cron. 1. Check the product availability on the storefront.
Adobe's page lists 2.4.3 - 2.4.4 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.6.
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-48293. On Cloud, add ACSD-48293 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-48293/ 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
- Requires
- MDVA-41061-V4
- Patch file
- patches/os/ACSD-48293_2.4.3-p3.patch
- vendor/magento/module-bundle/Model/Inventory/ChangeParentStockStatus.php (added)
- vendor/magento/module-bundle/Model/Inventory/ParentItemProcessor.php (added)
- vendor/magento/module-bundle/etc/di.xml
- vendor/magento/module-bundle-import-export/Plugin/Import/Product/UpdateBundleProductsStockItemStatusPlugin.php (added)
- vendor/magento/module-bundle-import-export/etc/di.xml
magento/inventory-metapackage >=1.2.3 <1.2.4
- Requires
- MDVA-41061-V4
- Patch file
- patches/os/ACSD-48293_1.2.3-p2.patch
- vendor/magento/module-inventory-bundle-import-export/Plugin/Import/Product/UpdateBundleProductsStockItemStatusPlugin.php (added)
- vendor/magento/module-inventory-bundle-import-export/etc/di.xml
- vendor/magento/module-inventory-bundle-product/Plugin/InventoryApi/UpdateParentStockStatusInLegacyStockPlugin.php (added)
- vendor/magento/module-inventory-bundle-product/etc/di.xml
- vendor/magento/module-inventory-catalog/etc/di.xml
- vendor/magento/module-inventory-configurable-product/Plugin/InventoryApi/UpdateParentStockStatusInLegacyStockPlugin.php (added)
- vendor/magento/module-inventory-configurable-product/etc/di.xml
- vendor/magento/module-inventory-grouped-product/Plugin/InventoryApi/UpdateParentStockStatusInLegacyStockPlugin.php (added)
- vendor/magento/module-inventory-grouped-product/etc/di.xml
