today a returning customer has called us to notify that during the checkout the product inside the cart has been substituted by others that haven't been added, so I tried by myself and I have seen that if I have already got some product inside my basket(addced during another logged in session) and I shop while I'm not logged in, then during the checkout, once I log in, the account cart override the current session one.
Is it a common behavior? Is there a way to fix/edit this method?
I'm using varnish and SSL on frontend, cookie domain: www.example.com

1 Answer 1


If you have previously added products to your cart while logged in and then you return to the site later and login then these previous products are re-added to the cart along side any other products added while not logged in. So yes this is normal Magento behaviour. You can disable persistent shopping cart but I believe I'm right in saying cart contents is still remembered in this case.

  • The problem is that they don't merge, the logged in cart override the other one
    – Razorphyn
    Dec 19, 2014 at 9:56
  • Core behaviour is to merge - my suggestion would be to investigate customisations to you store which may be stopping this happening. Dec 19, 2014 at 10:02
  • Since I have a good number of extension, is there something I should looking for in particular so I can use grep to try to find the source of the problem?
    – Razorphyn
    Dec 19, 2014 at 10:26
  • 1
    I would suggest disabling all of your extensions, then test to see if it's now working correctly (if not it might be non extension based changes - diff the core code and look for overridden Mage classes under app/code/local/ and app/code/community/). When it's working correctly re-introduce the modules (or other changes) one by one and test each time until functionality breaks. Dec 19, 2014 at 10:32
  • Disable/enable all the extension was the method I was trying to avoid, but if there isn't any other way I will try and let you know. Thanks
    – Razorphyn
    Dec 19, 2014 at 10:38

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.