Luca S. Posted March 31, 2011 Share Posted March 31, 2011 Hello,how to set the automatic subscription to newsletter for new users during the registration?Thanks Link to comment Share on other sites More sharing options...
Luca S. Posted April 1, 2011 Author Share Posted April 1, 2011 any solution please? i can pay! Link to comment Share on other sites More sharing options...
Irfan Bahalwan Posted April 4, 2011 Share Posted April 4, 2011 Open identity.tpl in your themes folderFind this code <input type="checkbox" id="newsletter" name="newsletter" value="1" {if $smarty.post.newsletter == 1} checked="checked"{/if} /> {l s='Sign up for our newsletter'} and change it into <input type="hidden" id="newsletter" name="newsletter" value="1" /> Same thing goes with authentication.tplfind this code <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} /> {l s='Sign up for our newsletter'} and change it into <input type="hidden" id="newsletter" name="newsletter" value="1" /> Hope that works Link to comment Share on other sites More sharing options...
Luca S. Posted April 5, 2011 Author Share Posted April 5, 2011 Ok i will try now, however i will put some words into "terms & condition" to be legal, for example "joining this website you'll accept the weekly newsletter, ect ect" right? Link to comment Share on other sites More sharing options...
Luca S. Posted April 13, 2011 Author Share Posted April 13, 2011 Open identity.tpl in your themes folderFind this code <input type="checkbox" id="newsletter" name="newsletter" value="1" {if $smarty.post.newsletter == 1} checked="checked"{/if} /> {l s='Sign up for our newsletter'} and change it into <input type="hidden" id="newsletter" name="newsletter" value="1" /> Same thing goes with authentication.tplfind this code <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} /> {l s='Sign up for our newsletter'} and change it into <input type="hidden" id="newsletter" name="newsletter" value="1" /> Hope that works Don't work... Why?? Link to comment Share on other sites More sharing options...
Luca S. Posted April 13, 2011 Author Share Posted April 13, 2011 Ok, it works now! My error!In authentication.tpl, this code is repeated 2 times: <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} /> {l s='Sign up for our newsletter'} Replace both, with <input type="hidden" id="newsletter" name="newsletter" value="1" /> and it will works!In identity.tpl, that code is repeated only 1 time ;-) 1 Link to comment Share on other sites More sharing options...
Irfan Bahalwan Posted April 13, 2011 Share Posted April 13, 2011 Solved, right? Glad could help 1 Link to comment Share on other sites More sharing options...
Luca S. Posted April 14, 2011 Author Share Posted April 14, 2011 Solved ehehehe Link to comment Share on other sites More sharing options...
Luca S. Posted April 17, 2011 Author Share Posted April 17, 2011 A tip for interested users:Edit also order-opc-new-account.tpl, if you have enabled One Page Checkout, ehehee, if not you'll see the checkboxes of newsletter... 1 Link to comment Share on other sites More sharing options...
banchijojo Posted September 25, 2013 Share Posted September 25, 2013 This was wonderful!!! worked in V1.5 beautifully. Link to comment Share on other sites More sharing options...
Giancarlo Posted January 23, 2020 Share Posted January 23, 2020 where is this string in prestahop 1.7.5? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now