Whenever a user tries to guest checkout using an email that is already registered, it will display "Warning: E-Mail Address is already registered!"
I found a way to bypass that by commenting the lines in \tastyigniter\main\controllers\Checkout.php:
if (strtolower($this->input->post('email')) !== $this->customer->getEmail()) {
$this->form_validation->set_rules('email', 'lang:label_email', 'is_unique[customers.email]');
$this->form_validation->set_message('is_unique', 'Warning: E-Mail Address is already registered!');
}
After this, I tried using guest checking out using an email from an existing registered customer. It worked fine, with no overwriting in the data.
If I keep this enabled, will there be any unforeseen problems? I still haven't moved this to the production environment.
Why was this control needed in the first place? I am just wondering if this is a feature that I'm overlooking.
Thanks.
Update: This creates a problem with logged in users. When they try to click on Payment and the email is already listed in the greyed out field, it fails to validate and shows: "The Email field is required.". Anyone know why?