Post by cwamedia » Wed Dec 14, 2011 7:03 am

i want my opencart website to automatically goto the login page instead of the standard home page

is this possible through the back end?

If not, whats the best way thanks!!

Newbie

Posts

Joined
Fri Dec 09, 2011 3:28 am

Post by wernerrenrew » Wed Dec 14, 2011 11:06 am

Hi,

Almost in the bottom of your index.php find

Code: Select all

// Router
if (isset($request->get['route'])) {
	$action = new Action($request->get['route']);
} else {
	$action = new Action('common/home');
}
replace with this

Code: Select all

// Router
if (isset($request->get['route'])) {
	$action = new Action($request->get['route']);
} elseif (!isset($session->data['customer_id'])) {
	$action = new Action('account/login');
} else {
	$action = new Action('common/home');
}
I wonder if i would be a happy potential customer if you would force this onto me, in my modest opinion you could better focus on making a good impression => there is only one first impression statistics say ppl give your site between 3-6 seconds to decide if they leave or stay not sure but a big fat login page is not very stimulating atleast not for me.

Regards Werner

User avatar
Active Member

Posts

Joined
Thu Oct 27, 2011 9:48 pm
Location - Netherlands

Post by cwamedia » Thu Dec 15, 2011 4:39 am

I appreciate your help!!!!
This is being customized as an ordering platform for in house users only, otherwise i do agree with you!!

Newbie

Posts

Joined
Fri Dec 09, 2011 3:28 am
Who is online

Users browsing this forum: No registered users and 26 guests