Products from old session reappear in Cart

Hi all,

We have experienced a few times that products from a previous session - maybe even weeks prior - that were once removed from the basket, appear back in the Cart when visiting the website directly. It’s quite random and it’s not something that we can reproduce if we try to - it just happens spontaneously almost.

Plus Support said the following:

  1. “Carts are session-based and can expire after 30 days or if the session is ended, such as when a checkout is abandoned. If a customer returns to the site after a long time, they might see an old cart if the session hasn’t expired. It could be that the device that you are using, perhaps is not clearing the old cookies and cache.”

But I’m not sure it really explains what we see. If I have ever removed a product from my cart, I never expect it to randomly show up again during the same session, or in another session.

Any ideas?

Do you use apps or have custom code that uses Ajax for updating the cart? It is likely that this might be interfering when you remove an item from the cart.

Hey, thanks so much for the hint - we do have custom code, as it’s a custom theme we use. I will check with our devs could you explain in simple terms for me why custom code using Ajax could interfere with a removal from cart?

Have you also seen something similar before?