neosymptom Posted July 4, 2007 Share Posted July 4, 2007 Hi, I´m looking for a contribution to merge customer adresses. Some customers create more than one account and I want to merge these adresses to one customer account. Is there a contribution to perform this action in the admin menue? How can I prevent that customers create more than one account? Thanks! Werner Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2007 Share Posted July 6, 2007 accounts are differentiated by the email_address. The code that checks this is in catalog\create_account.php $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); $check_email = tep_db_fetch_array($check_email_query); if ($check_email['total'] > 0) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); } so if you need to check by street address you could add an extra check for the address_book table. Although theoretically 2 different customers may have the same street address. Instead you could add some code to delete accounts automatically if the user is not logged in for a specific period. Haven't seen a contribution though. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.