Zen Cart Logo
Forums / General Questions / "Newsletter Unsubscribe" doesn't work

"Newsletter Unsubscribe" doesn't work

Locked

Views: 1,846

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 May 2007, 6:05 AM
#1
kenaniah avatar

kenaniah

Zen Follower

Join Date:
Jun 2005
Posts:
111
Plugin Contributions:
0

"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)

3 May 2007, 12:13 PM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: "Newsletter Unsubscribe" doesn't work

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

find:

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

add below:

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

This should fix the problem. :wink2:

21 Nov 2007, 9:48 PM
#3
songdogtech avatar

songdogtech

New Zenner

Join Date:
Nov 2007
Posts:
1
Plugin Contributions:
0

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?