ACSD-45071: After a product import, the default source is automatically assigned to the product…
After a product import, the default source is automatically assigned to the product, quantity is set to zero, and status is set to out of stock. Quality patch ACSD-45071 for magento/module-catalog-import-export applies to Magento Open Source and Adobe Commerce 2.4.2 to 2.4.3-p3.
- Categories
- Import/Export, Inventory
- Components
- magento/module-catalog-import-export, magento/module-inventory-import-export
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.21
Issue
After a product import, the default source is automatically assigned to the product, quantity is set to zero, and status is set to out of stock.
Steps to reproduce
1. Create a new source. 1. Create a new stock using the new source. 1. On the product edit page in Adobe Commerce Admin, assign only the custom stock, set some quantity, and set stock status to In Stock. 1. Import the product via Admin > System > Data Transfer > Import.
Adobe's page lists 2.4.2 - 2.4.3-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.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-45071. On Cloud, add ACSD-45071 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-45071/ 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.2 <2.4.4
- Patch file
- patches/os/ACSD-45071_2.4.3-p2.patch
- vendor/magento/module-catalog-import-export/Model/Import/Product.php
- vendor/magento/module-catalog-import-export/Model/StockItemProcessor.php (added)
- vendor/magento/module-catalog-import-export/Model/StockItemProcessorInterface.php (added)
- vendor/magento/module-catalog-import-export/etc/di.xml
magento/inventory-metapackage >=1.2.2 <1.2.3
- Patch file
- patches/os/ACSD-45071_1.2.2.patch
- vendor/magento/module-inventory-import-export/Plugin/Import/SourceItemImporter.php
- vendor/magento/module-inventory-import-export/etc/di.xml
magento/inventory-metapackage >=1.2.3 <1.2.4
- Requires
- MDVA-41139
- Patch file
- patches/os/ACSD-45071_1.2.3-p2.patch
- vendor/magento/module-inventory-import-export/Plugin/Import/SourceItemImporter.php
- vendor/magento/module-inventory-import-export/etc/di.xml
