2 replies [Last post]
gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Was this information Helpful?

This issue seems to be well documented in a closed ticket on d.o, and in a ticket here on ubercart, and some other comments scattered about, but all would seem to indicate that it is fixed by now, however I still have the problem in ubercart 6--2-0-RC3

* http://drupal.org/node/305177
* http://www.ubercart.org/issue/6105/anonymous_user_loses_cart_contents_af... along

an anon user is prompted to "click here to login with an existing account and return to checkout". and when they do, their cart which previously had some number of products in it, is empty after login.

affinity's picture
Offline
Joined: 08/22/2008
Juice: 39
Similar problem, but cart items are duplicated

I have a similar problem, but in my case if the anon user adds items to their cart before logging in and then decides to login from the checkout page, their cart is updated with the same items again. I am using the Discount module, so after they login our 'member discounts' are applied. Wondering if this is the cause?
Running...
[php_version] => 5.2.9
[drupal_version] => 5.5
[db_type] => mysql
[db_version] => 4.0.27
[ubercart_version] => 5.x-1.5

UPDATE:
It seems that the only time this occurs is when I login as admin. I have a member account also, and when I login using that account, I am brought back to the checkout and the correct items are there, no duplication. Perhaps it's because as admin I have two Roles assigned...Member and Site Editor?

gregoryheller's picture
Offline
Joined: 02/18/2009
Juice: 92
Re: Anonymous user loses cart contents after login (Drupal 6, Ub

we fixed this, for us it had to do with the way we were saving order information into the uc node checkout node as well as a trigger setting for what to do with a user after login (we were sending user to home page after login), we just had to remove that trigger.