Page 1 of 1

@tik Yes to newsletter

Posted: Tue May 15, 2012 6:49 pm
by OC2PS
The idea is exceedingly simple.

Users have inertia against action. To get them to do anything is hard.

This is true for newsletter signups as well. We know from experience and experimentation that if on the register page you put an unchecked box for newsletter signup, then very few will bother to sign up. If on the other hand, "Yes" is selected by default, then very few will change it to "No".

In Opencart's default configuration, on the customer registration page the newsletter signup is "No" by default. This mod changes the default to "Yes".

Please check the legal framework in your market. While working for a large telecom company, I obtained legal advice for several European markets, and having the option selected as "Yes" by default is legal in most of these, based on my understanding.

If you audit permissions by opt-out i.e. include everyone unless they say NO (i.e. ask you to remove them) in a mailing list etc, THAT is illegal. In other words, if you were to remove the checkbox/ radio buttons and have everybody "opted in" by default, giving them the option only to log into their account details to opt out, that would be illegal in many countries.

The important distinction is providing the users the option BEFORE the action. By having the checkbox ticked or "Yes" radio button selected, but allowing the users to change it, you are still auditing permissions via opt-in, and that is legal based on councel that I have received.

But please, check the legal framework in your market; I bear no responsibility.

This is designed to work with the default theme. Tested with 1.5.2.1, 1.5.3 and 1.5.3.1

No core files are changed.

Extension page: http://www.opencart.com/index.php?route ... on_id=6447

Re: @tik Yes to newsletter

Posted: Sat Sep 22, 2012 10:28 pm
by scanreg
what if no choice is auto-selected and customer is prompted to choose?

thanks

Re: @tik Yes to newsletter

Posted: Sat Sep 22, 2012 10:44 pm
by OC2PS
That's not possible for a Boolean variable. Either it's 0 or 1. (in terms of logic)

Programmatically, it could be stored as null, but when it comes to using it, it still comes down to Yes or No. e.g. You say if newsletter = 1 then send newsletter. Then irrespective of whether the variable is not set or set to 0, the newsletter will not be sent. So effective value is 0.

Re: @tik Yes to newsletter

Posted: Sun May 12, 2013 10:07 pm
by matteoraggi
I tested it with opencart 1.5.5.1 and it work well, you can update the extensions inromations about it!

Re: @tik Yes to newsletter

Posted: Mon May 13, 2013 5:13 am
by matteoraggi
It would be great to apply the same @tick also to the "Contact us" page!

Re: @tik Yes to newsletter

Posted: Mon May 13, 2013 10:38 am
by OC2PS
matteoraggi wrote:also to the "Contact us" page!
Fair point, will try to add it in the next couple of weeks.

Re: @tik Yes to newsletter

Posted: Tue May 14, 2013 5:10 pm
by Out2lunch
Thanks so much for this awesome little free mod.

Yes I can confirm it does work on 1.5.5.1.

Also if you make any more changes just for sheer laziness sake, can you change it too so its default ticked for Admin Orders too... ;D


Regards

Out2lunch

Re: @tik Yes to newsletter

Posted: Tue Nov 19, 2013 2:10 am
by IggyFixes
In catalog/controller/account/register.php file

find :

Code: Select all

$this->data['newsletter'] = '';
change it to :

Code: Select all

$this->data['newsletter'] = 1;