The MDVA-30599 Magento patch fixes the issue where guest quotes created using API are incorrectly marked as quotes for logged in customers. This patch is available when the Magento Quality Patch (MQP) tool v.1.0.6 is installed. The issue is scheduled to be fixed in Magento 2.4.2.
Affected products and versions
The patch is created for Magento version:
Magento Commerce Cloud 2.3.5-p2
Compatible with Magento versions:
Magento Commerce/ Magento Commerce Cloud 2.3.4-2.4.0
Note: the patch can be applicable to other versions with new MQP tool releases. To check if the patch is compatible with your Magento version, run
Guest quotes created using API are incorrectly marked as quotes for logged-in customers.
Steps to reproduce:
- On the Magento storefront, add a product to the cart as a guest user.
- In your Magento DB, find the corresponding
- Send an API request to
quoteGuestCartRepositoryV1Cart Repository interface for guest carts. It can be done via Swagger or cURL request
curl -X GET "http://web2-73.sparta.corp.magento.com/dev/support/ee24dev/rest/all/V1/guest-carts/ToOwPtSBxkorkCLq6ztwupPd99y8zhky" -H "accept: application/json"
In response you get
In response you get
Apply the patch
To apply individual patches use the following links depending on your Magento product:
- Magento Commerce: DevDocs Software Update Guide > Apply patches.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply Patches.
Additional steps required after the patch installation
The patch will be effective for all new guest carts. If you need to fix existing guest carts, set
quote.customer_is_guest = 1 for those records where
quote.customer_id is NULL. You could run a query similar to the following:
UPDATE quote SET customer_is_guest = 1 WHERE customer_id IS NULL;
We strongly recommend testing the query on the Staging/Integration environment, before running it in Production. We also recommend to have a recent backup before any manipulations with DB.
To learn more about Magento Quality Patches, refer to:
- Magento Quality Patches released: a new tool to self-serve quality patches.
- Check if patch is available for your Magento issue using Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.