If this is your first visit, check our documentation. To post, register or login.

Delete Spam Customers

Started by swguy on 11 Jun 2019, 12:01 PM · Views: 16,210

Results 21 to 40 of 48
4 Sep 2019, 12:59 AM
#21
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Delete Spam Customers

swguy:

Mike, can you tell me specifically the error you are getting?

Hi Scott - no error message, no error logs, simply the screen with;
Delete Spam Customers
Customers removed: 0

revisiting my process - I deleted your existing
$query = $db->Execute("SELECT * FROM " . TABLE_CUSTOMERS . " WHERE customers_firstname LIKE '%http%' OR customers_lastname LIKE '%http%'");

and replaced it with

$query = $db->Execute("SELECT customers_info_id as customers_id FROM " . TABLE_CUSTOMERS_INFO . " WHERE customers_info_date_account_created >= '2019-07-30' and customers_info_date_account_created <= '2019-08-12' ");

so by chance is the date format correct?

cheers, Mike

P.S. I hope you are not adversely affected by the hurricane

4 Sep 2019, 1:07 AM
#22
swguy avatar

swguy

Administrator

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

Re: Delete Spam Customers

Much appreciated.

Are the dates in that query appropriate for the bad customers in your database?

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.

4 Sep 2019, 1:20 AM
#23
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Delete Spam Customers

swguy:

Much appreciated.

Are the dates in that query appropriate for the bad customers in your database?

Yes the dates are valid - I have actually answered my own question - I was just thinking out aloud wondering if the date format yyyy/mm/dd correlates to how it is in the db? .... in admin/customers the format is dd/mm/yyyy - I have tried using the latter format and still makes no difference so that isn't the problem.

cheers, Mike

4 Sep 2019, 11:35 AM
#24
swguy avatar

swguy

Administrator

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

Re: Delete Spam Customers

Build a query that works for you in phpMyAdmin. Then use it in the script.

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.

5 Sep 2019, 1:02 AM
#25
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Delete Spam Customers

swguy:

Build a query that works for you in phpMyAdmin. Then use it in the script.

Above my pay grade I think Scott :smile: - I've never built a query in phpMyAdmin, however I will look into it.

many thanks, Mike

20 Sep 2019, 9:00 PM
#26
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Delete Spam Customers

Scott, thanks for this mod! I have had to install it on quite a few sites already!

I have encountered a 1.3.9h site that desperately needs this, but obviously the sql statement won't work because there were no "admin_pages" back then. There also is no way to set up the page to show up in admin (oh my how far the dev team has come since then!!). So.... hoping the files will work, but I don't have access to the database to re-write the SQL statement so the link shows up under the customers menu. Can you give me the code that would work with 1.3.9h?

THANKS!
Judy

21 Sep 2019, 1:09 AM
#27
swguy avatar

swguy

Administrator

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

Re: Delete Spam Customers

The old 139 way of doing this was to create a dhtml file that contained the information that's in the admin_pages in more recent versions. If you look at admin/includes/boxes/customers_dhtml.php you will see the structure.

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.

21 Sep 2019, 2:13 AM
#28
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Delete Spam Customers

I thought about that after I finally got access to the database. Thanks Scott!

stellarweb:

Scott, thanks for this mod! I have had to install it on quite a few sites already!

I have encountered a 1.3.9h site that desperately needs this, but obviously the sql statement won't work because there were no "admin_pages" back then. There also is no way to set up the page to show up in admin (oh my how far the dev team has come since then!!). So.... hoping the files will work, but I don't have access to the database to re-write the SQL statement so the link shows up under the customers menu. Can you give me the code that would work with 1.3.9h?

THANKS!
Judy

27 Jul 2020, 12:59 PM
#29
thegoodlifestore avatar

thegoodlifestore

New Zenner

Join Date:
Oct 2007
Location:
North Carolina
Posts:
102
Plugin Contributions:
0

Re: Delete Spam Customers

Our spam customers seem to all have @mail.ru in the email address. Is there a way to code this to delete customer with @mail.ru in their email address?

