If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / Customer Reports/Customer Duplicates

Customer Reports/Customer Duplicates

Started by gus1924 on 12 Sep 2019, 6:49 PM · Views: 5,464

Results 1 to 3 of 3
12 Sep 2019, 6:49 PM
#1
gus1924 avatar

gus1924

New Zenner

Join Date:
Jan 2008
Location:
Pittsburgh, PA area
Posts:
26
Plugin Contributions:
0

Customer Reports/Customer Duplicates

I was wondering if there is a way to pull a customer report to try and identify duplicate customers
so we can clean up the database?

Also - is there a way to prevent customers from creating duplicate records?

Thanks so much!!

12 Sep 2019, 8:20 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Customer Reports/Customer Duplicates

If still using ZC 1.3.8a as identified in the thread title, then the answer is probably not. As far as "duplicate" customers, customers are identified by email address. Do these existing "duplicate" customers have the same email address? The next "practical" question is how would the individual be identified as a duplicate? Couldn't there be two John doe's somewhere? (explaining how duplicates have been seen would help in that.)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

13 Sep 2019, 5:17 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Customer Reports/Customer Duplicates

Here's a possibly useful SQL query:

select customers_id, customers_firstname, count(customers_telephone) as cust_count from customers group by customers_telephone having count(customers_telephone) > 1;

Also, my 360 sales reporting mod may give you some ideas on how to tie customer accounts together if they originate from the same person, rather than deleting them.

https://www.zen-cart.com/downloads.php?do=file&id=2218

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.