Post by markgigi » Tue May 31, 2011 10:29 pm

Hi guys, I was wondering if there's a way to stay on the same page after logging in? Right now the customer is taken to the account page after they log in. Is it possible to add ajax functionality to the login mechanism? Just like the Ajax add to cart, so the process happens on the same page without going to the account page?

Thanks a lot!

Newbie

Posts

Joined
Mon May 30, 2011 4:11 am

Post by roberttimes » Thu Jun 02, 2011 10:57 pm

I'm looking for this thing like crazy. Anyone know how to NOT redirect after login? I need user to stay on the current page after login. Thank you!

Newbie

Posts

Joined
Tue May 31, 2011 10:31 pm

Post by SXGuy » Fri Jun 03, 2011 12:42 am

but the current page would be the login page, so i dont understand what you mean?

Thats why people have it redirect to somewhere like customer account links etc.

Do you mean you have a login module and you wish people to login but not be redirected?

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by roberttimes » Fri Jun 03, 2011 1:47 am

Yes, basically stay on the current page after you login. Like www.vimeo.com
The login box comes at you in a thickbox and after you log in it stay on the current page.
Just like the add to cart in opencart. It adds the products to cart but doesn't redirect anywhere.

Thank you!

Newbie

Posts

Joined
Tue May 31, 2011 10:31 pm

Post by roberttimes » Sat Jun 04, 2011 3:24 pm

Oh man, nobody got an idea on how to implement a "vimeo" login box?

Newbie

Posts

Joined
Tue May 31, 2011 10:31 pm

Post by qahar » Sun Jun 05, 2011 1:32 pm

All redirection is declared by $this->redirect(... ...) in controller.
Remove the line you need and the page will not redirected.

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by roberttimes » Fri Jun 10, 2011 1:13 am

qahar wrote:All redirection is declared by $this->redirect(... ...) in controller.
Remove the line you need and the page will not redirected.
Thanks for the suggestion qahar but when I removed the redirect line it did not log me in.

My question is how to log in and register the session, after which instead of going to account page redirect to the same page a user might be on.

I guess I'm looking for the code that reads the current browser address and just reloads that same page after the login button is clicked.

Thanks again!

Newbie

Posts

Joined
Tue May 31, 2011 10:31 pm

Post by cmerry » Wed Jun 29, 2011 8:08 am

I have made extension Pop-up Login Ajax Window, this can help you.
http://www.opencart.com/index.php?route ... on_id=2455


User avatar
Active Member

Posts

Joined
Sat Jul 17, 2010 8:42 pm

Post by booger__ » Mon Dec 31, 2012 1:01 am

try my "FREE! Ajax Login" vqmod, it has a bonus feature to keep your customers on the same page after login/logout.

http://www.opencart.com/index.php?route ... on_id=9884

Newbie

Posts

Joined
Mon Dec 31, 2012 12:54 am
Who is online

Users browsing this forum: No registered users and 14 guests