QUALITY PATCH

ACSD-55231: Getting 'the SKU was not found in the catalog' error when searching for products to add…

Getting 'the SKU was not found in the catalog' error when searching for products to add to the cart using quick order functionality. Quality patch ACSD-55231 for magento/module-shared-catalog applies to Magento Open Source and Adobe Commerce 2.4.2 to 2.4.6-p7.

Categories
B2B
Components
magento/module-shared-catalog
Origin
adobe-commerce-support
Since QPT
1.1.44

Issue

Getting 'the SKU was not found in the catalog' error when searching for products to add to the cart using quick order functionality.

Steps to reproduce

1. Install Adobe Commerce with B2B modules. 1. Navigate to Admin > Stores > Configuration > B2B Features and set: * Enable company: Yes * Enable Shared Catalog: Yes * Enable Quick Order: Yes 1. Save the above configuration. 1. Go to Catalog > Shared Catalogs and create a new shared catalog. 1. Navigate to Customers > All Customers and create a new customer: * In the group field, choose the recently created shared catalog and set Allow remote shopping assistance to Yes. 1. Generate a simple product with SKU p12, associate it with the category c1, and then opt for the newly created shared catalog in the Product in Shared Catalog section. 1. Run: bin/magento ind:rei bin/magento c:f bin/magento cron:run (multiple times) 1. Refresh the admin page. 1. Navigate to Customers > All Customers and edit the customer created previously. 1. Click Login as customer. 1. Go to Quick order. 1. Search the p12 SKU and click on the Product Suggestion. 1. Add this product to cart and place the order. 1. Return to Quick Order, search for SKU p12 again, and click on Product Suggestion.

Adobe's page lists 2.4.3 - 2.4.6-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.7.

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-55231. On Cloud, add ACSD-55231 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-55231/ 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 (1): magento/module-shared-catalog

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.