Forums / Templates, Stylesheets, Page Layout / customers are incorrectly subscribed to newsletters by default

customers are incorrectly subscribed to newsletters by default

Locked

Views: 951

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
27 Sep 2008, 5:43 AM
#1
artcoder avatar

artcoder

Zen Follower

Join Date:
Jan 2007
Posts:
166
Plugin Contributions:
0

customers are incorrectly subscribed to newsletters by default

In "configuration -> customer details -> show newsletter checkbox", I have set to "off" (0). I then sign up as a new customer. I go into "admin -> customer -> edit" and see that the customer's newsletter setting is set to "subscribed". And when I go and send a newsletter, the customer receives the newsletter.

This is incorrect, since customer had not checkmarked the subscription box. In fact the customer never seen the newsletter subscription box since I had set to "off".

Is this a bug?

27 Sep 2008, 7:39 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: customers are incorrectly subscribed to newsletters by default

I don't understand why you're sending newsletters if you've got the setting disabled so customers cannot even opt to receive newsletters.

Nevertheless, if you want to default it to off, change the following line in /includes/modules/create_account.php (near line 28 or so in v1.3.8), as shown:```
$newsletter = (ACCOUNT_NEWSLETTER_STATUS == '1' [B]|| ACCOUNT_NEWSLETTER_STATUS == '0' [/B]? false : true);

.
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.