Page 1 of 1

Register more than 1 account with the same email

Posted: Sun Sep 26, 2010 6:39 pm
by shoo002
Hello All,

Can someone help me with "Error: E-Mail Address is already registered!"

I have created an email that i use for telephone orders/offline orders and would like to use that email again and again to create and account and orders when i do not have the customers correct email address.

Can someone please help.

Thanks
Stew

Re: Register more than 1 account with the same email

Posted: Sun Sep 26, 2010 7:08 pm
by mystifier
Simply remove from the vaildate function in catalog/controller/account/create.php

Code: Select all

if ($this->model_account_customer->getTotalCustomersByEmail($this->request->post['email'])) {
    $this->error['warning'] = $this->language->get('error_exists');
}
and if you want to allow an email to be edited to an existing one, from catalog/controller/account/edit.php

Code: Select all

if (($this->customer->getEmail() != $this->request->post['email']) && $this->model_account_customer->getTotalCustomersByEmail($this->request->post['email'])) {
    $this->error['warning'] = $this->language->get('error_exists');
}

Re: Register more than 1 account with the same email

Posted: Sun Sep 26, 2010 9:02 pm
by shoo002
Thanks mystifier

Thats exactly what i wanted.

Thanks
Stewart