ACP2E-4402: Target Rule incremental indexer doesn’t pick disabled products
The ACP2E-4402 patch fixes the issue where products created as disabled were not added back to related Target Rule results after being enabled. This patch is available when the Quality Patches Tool (QPT) 1.1.79 is installed. The patch ID is ACP2E-4402. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.5-p13
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 2.4.5-p16
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
Issue where products created as disabled were not added back to related Target Rule results after being enabled.
Steps to reproduce:
- Create a simple Related Product Rule.
- Create a disabled product to match the rule condition (for example, Product Type is Simple Product). The issue is not specific to a particular condition.
- Run the cron to execute the indexer backlog.
- Enable the product later.
- Run the cron to execute the indexer backlog.
- Check the Storefront for the Related Products section, or query the
magento_targetrule_producttable for the newly created product ID.
If the issue is not reproducible with the steps above, try this alternative path:
- Install a new instance.
- Create a category.
- Create a Related Product Rule.
- Run cron.
- Create a disabled product.
- Run cron.
Expected results:
Target rules update with products that were initially created as disabled and later enabled. The newly enabled product appears in the Related Products section and in magento_targetrule_product.
Actual results:
The targetrule_product_rule incremental indexer skips the product on creation because it is disabled. Enabling the product later does not add a backlog for targetrule_product_rule, so the product never appears in the Related Products section. Only a full reindex picks it up.
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.