I have disabled my login system so that users can go through a quick checkout with only 4 fields required (first name, last name, e-mail, and phone number). The system works perfectly except for one issue.
I am getting an error when I try and update an account in the admin control panel. This is the error that I get: "This email address already exists!"
Obviously since I have disabled the login area and changed the create new account form to be 4 fields only, having duplicate e-mails is one byproduct. I can delete any duplicate customers, but I need to disable the duplicate email error in the admin area when I do a customers update.
This all happens when I try and update an existing customer. I looked at this file: includes>modules>pages>account_edit>header_php.php and found this code (Line #79- #88):
Code:
if ($check_email->fields['total'] > 0) {
$error = true;
$messageStack->add('account_edit', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);
// check phpBB for duplicate email address
if ($phpBB->phpbb_check_for_duplicate_email(zen_db_input($email_address)) == 'already_exists' ) {
$error = true;
$messageStack->add('account_edit', 'phpBB-'.ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);
}
}
I changed both to: $error = false; and I am still getting the error. Once again I only get this error when I try and edit an existing customer that has duplicate accounts created (by going through checkout more than once).
Know how I can make this duplicate e-mail error disappear in the admin>customers>edit area?
Bookmarks