The MDVA-35197 Magento patch fixes the issue where there's an error when adding to cart using GraphQL, if previously added products become out of stock. This patch is available when the Quality Patches Tool (QPT) 1.0.17 is installed.
Affected products and versions
The patch is created for Magento version: Magento Commerce Cloud 2.3.6
Compatible with Magento versions: Magento Commerce and Magento Commerce Cloud 2.3.5-2.3.6-p1
Note: the patch might become applicable to other versions with new QPT tool releases. To check if the patch is compatible with your Magento version, run
./vendor/bin/magento-patches status .
Error when trying to add a product to cart via GraphQL, if the other product already in the cart (also added via GraphQL) becomes out of stock.
Steps to reproduce:
- Using GraphQL, add any product to cart.
- Log in to Magento Admin panel and set this product as out of stock.
- Try adding another product to cart via GraphQL.
Actual result: GraphQL error message: Some of the products are out of stock . New "in stock" product cannot be added.
Expected result: In stock product can be added to the cart.
Apply the patch
For instructions on how to apply an QPT patch, use the following links depending on your Magento product:
- Magento Commerce: DevDocs Apply patches using Quality Patches Tool .
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply patches .
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches .
- Check if patch is available for your Magento issue using Quality Patches Tool .
For info about other patches available in QPT tool, refer to the Patches available in QPT tool section.