Hi, how can I change the login process so that instead of seeing their account page they instead get taken to the homepage of the store?
Thanks
Just be careful as to where you send people after certain functions. OC sends them to the account page because organically it makes sense because they just logged in
So look for the following file: catalog/controller/account/login.php
Now search for the following line of code:
Replace with this:

So look for the following file: catalog/controller/account/login.php
Now search for the following line of code:
Code: Select all
if (isset($this->request->post['redirect'])) {
$this->redirect(str_replace('&', '&', $this->request->post['redirect']));
} else {
$this->redirect(HTTPS_SERVER . 'index.php?route=account/account');
}
}
}
Code: Select all
if (isset($this->request->post['redirect'])) {
$this->redirect(str_replace('&', '&', $this->request->post['redirect']));
} else {
//$this->redirect(HTTPS_SERVER . 'index.php?route=account/account');
$this->redirect(HTTPS_SERVER . 'index.php?route=common/home');
}
}
}
Last edited by Avvici on Thu Apr 14, 2011 11:41 pm, edited 1 time in total.
Who is online
Users browsing this forum: Baidu [Spider] and 12 guests