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
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.
-
Go to Catalog > Categories and create the following category structure:
-
CAT1
- CAT11
- CAT12
-
CAT2
- CAT21
- CAT22
-
-
For each category, set Anchor to Yes and save.
-
Go to Catalog > Products and create four simple products: simple1, simple2, simple3, simple4.
-
Go to Content > Blocks and click Add New Block.
- Set the block title to home-page-block.
- Click Edit with Page Builder.
-
Add a Row, then drag an HTML Code element into the row.
-
Click the gear icon of the HTML Code element and click Insert Widget.
-
Select Catalog Products List as the Widget Type.
-
Set conditions for categories CAT1 and CAT2, for example:
Category is one of 3,4
- Click Insert Widget and save the block.
- Go to Content > Pages and open the Home page.
- Click Edit with Page Builder.
- Click Add Content > Block and select the home-page-block.
- Save the Home page.
- 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:
- 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.