Project:
UbercartCategory:
bug reportPriority:
normalAssigned:
UnassignedStatus:
activeI'm having trouble with an exisiting users retaining items in the shopping cart after login. The "Ad to Cart" rolls the user over to the login, but then, once logged in, it goes back to Cart, but the cart is empty.
If an anonymous user adds to cart, then is prompted to create an account, the anon user logs in and returns to the cart to find the cart has the item there as it should.
So the problem seems to be present only for the existing user.
Dan



Re: login does not retain cart items
I'm not sure I've heard of someone requiring a login to add to the cart.
How did you set that up?
Re: login does not retain cart items
Did you upgrade to the latest 1.4 -version? ...there was a bug in 1.3 which sounds similar?
Re: Re: login does not retain cart items
Yes, it is similar to the bug I noticed in 1.3. But I'm using 1.4.
You can take a look at my test site if you like: www.espdrupal.com
Here's what I see:
1. authenticated user that is logged in adds to cart--no problem. The cart appears with item in it.
2. anon user with no existing account adds to cart--no problem, the user is asked to register, the registration completes, user is kicked back to shoppping cart to find the item in the cart. Great.
3. registered user that is not logged in adds to cart--oops. The user is asked to login, does so, is kicked back to shopping cart but the cart is empty.
It seems like #3 should work like #2 right?
Dan
Re: Re: Re: login does not retain cart items
If a logged in user adds to cart, then it sends them to checkout.
If a user that is not logs in clicks "add to cart" they are sent to the login screen, then they appear back at the shopping cart, not the check out. Is that how it's supposed to work?
Re: Re: Re: Re: login does not retain cart items
I actually haven't tried it in that order before. Generally people redirect to /cart, not /cart/checkout.
Re: Re: Re: Re: Re: login does not retain cart items
OK, I just changed the redirect to /cart instead of /cart/checkout, but it still gives the same behavior. It returns me to the cart, but the cart is empty even though my last action before logging in was to add an item to the cart. This is what it does for an existing user who simply needed to login.
If I don't have an existing account, and as an anon user was asked to create an account, then I am redirected to the cart but the cart contain the item added.
Shouldn't in the first case the item be retained in the cart?
Dan
Re: Re: Re: Re: Re: Re: login does not retain cart items
Are you on the latest Drupal?
Yes, I'm on Drupal 5.10 Dan
Yes, I'm on Drupal 5.10
Dan