Ubercart: maintaining cart content after user login 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?
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.