ACSD-54887: Customer shopping cart gets cleared after customer session has expired

The ACSD-54887 patch fixes the issue where the customer’s shopping cart gets cleared after the customer session has expired with Persistent Shopping Cart enabled. This patch is available when the Quality Patches Tool (QPT) 1.1.50 is installed. The patch ID is ACSD-54887. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.6-p2

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.4 - 2.4.4-p8, 2.4.5-p3 - 2.4.5-p7, and 2.4.6-p1 - 2.4.6-p5
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Customer shopping cart gets cleared after the customer session has expired with Persistent Shopping Cart enabled.

Steps to reproduce:

  1. Enable Persistent Shopping Cart. Go to Stores > Configuration > Customers > Persistent Shopping Cart = Yes.

    Log in with Persistence enabled (Note: It is not available on the popup authorization, but only on the direct Sign in page).

  2. Add a product to the cart.

  3. Proceed to checkout and select a payment method.

  4. Expire the session (delete PHPSESSID).

  5. Refresh the page. Observe that the quote is immediately converted to a guest quote because a payment method is already selected, and the Persistent Cart cookie is removed.

  6. Expire the session (delete PHPSESSID).

  7. Refresh the page. See that the cart is empty.

  8. Sign in again.

Expected results:

The cart has the product when you sign in again.

Actual results:

The cart is empty when signing in again.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3