MDVA-27239: Cross-sell products are not displayed

The MDVA-27239 patch fixes the issue where cross-sell products are not displayed. This patch is available when the Quality Patches Tool (QPT) 1.1.7 is installed. Please note that the issue was fixed in Adobe Commerce 2.3.6.

Affected products and versions

The patch is created for Adobe Commerce version:

Adobe Commerce (all deployment methods) 2.3.4, 2.4.0

Compatible with Adobe Commerce versions:

Adobe Commerce (all deployment methods) 2.3.0 - 2.3.5-p2, 2.4.0 - 2.4.0-p1

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

Cross-sell products are not displayed in the cross-sell block on the shopping cart page.

Prerequisites:

  1. Disable Magento_TargetRule module or remove from layout block Magento\TargetRule\Block\Checkout\Cart\Crosssell.
  2. Create Product 1.
  3. Create a schedule update for Product 1, so the newly created products will have row_id different from entity_id.
  4. Create Product 2, Product 3, and Product 4.
  5. Set Product 3 as cross-sell for Product 4.
  6. Set Product 4 as cross-sell for Product 2.

Steps to reproduce:

  1. Add Product 4 and Product 2 to the shopping cart.
  2. Check the shopping cart page.

Expected results:

Product 3 is displayed in cross-sell block.

Actual results:

Cross-sell block is empty.

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 Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3