Closed simonmarcoux-valtech closed 8 months ago
Hi @simonmarcoux-valtech. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
We are able to reproduce this issue. Hence issue is confirmed
@adobe export issue to JIRA project PWA as Bug
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3220 is successfully created for this GitHub issue.
We have explored this issue and analysed in respect of PWA. We have explored the possibility of fixing it from PWA side but unfortunately it cannot be fixed from Pwa side and its not a valid scenario in magento also. Hence we are closing this ticket .
Please feel free if you have any more update on the same.
@glo82145 I not sure that I fully agree with the assessment:
its not a valid scenario in magento also.
Step 3 Delete the user's quote_id_mask entry in the quote_id_mask db table
is just a shortcut for accelerating what happens for the setting quote lifetime
(instead of the manual deletion you could wait 30 days + ensure you have a running Magento cronjob)
Describe the bug
When deleting a user's quote_mask_id entry from the database, this user can't add to cart because of an error showing "Could not add item to cart. Please check required options and try again.". However, in the network, this error shows Could not find a cart with ID "XXX". This means that the error was not catched by the cart AsyncActions isInvalidCart method, but it instead reached the unknown error flow in ProductFullDetail.
Alternatively, this error also happens when we manually change the is_active value of the quote entry in the quote table. We get the network error "The cart isn't active" and the user can't add to cart anymore.
A browser refresh does reset the cart properly, but we were expecting the add to cart action to also reset cart when the cart ID is invalid.
To reproduce
Expected behavior The add to cart action resets the cart Id if it is invalid and the user can proceed with adding to cart.
Screenshots
Please complete the following device information:
Device [PC]:
Browser [Chrome]:
Browser Version [117]:
Magento Version [Adobe Commerce 2.4.6-p3]:
[ ]
venia-concept
[ ]
venia-ui
[ ]
pwa-buildpack
[X]
peregrine
[ ]
pwa-devdocs
[ ]
upward-js
[ ]
upward-spec
[ ]
create-pwa