Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default 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
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default 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.
    Code:
    UPDATE customers set customers_newsletter = 0;
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: SQL to unsubscribe all customers?

    Thanx DrByte, that was just what I needed
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

 

 

Similar Threads

  1. Replies: 3
    Last Post: 17 Oct 2012, 02:13 AM
  2. v139h Auto-unsubscribe banned customers ?
    By frank18 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 19 Sep 2012, 03:09 PM
  3. Where do my customers unsubscribe?
    By brandon in forum General Questions
    Replies: 1
    Last Post: 26 Mar 2011, 01:34 PM
  4. Remove unsubscribe button from unsubscribe page
    By IA7X ShadowsI in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Oct 2010, 08:30 PM
  5. Is there a way for customers to do a one click unsubscribe?
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Oct 2009, 07:20 AM

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