ACSD-45488: Configurable product with multiple sources not returned to in stock automatically

The ACSD-45488 patch solves the issue where a configurable product with multiple sources is not returned to in stock automatically. This patch is available when the Quality Patches Tool (QPT) 1.1.18 is installed. The patch ID is ACSD-45488. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.6.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.2-p2

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.2 - 2.4.5
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

A configurable product with multiple sources is not returned to in stock automatically.

Steps to reproduce:

  1. Create a secondary stock source.
  2. Create a configurable product with two associated virtual products.
  3. Assign the associated products to the default stock source and set the quantity to one.
  4. Check the stock_status from cataloginventory_stock_status.
  5. Set both the associated products to be out of stock.
  6. Check the stock_status from cataloginventory_stock_status.
  7. Set both associated products to be in stock.
  8. Check the stock_status from cataloginventory_stock_status.

Expected results:

The stock status of the configurable product is updated to in stock when the associated products are set to be in stock.

Actual results:

The stock status of the configurable product is not updated to in stock when the associated products are set to be in stock.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a