MDVA-41139: The configurable product becomes out of stock after product import…
The configurable product becomes out of stock after product import when the simple product's qty = 0 for one of its sources. Quality patch MDVA-41139 for magento/module-inventory-import-export applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.3-p3.
- Categories
- Inventory
- Components
- magento/module-inventory-import-export
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.8
Issue
The configurable product becomes out of stock after product import when the simple product's qty = 0 for one of its sources.
Steps to reproduce
1. Create a new source and stock. 1. Create a configurable product with children products assigned to the default source and the new source. 1. Set the value of default stock for each children product = 0, and for other stock > 0. 1. The configurable product is in stock. 1. Export this product and import it again.
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-41139. On Cloud, add MDVA-41139 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-41139/ 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/inventory-metapackage >=1.2.3 <1.2.4
- Patch file
- patches/os/MDVA-41139_2.4.3_v2.patch
- vendor/magento/module-inventory-import-export/Plugin/Import/UpdateConfigurableProductsPlugin.php (added)
- vendor/magento/module-inventory-import-export/etc/di.xml
