-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cart adapter for customer data storage cache is missing on the server side, causing issues when using a combination of headful and headless approaches #39374
Comments
Hi @tuyennn. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @tuyennn , Thanks for your reporting and collaboration. Steps to reproduce
Observe, selected_shipping_method consistent while performing get cart graphql and last selected state Can you please re-verify and confirm if you are still facing the issue. |
@engcom-Delta on headfull luma checkout, can you select a different shipping method than ups, stop right there and perform graphql query for this cart also, if so you still got ups as selected shipping method from query result. You found the problem. |
Hi @tuyennn , Thanks for providing additional testing steps. Steps to reproduce
Thanks. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13381 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Delta. Thank you for verifying the issue. |
❌ You don't have permission to export this issue. |
Preconditions and environment
Steps to reproduce
{cart(cart_id: String!) {Cart}}
to get current cart informationExpected result
Actual result
CartAdapter-2024-11-20_14.54.53.mp4
Additional information
mage-cache-storage
.cart-data
stores cart information in the customer's local storage (localStorage
) without saving it on the server.cart-data
can be accessed by other services, such as GraphQL and REST API, to retrieve the current quote. This is important because multiple services can use the same resource and transfer customer data between headful and headless systems, such as AEM pages and Luma-based stores.rest/V1/guest-carts/{cartId}/totals-information
or/rest/default/V1/carts/mine/totals-information
. However, this does not save the selected shipping method or totals at the server level. Instead, only the cart data (cart-data
) is cached in the customer's local storage.Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: