Post by wafflemeister » Fri Feb 22, 2019 1:23 am

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.

Active Member

Posts

Joined
Fri Jun 21, 2013 11:10 pm

Post by straightlight » Fri Feb 22, 2019 2:44 am

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';

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by wafflemeister » Fri Feb 22, 2019 4:03 am

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.

Active Member

Posts

Joined
Fri Jun 21, 2013 11:10 pm

Post by straightlight » Fri Feb 22, 2019 6:59 am

Unless something has changed in the latest release, without an extension, this would be the only location to change the root redirection page.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: pprmkr and 507 guests