1 reply [Last post]
kerunt's picture
Offline
Bug Finder
Joined: 05/05/2008
Juice: 158
Was this information Helpful?

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!

kerunt's picture
Offline
Bug Finder
Joined: 05/05/2008
Juice: 158
Re: Prevent shopping cart "carry-over" from anonymous to logged

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