Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Merge customer duplicates


neosymptom

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...