The MDVA-30565 patch solves the issue with session cache local storage and checkout. This patch is available when the Magento Quality Patch (MQP) tool v.1.0.6 is installed.
Affected products and versions
- The patch was designed for Magento Commerce Cloud 2.3.3-p1.
- The patch is also compatible with Magento Commerce and Magento Commerce Cloud 2.3.2 - 2.3.3-p1.
Note: the patch can be applicable to other versions. To check if the patch is compatible with your Magento version, run./vendor/bin/magento-patches status
Issue
When a customer session times out, cart items still can be seen on the cart page. This causes an estimate shipping method error where no shipping methods are available for guest checkout.
Steps to reproduce:
- Enable persistent shopping cart in Magento Admin. (Enable Persistence = "Yes")
- Log in as a customer in the frontend. This creates the
persistent_shopping_cart
cookie and initiates a persistent session. - Add a product into the cart.
- Wait until the frontend session gets timed out, or delete the
PHPSESSID
cookie. - Now you are a guest user, but if you go to the cart, you can still see the product that was added as a logged-in customer.
- Remove the product from the cart, and now the cart is empty. You can see Magento deletes the
persistent_shopping_cart
cookie in this event. - Add a new product into the cart, and go to the cart page.
- Now in the browser console it shows
V1/guest-carts/4/estimate-shipping-methods
request now returns a 404 response with message{"message":"No such entity with %fieldName = %fieldValue","parameters":{"fieldName":"cartId","fieldValue":0}}
Expected result:
The estimate shipping method request returns correct results as expected.
Actual result:
The estimate shipping method request fails with an error like, "Sorry, no quotes are available for this order at this time."
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.
Related reading
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.