Zen Cart Logo
Forums / General Questions / Newsletter subscription unchecked - still gets the newsletter

Newsletter subscription unchecked - still gets the newsletter

Views: 4,659

Results 1 to 3 of 3
12 Sep 2012, 10:40 PM
#1
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Newsletter subscription unchecked - still gets the newsletter

Hi everyone

i have had problem with the newsletter subscription area for a long time. The scenario is as follows:

Even when the customer has not checked the option to receive newsletter when he is logged in at our page, he still get the newsletter. I have tried this with a test account and sent a newsletter to myself. I have not checked the option.

So when i check the option, and click update i get this error:

1062 Duplicate entry 'navido82##########################' for key 'email_address'
in:
[INSERT INTO subscribers (customers_id, email_address, email_format) VALUES ('2102', 'navido82##########################', 'HTML')]

Now when i click the back button on the browser, i get the message: Your newsletter subscription has been updated.

Yes now it is checked, but this has no function since it is not working when it is unchecked.

Can someone please help me?

13 Sep 2012, 4:46 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Newsletter subscription unchecked - still gets the newsletter

v138a is no longer supported and one should upgrade for security reasons

13 Sep 2012, 8:47 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Newsletter subscription unchecked - still gets the newsletter

From the things you posted, it's clear that your site is using the (very intrusive) "newsletter subscribe" addon, which completely changes the way Zen Cart normally handled newsletter preferences.
That addon changes a LOT of core files to work differently. Perhaps something is amuck with that addon on your site.

Unfortunately, since it's not part of original Zen Cart core code, for help you may have to rely on others who are actually using that addon if you need assistance. There's a support thread for that addon.

And kobra makes a very valid point. You're using a very old version of Zen Cart. Perhaps an upgrade is a good time to reconsider how you handle those subscription preferences.