27 Jul 2020, 1:26 PM
#30
swguy avatar

swguy

Administrator

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

Re: Delete Spam Customers

If you read the extended help on my site, there is a FAQ question that answers this.

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.

28 Jul 2020, 12:30 PM
#31
thegoodlifestore avatar

thegoodlifestore

New Zenner

Join Date:
Oct 2007
Location:
North Carolina
Posts:
102
Plugin Contributions:
0

Re: Delete Spam Customers

swguy:

If you read the extended help on my site, there is a FAQ question that answers this.

I will check that out. Thanks a bunch for offering this addon!

5 Dec 2020, 10:23 PM
#32
cydonian avatar

cydonian

New Zenner

Join Date:
Jan 2013
Location:
Netherlands
Posts:
7
Plugin Contributions:
0

Re: Delete Spam Customers

Hi there,

Does this plugin also work with v.1.5.1?

1 Mar 2021, 1:32 PM
#33
swguy avatar

swguy

Administrator

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

Re: Delete Spam Customers

Delete Spam Customers 1.1 has been released, offering the ability to run multiple queries to detect and remove spam accounts.

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.

2 Mar 2021, 7:26 PM
#34
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Delete Spam Customers

One of my clients biggest issue are accounts - easily identifiable as you can see in this image - Attachment 19456

I am literally having to do this in the database because one by one is so tedious. I don't know that a query could be created for this at all. Any suggestions?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

3 Mar 2021, 4:34 PM
#35
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: Delete Spam Customers

delia:

One of my clients biggest issue are accounts - easily identifiable as you can see in this image - Attachment 19456

I am literally having to do this in the database because one by one is so tedious. I don't know that a query could be created for this at all. Any suggestions?

@Scott - sorry to be hijacking the thread, but uhmmm...

@Delia - this is EXACTLY what my ZX AntiSpam is for (although still awaiting mod's approval, it can be downloaded from my site). It won't help with current spam accounts, but it will "stop" future attempts to create such accounts. Check the support thread to see what it actually does. Hope it helps.
And... You basically could reverse-engineer the code in the plugin and create a custom script that counts the number of capital letters and delete those accounts, although I wouldn't do that without making absolutely sure you're not deleting any actual customer accounts...

My site - Pro ZC Help
My portfolio | My plugins

3 Mar 2021, 6:50 PM
#36
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Delete Spam Customers

the issue is in this case - only one client who pays a tiny fee for maintenance costs per month. Not viable to spend a lot of time with any of this - especially reverse engineering anything. She's not yelling and is being patient. I would just like an easy fix here. And I'm not registering with your site to get access to an unproven module.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

3 Mar 2021, 7:53 PM
#37
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Re: Delete Spam Customers

delia:

the issue is in this case - only one client who pays a tiny fee for maintenance costs per month. Not viable to spend a lot of time with any of this - especially reverse engineering anything. She's not yelling and is being patient. I would just like an easy fix here.

OK, no worries, hopefully Scott has an answer for you.

And I'm not registering with your site to get access to an unproven module.
LOL, okay... Sorry to have mentioned it...
Side note: yeah, you need to register, but what's stopping you to register with fake account details? Wilma Flintstone, 345 Cave Stone Road, Bedrock, wilma(at)f-spam.com
Best of luck, I hope you find a solution. :smile:

My site - Pro ZC Help
My portfolio | My plugins

16 Mar 2021, 8:05 PM
#38
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Delete Spam Customers

So I discovered these crazy fake accounts are simply using the last active country so that all are one country - and the new changes fix the problem! Thanks, Scott, for adding that!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

13 Jan 2022, 8:09 PM
#39
swguy avatar

swguy

Administrator

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

Re: Delete Spam Customers

Version 1.2 released - Added a safeguard to prevent deletion of any customer with orders.

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.

13 Jan 2022, 8:48 PM
#40
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Delete Spam Customers

swguy:

Version 1.2 released - Added a safeguard to prevent deletion of any customer with orders.

Thanks. Pity the poor shop owner who found out this was necessary!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo