Users are not redirected to checkout page after login/registering

Posts: 62
Joined: 08/31/2007
Bug Finder

Hello Everybody

I this is a bit major bug,
At-least in my end.

When someone login or registers after clicking add to cart they are not redirected to the checkout page,
Instead they are landed in http://www.domain.com/user/

When they again go to products page and purchase again, the product is as expected added twice.

Posts: 5620
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Did some testing... this works fine for users that already have accounts. They get redirected to cart once they login. However, when someone goes to create a new user, they do not get redirected. I'll look into the issue as soon as I can.

Thanks for posting. Smiling

Posts: 5620
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Fixed the issue for registering users... was a problem with anonymous cart contents not getting updated for the user. Plenty of debugging hook_user() led to a workable solution that is now committed to the Bazaar repository.

Posts: 62
Joined: 08/31/2007
Bug Finder

Can create a patch or show me the code snippet so that i can merge your code?

Posts: 5620
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Sorry, raddy... I don't remember what the fix was exactly. You can always download the latest code using the instructions here, though.

Posts: 62
Joined: 08/31/2007
Bug Finder

Hi Ryan

After some code comparison i successfully merged your fix into my site.
The fix works really well.
Now i no longer need to depend on an external module.

Posts: 78
Joined: 01/22/2008

Ryan:

I'm using the most recent Ubercart. Yet when an anonymous adds an item to the cart they are, as they should be, taken to login. But when the person returns after login, they are taken to the cart but the cart is empty. If that's the way it's supposed to work, it would be better for me if the person was taken back to the catalog page so the item can be added again.

Now then, when an anonymous user (who does NOT have an existing account) adds to cart and is thus directed to login/create an account. If the person creates an account, that person is then redirected to the cart or the checkout (wichever I set in login destination) AND the cart DOES contain the one item that was added.

How are things supposed to work? I'd like it if an existing user who adds to cart, then logs in, would be returned to the cart (or checkout page) and find that the cart contains the one item that was added before login.

I'm just wondering how it's supposed to work so that I don't seek to solve a problem that doesn't exist.

Dan

Posts: 18
Joined: 08/05/2008

royerd wrote:

I'm using the most recent Ubercart. Yet when an anonymous adds an item to the cart they are, as they should be, taken to login. But when the person returns after login, they are taken to the cart but the cart is empty. If that's the way it's supposed to work, it would be better for me if the person was taken back to the catalog page so the item can be added again.

How are things supposed to work? I'd like it if an existing user who adds to cart, then logs in, would be returned to the cart (or checkout page) and find that the cart contains the one item that was added before login.


Same issue persists for me.