freakhouse Posted January 7, 2016 Share Posted January 7, 2016 I have commented out the subscribe to newsletter on my order page in the authentication.tpl file (see below). I would however like those buyers to automatically be added to my newsletter. How can I do this? {* <p class="checkbox"> <input type="checkbox" name="newsletter" id="newsletter" value="1" if isset($smarty.post.newsletter) && $smarty.post.newsletter == '1'}checked="checked"{/if} /> <label for="newsletter">{l s='Sign up for our newsletter!'}</label> </p>*} Link to comment Share on other sites More sharing options...
Daresh Posted January 7, 2016 Share Posted January 7, 2016 Please note that something like this is usally illegal, the customer should explicitly agree to subscription etc. But if you want you can uncomment it, add checked="ckecked" and hide it in css, it will be checked for every user. Link to comment Share on other sites More sharing options...
freakhouse Posted January 7, 2016 Author Share Posted January 7, 2016 So, let me make sure I understand. I uncomment the code above and then add checked="checked" after it? None of the rest of that code has to be modified? By hide it in css, you're saying hide it from displaying, correct? Can you tell me how to do that? Link to comment Share on other sites More sharing options...
Daresh Posted January 7, 2016 Share Posted January 7, 2016 Or maybe it would be even easier to replace it with that code: <input type="hidden" name="newsletter" value="1" /> Link to comment Share on other sites More sharing options...
freakhouse Posted January 7, 2016 Author Share Posted January 7, 2016 perfect - thanks file to modify is order-opc-new-account.tpl by the way. 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