Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Oct 2007
    Posts
    30
    Plugin Contributions
    0

    Default How to remove all customers who have never ordered before?

    My site is hit by registration spam, and removing each customer manually from the admin is not feasible.

    I am now thinking about using phpmyadmin to do the job. What should be the mysql line to remove these spam from database?

    Thanks in advanced.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to remove all customers who have never ordered before?

    There are a number of tables that need to be addressed:
    address_book
    customers
    customers_info
    customers_basket
    customers_basket_attributes
    products_notifications

    You would need to verify the customers_id against the table:
    orders

    If nothing is found, then clean up the customer tables ...

    It would be a good idea to also check against the table:
    customers_info

    for when the customer's account was created so that you do not delete customers that are new, without orders, but may have not had time to complete or make an order yet ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: How to remove all customers who have never ordered before?

    I tell you what ive found with the spammers, is they always select the first country on your country list. So I have made my first country option 'Please Select' so then I know which ones are spam.

  4. #4
    Join Date
    Oct 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to remove all customers who have never ordered before?

    Thanks for replies.
    Actually the spammers on my site come from the same source and use the exact same address when registration. But because I'm not very familiar with server programming, I still cannot figure out a way to mass delete them from database.

  5. #5
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: How to remove all customers who have never ordered before?

    Quote Originally Posted by ebookba View Post
    Thanks for replies.
    Actually the spammers on my site come from the same source and use the exact same address when registration. But because I'm not very familiar with server programming, I still cannot figure out a way to mass delete them from database.
    Well thats easy then. If they all use the same address just search for that address in the customers table, and it will bring up all the customer with that address in a big list. Then you can mass delete.

  6. #6
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: How to remove all customers who have never ordered before?

    Sounds like there are quite a few of us having the same bogus customer issues. Mine are all coming from China. I have recorded the ip addresses and have blocked them on my hosting server. This has taken care of it for me. I blocked out the entire range of them. I know, this stinks.
    Thank you, Sincerely, MagicMan

  7. #7
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to remove all customers who have never ordered before?

    Hiya,

    I seem to have the same problem on one of my sites, starting about the 10th of the month. I've successfully deleted all of the offending "customers," but from what I can tell, they've set up a proxy in Sweden. I don't want to block potential customers coming from Sweden, so I'm loath to set up an .htaccess deny. Does anyone have others ideas how to prevent more of this from trickling in?

    Thanks in advance...

  8. #8
    Join Date
    Mar 2006
    Posts
    122
    Plugin Contributions
    0

    Default Re: How to remove all customers who have never ordered before?

    I am having the same problem. How do I do the search in myPHPadmin? They use one of two addresses with bogus names. And they are all from China.
    Marci Baun, Publisher
    http://www.wildchildpublishing.com/ -- Break free...read wild!
    http://www.freyasbower.com/ -- Weaving passion into words...

  9. #9
    Join Date
    Mar 2006
    Posts
    122
    Plugin Contributions
    0

    Default Re: How to remove all customers who have never ordered before?

    I couldn't do the search as it didn't turn up anything, but I did manage to do bulk deletes by going into the address book in phpMyAdmin and deleting entire pages of spam customers. 30 at a time is much quicker than one. I am going to try the suggestion that makes them pick a country. Maybe that will slow them down. (Thanks for that suggestions, BTW.) :)
    Marci Baun, Publisher
    http://www.wildchildpublishing.com/ -- Break free...read wild!
    http://www.freyasbower.com/ -- Weaving passion into words...

  10. #10
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: How to remove all customers who have never ordered before?

    Quote Originally Posted by freya View Post
    I couldn't do the search as it didn't turn up anything, but I did manage to do bulk deletes by going into the address book in phpMyAdmin and deleting entire pages of spam customers. 30 at a time is much quicker than one. I am going to try the suggestion that makes them pick a country. Maybe that will slow them down. (Thanks for that suggestions, BTW.) :)
    It works, I confirmed it last night, with no sign ups. Go into phpadmin and change the '-Please Select' country ID to 0. Thats all you have to do. You don't need to chanege the code in create_account.php.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h Email to customers who have ordered a specific item?
    By thehomeopath in forum General Questions
    Replies: 0
    Last Post: 11 Sep 2012, 03:24 PM
  2. 1062 Duplicate entry 'Customers who have never completed a purchase' for key 2
    By maperr55 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 9 Jul 2010, 05:14 AM
  3. Customers who have never completed an order?
    By MagicMan in forum General Questions
    Replies: 1
    Last Post: 24 Jul 2008, 06:44 PM
  4. 1062 Duplicate entry 'Customers who have never completed a purchase' for key 2
    By elliesupport in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 2 Jul 2008, 09:04 PM
  5. 1062 Duplicate entry 'Customers who have never...
    By LostSheep in forum Upgrading from 1.3.x to 1.3.9
    Replies: 15
    Last Post: 17 Apr 2008, 06:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR