Jump to content

[SOLVED] Newsletter Auto Checked?


Recommended Posts

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

  • 9 months later...
  • 3 years later...

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 simple-smile.png

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...