PDA

View Full Version : Guest Account v 2.0



michael_s
02-15-2007, 03:06 PM
If you edited a guest customer in the admin area and this customer's email address already exists in another customer record, you cannot successfully save the guest customer until you change the email address to something unique.

Small change to the query on line 143 of /admin/customers.php fixes this problem:

//guest account
$check_email = tep_db_query("select customers_email_address from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($customers_email_address) . "' and customers_id != '" . (int)$customers_id . "' AND guest_flag!=1");

. not full package
. only corrected file

More... (http://www.oscommerce.com/community/contributions,1511)