I have a Ubercart site where the user can add items to cart even if it is not logged in: the problem is that when he logs in the cart is emptied and he has to refill it.

Is there a way to save the cart for the anonymous user and, when he logs in, to retrieve the cart content?

  • Have you find the issue with your code ?
    – niksmac
    Jan 21, 2013 at 13:16
  • 1
    i'm having the same problem. what was your solution? Nov 20, 2014 at 13:13
  • I would also like to know? Feb 27, 2015 at 10:30

1 Answer 1


The feature looking for is default ubercart behavior. You may have missed with some of your custom code may be with hook_user Check that to see what happens and try disable any custom modules.

Your Answer

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

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