Jump to content

[SOLVED] how to redirect customer after login


Recommended Posts

Hello Everyone.

 

i need help please in changing the redirection of customers after they log in.

 

usually when someone logs in , his account page will appear  (check attached pic) .

 

 

what i am looking for is to redirect the customer to the home page or last page he was viewing before singing in.

 

thank you :)

post-708445-0-47864900-1386917579_thumb.png

Link to comment
Share on other sites

You must find all occurrences of this

Tools::redirect('index.php?controller='.(($this->authRedirection !== false) ? urlencode($this->authRedirection) : 'my-account'));

In AuthController.php, and change them to

Tools::redirect('index.php');
Link to comment
Share on other sites

×
×
  • Create New...