I know this has been asked once before but that question did not seem to have an answer within the thread. So I am posting a separate question.
Anyway so I am using OC version 2.1.0.2 . I need to create a second customer registration page which simple will ask them for a email address and password. (no other fields)
So I copied the below files
- catalog/controller/account/register.php
- catalog/model/account/customer.php
- template/account/register.tpl
I renamed the copied files to
- catalog/controller/account/registerb.php
- catalog/model/account/customerb.php
- template/account/registerb.tpl
I then edited the file in public_html/catalog/controller/account/registerb.php with the below to point to my new file
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/registerb.tpl')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/account/registerb.tpl', $data));
} else {
$this->response->setOutput($this->load->view('default/template/account/registerb.tpl', $data));
}
I then go to my newly created file at www.fake.com/index.php?route=account/registerb However I get a error code 500 in my google chrome and the page will not load.
So what am I missing?