When a customer is logged in, he got some products in the cart and he logs out.
The products are removed from the cart and the cart is completely empty.

How can I fix that when a customer logs out, the products stay in the cart?

I do use the persistent shopping cart

1 Answer 1


In the checkout module there is an observer for the event customer_logout.


This means that the method Mage_Checkout_Model_Observer::unsetAll is called when the user logs out.
You can try to remove this observer or rewrite the method and make it do nothing. But I'm not 100% sure of the implications.

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.