Fix persistent cart guest access after APSB26-73 - #41257
Draft
srdyilmaz197-a11y wants to merge 2 commits into
Draft
Fix persistent cart guest access after APSB26-73#41257srdyilmaz197-a11y wants to merge 2 commits into
srdyilmaz197-a11y wants to merge 2 commits into
Conversation
|
Hi @srdyilmaz197-a11y. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description (*)
APSB26-73 added guest-cart ownership validation that rejects a masked cart while its quote still has a customer ID. Magento_Persistent intentionally creates that state for remembered shoppers whose normal customer session has expired: the quote remains customer-owned while checkout is routed through guest-cart APIs.
This change converts only the active persistent customer's own quote at the shared masked-cart ID resolution boundary, before guest-cart services apply the new check. The conversion requires the persistent-session customer ID to match the quote owner ID, so a masked ID for another customer's quote remains rejected.
The conversion also marks the quote as guest, clears the emulated customer session, and removes the persistent cookie/session after the ownership match.
The plugin is registered for frontend, REST, and SOAP because Magento_Persistent participates in those guest checkout paths.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
persistent_shopping_cart.Questions or comments
Unit and integration regression coverage is included. A full Magento/PHP test run was not available in the local laptop environment, so this is being opened as a draft for repository CI/maintainer validation.
Contribution checklist (*)