Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Posts
    109
    Plugin Contributions
    0

    bug "Newsletter Unsubscribe" doesn't work

    I have tried to unsubscribe using the "Newsletter Unsubscribe" link in the information box.

    #1) Unsubscribe as a customer not logged in.
    Unsubscribe from our Newsletter

    We're sorry to hear that you wish to unsubscribe from our newsletter. If you have concerns about your privacy, please see our privacy notice.

    Subscribers to our newsletter are kept notified of new products, price reductions, and site news.

    If you still do not wish to receive your newsletter, please click the button below. You will be taken to your account-preferences page, where you may edit your subscriptions. You may be prompted to log in first.

    FROM HERE I CLICKED UNSUBSCRIBE.
    BUG: IT DID NOT ASK ME TO LOG IN.

    #2) Unsubscribe as a customer logged in.
    Unsubscribe from our Newsletter

    We're sorry to hear that you wish to unsubscribe from our newsletter. If you have concerns about your privacy, please see our privacy notice.

    Subscribers to our newsletter are kept notified of new products, price reductions, and site news.

    If you still do not wish to receive your newsletter, please click the button below. You will be taken to your account-preferences page, where you may edit your subscriptions. You may be prompted to log in first.

    FROM HERE I CLICKED UNSUBSCRIBE.
    -----------
    The email address you specified was not found in our newsletter database, or has already been removed from our newletter subscription list.
    -----------
    BUG: Went to account and viewed subscription. Subscription still active.


    Thus, right now this link doesn't do anything.

    Thank you!
    Zen Cart 1.3.7
    Database Patch Level: 1.3.7
    v1.3.7 [2007-01-17 12:09:06] (Fresh Installation)

  2. #2
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: "Newsletter Unsubscribe" doesn't work

    In your includes/modules/<your_template>/pages/unsubscribe/header_php.php file,

    find:

    PHP Code:
    // This should be first line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_START_UNSUBSCRIBE'); 
    add below:

    PHP Code:
    if (!$_SESSION['customer_id']) {
      
    $_SESSION['navigation']->set_snapshot();
      
    zen_redirect(zen_href_link(FILENAME_LOGIN'''SSL'));

    This should fix the problem.

  3. #3
    Join Date
    Nov 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: "Newsletter Unsubscribe" doesn't work

    Well, I tried that code patch and I got a parse error on the first line of the patch. Anyone else have luck with this unsubscribe button and login issue?

 

 

Similar Threads

  1. Customizing "Unsubscribe from our Newsletter" page
    By shnncof in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Mar 2012, 04:07 AM
  2. Turn Off "Gift Certificate FAQ" & "Newsletter Unsubscribe" from Sidebox
    By DBB1 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 16 Sep 2010, 04:23 AM
  3. Replies: 3
    Last Post: 9 Nov 2009, 12:24 AM
  4. Why does "newsletter unsubscribe" appear for guest users?
    By douglerner in forum Basic Configuration
    Replies: 2
    Last Post: 7 Apr 2007, 12:44 PM

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