ACSD-62428: Stock status errors in catalog search index
The ACSD-62428 patch fixes the issue where is_out_of_stock
values in the catalog search index is set to an incorrect value when the SKU attribute is not set as searchable. This patch is available with the Quality Patches Tool (QPT) 1.1.56. The patch ID is ACSD-62428. Please note that the issue was is scheduled to be fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
Adobe Commerce (all deployment methods) 2.4.6-p5
Compatible with Adobe Commerce versions:
Adobe Commerce (all deployment methods) 2.4.6 - 2.4.6-p8
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
The is_out_of_stock
value in the catalog search index is set to an incorrect value when the SKU is not configured as a searchable attribute, leading to inaccurate stock representation.
Steps to reproduce:
- Create a custom Source and custom Stock.
- Create three simple products and assign their inventory to the custom Source. Assign these products to a category.
- Set the Inventory (MSI) Indexer to Update on Save for easier replication.
- Set the Source Item Status to In Stock and assign a Quantity.
- Save the product.
- Navigate to Stores > Attributes > Product, and open the SKU attribute.
- Set Use In to No.
- Change the product quantity (make sure it is not set to 0).
- Save the product.
Expected results:
The is_out_of_stock
value accurately reflects the product’s stock status, even when the SKU is not a searchable attribute.
Actual results:
The is_out_of_stock
value is incorrectly set to 1, and the SKU attribute is absent in the indexed data.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.