Skip to content

Peristent cart cookie is not generated for guests and thus persistent cart isn't working #13229

@TimQSO

Description

@TimQSO

When we want to use the Persistent Shopping Cart functionality it does not seem to work for guest users. For guest users the persistent shopping cart cookie isn't created and thus when the session expires the shopping cart is gone.

Preconditions

  1. Magento 2.4
  2. PHP 7.3 | Ubuntu 18.04 LTS | Nginx 1.14.0 or Apache 2.4.29
  3. MySQL 5.7.28

Steps to reproduce

  1. Enable Persistent Shopping Cart in the Backend and set every option to YES
  2. Refresh cache where needed
  3. Go to the Frontend (as a guest / not logged in) and put something in your shopping cart
  4. Verify that the persistent_shopping_cart cookie isn't created (while it should)
  5. Remove the PHPSESSID cookie to clear your session

Expected result

  1. After removing the PHPSESSID cookie the shopping cart should stay intact

Actual result

  1. After removing the PHPSESSID cookie the shopping cart is empty again
  2. No sign of the persistent_shopping_cart cookie that should kick in to preserve the cart

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CookieIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions