ACP2E-3731: Product exports with Catalog, Search visibility include records from other store views
The ACP2E-3731 patch fixes the issue where product exports with Catalog, Search visibility incorrectly include records from other store views in multi-store environments. This patch is available when the Quality Patches Tool (QPT) 1.1.69 is installed. The patch ID is ACP2E-3731. 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.6-p9
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.8-p1
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
Product exports include incorrect rows when the visibility filter is set to Catalog, Search in multi-store setups due to store-scoped attribute variations.
Steps to reproduce:
-
In the Admin panel, go to Stores > Settings > All Stores to create an additional website, store, and store view.
-
Go to Stores > Attributes Attribute Set. Click Add Attribute Set to create an attribute. Set Based On to Default.
-
Create a product and assign it to both the main website and the secondary website.
-
Set a text value for the newly created attribute with Scope set to All Store Views.
-
Change the scope to the secondary store view and update the attribute with a different value.
-
Change the scope to the default store view and the secondary store view, then set the product visibility to Not Visible Individually.
-
Go to System > Export, and select Products from the dropdown menu.
-
Set a filter where Visibility = Catalog, Search, and click Continue.
-
Run the following command to process the export:
code language-shell php bin/magento queue:consumers:start exportProcessor -
Check the exported file.
Expected results:
Only the filtered records are exported.
Actual results:
The exported file includes a row for the secondary store view, which doesn’t match the filter criteria set during export.
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.