Prevent shopping cart "carry-over" from anonymous to logged in state?

Posts: 61
Joined: 05/05/2008
Bug Finder

Heya,

When an anonymous user adds something to their shopping cart and then logs in to their account, the contents of their shopping cart get carried over. Is there a way for me to disable this functionality?

Drupal 5.7
Ubercart RC4

Thanks!

Posts: 61
Joined: 05/05/2008
Bug Finder

And I just found the code myself Smiling.

What needs modifying is the login case in the function uc_cart_user() within the file uc_cart.module. Smiling