Zen Cart Logo
Forums / Managing Customers and Orders / can't delete customer

can't delete customer

Views: 2,738

Results 1 to 6 of 6
9 Jun 2011, 5:06 AM
#1
charliepingpong avatar

charliepingpong

Zen Follower

Join Date:
May 2011
Location:
NSW
Posts:
169
Plugin Contributions:
0

can't delete customer

I was testing the forms etc and set up an account then I deleted it from the database table but it was still showing in admin so I went ahead and deleted from within admin/customers and it won't delete- just wondering why not? curiosity..:dontgetit

9 Jun 2011, 4:01 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: can't delete customer

I was testing the forms etc and set up an account then I deleted it from the database table but it was still showing in admin so I went ahead and deleted from within admin/customers and it won't delete- just wondering why not?

There are a couple of indexed tables where an account is referenced

You only hit/deleted ONE directly in the DB - - bad move

Now the records are incomplete for a delete from the admin

Did you backup BEFORE messing directly with the DB??

Restore.
And then delete via the admin only

9 Jun 2011, 5:22 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: can't delete customer

To take it out cleanly you would have to remove the records associated with it from the customers, customers_info and address_book tables. Otherwise you leave bits behind and risk (and this sounds like what's happening) the equivalent Zen Cart queries being unable to link the tables together properly and failing.

10 Jun 2011, 12:40 AM
#4
charliepingpong avatar

charliepingpong

Zen Follower

Join Date:
May 2011
Location:
NSW
Posts:
169
Plugin Contributions:
0

Re: can't delete customer

:oops: I knew what I did might have implications.

Thanks kobra and koroi!

17 Aug 2011, 11:53 PM
#5
hayleyscreations avatar

hayleyscreations

New Zenner

Join Date:
Mar 2008
Posts:
8
Plugin Contributions:
0

Re: can't delete customer

kuroi:

To take it out cleanly you would have to remove the records associated with it from the customers, customers_info and address_book tables. Otherwise you leave bits behind and risk (and this sounds like what's happening) the equivalent Zen Cart queries being unable to link the tables together properly and failing.

Where do I find these tables?

I had a customer who was having trouble logging in, and as they hadn't purchased anything, I figured the easiest solution was to delete the account (from my admin panel). And they could create a new one. They say they have tried but it comes back that the email address is already in use.

So I guess I need to do something with these tables to make sure nothing is left blocking them from creating their account again.

Hayley
Hayely's Creations

18 Aug 2011, 12:49 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: can't delete customer

From what you're saying, it sounds as though the customers may not be deleting cleanly. That could indicate data corruption, so needs top be investigated and resolved before you start deleting the evidence.

To answer your question, the quote was referring to database tables, but it would be dangerous to mess with them unless you know what you're doing. And even then make sure you back up the database first.