[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-69203: Products List widget returns incorrect results when multiple categories are used in the category condition

The ACSD-69203 patch fixes the issue where the Products List widget returns incorrect results when multiple categories are specified in the category condition. This patch is available when the Quality Patches Tool (QPT) 1.1.76 is installed. The patch ID is ACSD-69203. 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.8-p3

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.8 - 2.4.8-p3
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

When multiple categories are specified in the category condition, the Products List widget displays only a subset of products instead of all products assigned to the selected categories.

Steps to reproduce:

1.Log in as an admin.

  1. Go to Catalog > Categories and create the following category structure:

    1. CAT1

      1. CAT11
      2. CAT12
    2. CAT2

      1. CAT21
      2. CAT22
  2. For each category, set Anchor to Yes and save.

  3. Go to Catalog > Products and create four simple products: simple1, simple2, simple3, simple4.

  4. Go to Content > Blocks and click Add New Block.

    1. Set the block title to home-page-block.
    2. Click Edit with Page Builder.
  5. Add a Row, then drag an HTML Code element into the row.

  6. Click the gear icon of the HTML Code element and click Insert Widget.

  7. Select Catalog Products List as the Widget Type.

  8. Set conditions for categories CAT1 and CAT2, for example:

Category is one of  3,4
  1. Click Insert Widget and save the block.
  2. Go to Content > Pages and open the Home page.
  3. Click Edit with Page Builder.
  4. Click Add Content > Block and select the home-page-block.
  5. Save the Home page.
  6. Load the Home page from the storefront and check the loaded products.

Expected results:

All four products from all four categories are displayed.

Actual results:

Only products from CAT11 and CAT12 are displayed.

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
c2d96e17-5179-455c-ad3a-e1697bb4e8c3