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
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
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.
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish
http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish
Fair point, will try to add it in the next couple of weeks.matteoraggi wrote:also to the "Contact us" page!
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
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...
Regards
Out2lunch
find :
Code: Select all
$this->data['newsletter'] = '';
Code: Select all
$this->data['newsletter'] = 1;
Yours,
http://www.fix-css.com
Users browsing this forum: No registered users and 28 guests