barrystein Posted August 21, 2011 Share Posted August 21, 2011 At registration and guest registration is it possible to have the Sign up for our newsletter Checkbox already checked. That way if customer wants to opt out, they uncheck the box, but if they do nothing they are subscribed to the newsletter. Link to comment Share on other sites More sharing options...
shokinro Posted August 21, 2011 Share Posted August 21, 2011 it is easy to do that by changing the theme file of authentication page /themes/YourTheme/authentication.tpl Look for following two line <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} /> Change line to <input type="checkbox" name="newsletter" id="newsletter" value="1" checked /> Note: If you are using 1.4x, there are two occurrences in the file, one is for Guest, another another for none guest. Link to comment Share on other sites More sharing options...
AndersIvar Posted August 28, 2011 Share Posted August 28, 2011 Thanks @shokinro! Just to clearify, if you use the OPC you change in order-opc-new-account.tpl and order-opc.tpl... =) Link to comment Share on other sites More sharing options...
noesac Posted August 29, 2011 Share Posted August 29, 2011 tagged for later:) Link to comment Share on other sites More sharing options...
plb Posted June 1, 2012 Share Posted June 1, 2012 Hi there! I've tryed almost all topics information and I just can't get it work. I'm using v1.4.7.3 Any update for this version? Regards Link to comment Share on other sites More sharing options...
jesunalam Posted July 7, 2015 Share Posted July 7, 2015 If you would like to have “Sign up for our newsletter” box checked automatically for new account sign-up, find the below code: <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} /> in the following files of your theme folder: authentication.tpl, identity.tpl, order-opc-new-account.tpl Replace the above code with the code below: <input type="checkbox" name="newsletter" id="newsletter" value="1" checked="checked" /> And you’re done with it Link to comment Share on other sites More sharing options...
LarryLarryLarry Posted October 25, 2016 Share Posted October 25, 2016 Where/What is this "$smarty.post.newsletter"? If I do not want to amend the code, they are supposed to be "true", how/where do I toggle them? Link to comment Share on other sites More sharing options...
Recommended Posts