cancel
Showing results for 
Search instead for 
Did you mean: 

Change Landing Page

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Change Landing Page

Where or how do I change the landing page once a user has logged in? At the moment it defaults to the dashboard page. I want it to display a certain page after login. How can I do this under 1.9?

3 REPLIES 3

Re: Change Landing Page

Hi @preveo,

 

We can not change it through the Magento configuration. But yes, we can change it by customize the code.

I can share the file path where it is mentioned:

\app\code\core\Mage\Customer\controllers\AccountController.php

 

So if you will do it through coding then extend this controller and then make the changes.

 

if issue solved,Click Kudos & Accept as Solution

 

Re: Change Landing Page

Hi,

 

What actually needs to be changed in the file?

 

Regards

 

Ben

Re: Change Landing Page

Hi @preveo ,

 

Firstly you need to make changes in admin side.

Go to: System > Configuration > customer configuration > Login Options >

and set “Redirect Customer to Account Dashboard after Logging in” to No.

 

Now, as the mentioned above, in that file [\app\code\core\Mage\Customer\controllers\AccountController.php], there is one function named as "_loginPostRedirect()".

 

Here search for "$this->_getHelper('customer')->getAccountUrl()" and change it to what you want.

 

It will serve your purpose.

 

if issue solved,Click Kudos & Accept as Solution