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
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

Issue where products created as disabled were not added back to related Target Rule results after being enabled.

Steps to reproduce:

  1. Create a simple Related Product Rule.
  2. 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.
  3. Run the cron to execute the indexer backlog.
  4. Enable the product later.
  5. Run the cron to execute the indexer backlog.
  6. Check the Storefront for the Related Products section, or query the magento_targetrule_product table for the newly created product ID.

If the issue is not reproducible with the steps above, try this alternative path:

  1. Install a new instance.
  2. Create a category.
  3. Create a Related Product Rule.
  4. Run cron.
  5. Create a disabled product.
  6. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools