ACP2E-5242: Checking product availability while adding items to the cart displays an error indicating…
Checking product availability while adding items to the cart displays an error indicating that the website cannot be found. Quality patch ACP2E-5242 for magento/module-quote-graph-ql applies to Magento Open Source and Adobe Commerce 2.4.9. Adobe lists the fix as scheduled for 2.4.10.
Source: Adobe Experience League
- Categories
- GraphQL, Shopping Cart
- Components
- magento/module-quote-graph-ql
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.84
Issue
Checking product availability while adding items to the cart displays an error indicating that the website cannot be found.
Steps to reproduce
1. Log in to the Admin panel. 1. Go to Admin > Stores > Settings > All Stores, click Create Store View. 1. Create a second store view named "store_2", for example. 1. Create an empty guest cart with a GraphQL request using the "Store: store2" HTTP header. 1. Record the returned cart ID. 1. Add a simple product to the cart with a GraphQL request using the "Store: store2" HTTP header, the product SKU, and the cart ID.
Adobe's page lists 2.4.9 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.10.
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 ACP2E-5242. On Cloud, add ACP2E-5242 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACP2E-5242/ 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
magento/magento2-base >=2.4.9 <2.4.10
- Magento Open Source
- 2.4.9
- Adobe Commerce
- 2.4.9
- Patch file
- patches/os/ACP2E-5243_2.4.9.patch
- vendor/magento/module-quote-graph-ql/Model/CartItem/ProductStock.php
