Page 1 of 1

login as default landing page

Posted: Fri Feb 22, 2019 1:23 am
by wafflemeister
I am new to Opencart 3.0.

I would like the default landing page when my customers come to my website to be the login (account/login) page. So far what I have tried is the following:

1. Design > Layout > Default > Edit Default > Route = account/login

2. Design > Layout > Home > Edit Home > Route = account/login

Neither one seems to have had any effect.

Thank you in advance for your help.

Re: login as default landing page

Posted: Fri Feb 22, 2019 2:44 am
by straightlight
I would not suggest this method but you could try to switch the default route from your system/config/default.php file where:

Code: Select all

$_['action_default']       = 'common/home';
for:

Code: Select all

$_['action_default']       = 'account/login';

Re: login as default landing page

Posted: Fri Feb 22, 2019 4:03 am
by wafflemeister
Yea, I would prefer to stay away from hard coding things. It is rather a simple exercise I want to do and I would be surprised if this is not manageable through the layout editor in admin.

Re: login as default landing page

Posted: Fri Feb 22, 2019 6:59 am
by straightlight
Unless something has changed in the latest release, without an extension, this would be the only location to change the root redirection page.