Reputation: 1067
My registration page URL like: www.exmpl.com/index.php?route=account/register
when I submit after filled all fields then it redirect me to login page but I want to redirect it to thank you page.How can I do this?
Upvotes: 1
Views: 982
Reputation: 7103
This function (in /catalog/controller/account/register.php) is responsible for redirection ($this->response->redirect($this->url->link('account/success'));
, to be more precise). Just need to check which page is "thank you" page (I'm not sure right now).
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
$customer_id = $this->model_account_customer->addCustomer($this->request->post);
// Clear any previous login attempts for unregistered accounts.
$this->model_account_customer->deleteLoginAttempts($this->request->post['email']);
$this->customer->login($this->request->post['email'], $this->request->post['password']);
unset($this->session->data['guest']);
// Add to activity log
$this->load->model('account/activity');
$activity_data = array(
'customer_id' => $customer_id,
'name' => $this->request->post['firstname'] . ' ' . $this->request->post['lastname']
);
$this->model_account_activity->addActivity('register', $activity_data);
$this->response->redirect($this->url->link('account/success'));
}
Upvotes: 1