Post by OC2PS » Tue May 15, 2012 6:49 pm

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

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by scanreg » Sat Sep 22, 2012 10:28 pm

what if no choice is auto-selected and customer is prompted to choose?

thanks

Active Member

Posts

Joined
Thu May 06, 2010 12:15 am

Post by OC2PS » Sat Sep 22, 2012 10:44 pm

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.

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by matteoraggi » Sun May 12, 2013 10:07 pm

I tested it with opencart 1.5.5.1 and it work well, you can update the extensions inromations about it!

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


Active Member

Posts

Joined
Fri Apr 10, 2009 8:16 pm

Post by matteoraggi » Mon May 13, 2013 5:13 am

It would be great to apply the same @tick also to the "Contact us" page!

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


Active Member

Posts

Joined
Fri Apr 10, 2009 8:16 pm

Post by OC2PS » Mon May 13, 2013 10:38 am

matteoraggi wrote:also to the "Contact us" page!
Fair point, will try to add it in the next couple of weeks.

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by Out2lunch » Tue May 14, 2013 5:10 pm

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

New member

Posts

Joined
Wed Jun 29, 2011 9:32 pm

Post by IggyFixes » Tue Nov 19, 2013 2:10 am

In catalog/controller/account/register.php file

find :

Code: Select all

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

Code: Select all

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

Yours,
http://www.fix-css.com


User avatar
Newbie

Posts

Joined
Tue Nov 19, 2013 2:09 am

Who is online

Users browsing this forum: No registered users and 28 guests