Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / SQL to unsubscribe all customers?

SQL to unsubscribe all customers?

Locked

Views: 805

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Jun 2010, 9:29 AM
#1
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

SQL to unsubscribe all customers?

As per this thread I have just made the fix for all my customers being subscribed even though the newsletter is disabled at registration lol

I now have over 200 customers all showing as subscribed and I would like to unsubscribe them in one easy step...can anyone help me out with the SQL I need for that please?

TIA
Lissa

28 Jun 2010, 4:07 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: SQL to unsubscribe all customers?

Assuming you're using only Zen Cart original code, and no addons related to newsletters, this will unsubscribe EVERYONE from your Zen Cart-managed newsletters. ```
UPDATE customers set customers_newsletter = 0;

28 Jun 2010, 7:52 PM
#3
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: SQL to unsubscribe all customers?

Thanx DrByte, that was just what I needed :clap: