QUALITY PATCH

ACSD-69203: When multiple categories are specified in the category condition…

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. Quality patch ACSD-69203 for magento/module-catalog-widget applies to Magento Open Source and Adobe Commerce 2.4.7 to 2.4.8-p5.

Categories
Content
Components
magento/module-catalog-widget, magento/module-page-builder
Origin
adobe-commerce-support
Since QPT
1.1.76

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

Adobe's page lists 2.4.8 - 2.4.8-p3 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.9.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-69203. On Cloud, add ACSD-69203 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-69203/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (2): magento/module-catalog-widget, magento/module-page-builder
Packages across compatible versions (2): magento/module-catalog-widget, magento/module-page-builder

magento/magento2-base >=2.4.7 <2.4.8

Magento Open Source
2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7
Adobe Commerce
2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7
Patch file
patches/os/ACP2E-4508_2.4.7-p8.patch
  • vendor/magento/module-catalog-widget/Block/Product/ProductsList.php
  • vendor/magento/module-catalog-widget/Model/Rule/Condition/Product/CategoryConditionProcessor.php (added)
  • vendor/magento/module-catalog-widget/view/frontend/templates/product/widget/content/grid.phtml

magento/magento2-base >=2.4.8 <2.4.9

Magento Open Source
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8
Adobe Commerce
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8
Patch file
patches/os/ACSD-69203_2.4.8-p3.patch
  • vendor/magento/module-catalog-widget/Block/Product/ProductsList.php
  • vendor/magento/module-catalog-widget/Model/Rule/Condition/Product/CategoryConditionProcessor.php (added)

magento/module-page-builder >=2.2.5 <2.2.6

Magento Open Source
2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7
Adobe Commerce
2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7
Patch file
patches/os/ACP2E-4508_2.2.5-p8.patch
  • vendor/magento/module-page-builder/Model/Catalog/ProductTotals.php

magento/module-page-builder >=2.2.6 <2.2.7

Magento Open Source
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8
Adobe Commerce
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8
Patch file
patches/os/ACSD-69203_2.2.6-p3.patch
  • vendor/magento/module-page-builder/Model/Catalog/ProductTotals.php

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.