Redirect When User Login From Front End

How to make homey page redirect after user login to a define page . Creating now layout wont help . or even assigning groups in the end home page remain same but not get redirect . Is there any one who solved this in 4.2

[quote name='samivohra' timestamp='1425298364' post='206770']

How to make homey page redirect after user login to a define page . Creating now layout wont help . or even assigning groups in the end home page remain same but not get redirect . Is there any one who solved this in 4.2

[/quote]



In 'app/controllers/common/auth.php' it is necessary to replace this part:


if (AREA == 'C') {
fn_set_notification('N', __('notice'), __('successful_login'));
}




by this one:



if (AREA == 'C') {
fn_set_notification('N', __('notice'), __('successful_login'));
$redirect_url = '/necessary_store_path/';
}


.

It is approximately 130 line.



Sincerely yours,

CS-Market.

If your catalog is disabled for the anonymous customers, you can try our free Login Redirect module

Thanks , I have tested your addon , it seems good but when you enter the url like main website home page , it redirect to direct login screen like admin require to login and then it redirect . It should be like you enter to main page you click on login , it ask you login details on home screen and then redirect .

[right]Got it . Nice plugin , all it require to disable [right][font=“Helvetica Neue, Helvetica, Arial, sans-serif”][color=“#404040”][size=3]Disable account registration and it work excellent . ! thanks really appropriate [/size][/color][/font][/right]