ACSD-62635: Multi-store related products displayed incorrectly in GraphQL
The ACSD-62635 patch fixes the issue where multi-store related products do not display properly in the GraphQL product query. This patch is available when the Quality Patches Tool (QPT) 1.1.57 is installed. The patch ID is ACSD-62635. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p2
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-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 B2B is enabled, GraphQL request returns all related products from all websites even if a store view scope is used in the request.
Steps to reproduce:
-
Create two websites, stores, and store views.
-
Create the following simple products:
- One main with SKU product1 assigned to all websites
- One assigned only to Website 1
- One assigned only to Website 2
- One assigned to both Website 1 and Website 2
-
Add all the products as related to product1.
-
Enable B2B and Shared Catalog.
-
Add all products to the default shared catalog.
-
Send GraphQL request to retrieve product1 and its related products with the store code of Website 1 in the header.
Expected results:
The response contains related products only from the websites that correspond to the store code sent in the request header.
Actual results:
The response contains all related products from all websites, regardless of the store code specified in the request.
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.