0

The checkout stopped working after logging in on another browser's tab.

Scenario:

  1. Fill the cart and proceed to the checkout page.
  2. Go to the other browser's tab and logged in there.
  3. Go back to the checkout on the first tab and try to complete the order.

Result: Magento says "No such entity with cartID = null".

see https://youtu.be/CEDZWR1Nj5U

It's normal behavior? I understand that the cart on the first tab is deactivated after logging in, however, I would expect that the checkout page will be refreshed after trying some action on the deactivated cart. Is there some solution how to avoid this?

Viral Patel
1,1001 gold badge8 silver badges17 bronze badges
asked May 16, 2023 at 7:37
4
  • No it's not normal behavior there is something wrong with your Magento Commented May 16, 2023 at 8:24
  • Check for extensions or customizations: If you have recently installed any third-party extensions or made customizations to your Magento 2 installation, they might be causing conflicts. Disable any recently installed extensions temporarily and test the checkout process again to see if the error persists. Commented May 16, 2023 at 12:00
  • 1
    The behavior you're experiencing is expected in Magento. When a customer logs in from another browser tab or session, it invalidates the cart associated with the previous session, which leads to the "No such entity with cartID = null" error when trying to complete the order. By design, Magento doesn't automatically refresh the checkout page or prompt the user to update their cart after logging in from another session. This behavior helps prevent potential conflicts and inconsistencies between multiple sessions. Commented Jun 29, 2023 at 15:36
  • @PushpendraSingh Yes, I agree. We solving it so that if frontend detects "No such entity with cartID = null" the reloads the page which customer gets the correct session id and can proceed further. Commented Jun 30, 2023 at 6:17

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.