Magento – Persistent Cart Off, Adding 1 Product and Login Results in 12 Products in Cart

cartcheckoutsession

we are having some issues with sessions it seems. Messages from customers like 'my cart is suddenly empty after login (account)', or 'my cart suddenly has many items after login'. When testing I see something similar.

Situation now

  • Persistent cart = off
  • I visit site => cart has 0 items
  • I add 1 product
  • Go to checkout and login as regular customer
  • login results in 12 products in cart (and I am directed to cart instead of next step in checkout)

I would expect

  • login success, goes to next step in checkout
  • cart items are as before login (just the 1 product)

How can I set up the behavior that I am expecting. Many thanks!

Best Answer

This is default behavior for Magento as is.

We solved this by installing this extension: https://github.com/jacquesbh/jbh_cartmerge

It has option to turn on/off merging of carts, also to enforce mergen when the cart is empty

Should be default setting in Magento ...

Related Topic