Jump to content

Registration Form Modification


Recommended Posts

Hello again :)

 

to remove that checkbox, you need to remove this code from authentication.tpl, identity.tpl or order-opc-new-account.tpl if you use onepage check out.

 

</p>
  <p class="checkbox">
    <input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if} />
    <label for="optin">{l s='Receive special offers from our partners'}</label>
  </p>

 

To cahnge the text use the translations tool

 

Merry christmas :)

  • Like 1
Link to comment
Share on other sites

Simply add checked="yes" in the tpl

 

<input id="newsletter" type="checkbox" checked="yes" name="newsletter" value="1">

 

Dont forget to add [solved] in the topic name, and also you can "like" my post if it was helpfull to you :)

 

Cheers

  • Like 1
Link to comment
Share on other sites

hi,

 

<p class="checkbox">
   <input type="checkbox" id="newsletter" name="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>

 

this is the code i have there.

i tried to change checked to "yes" but it isnt working...

Link to comment
Share on other sites

Hmm... if you delete the smarty code and leave the checked="checked" it will work, but I'm just noticing that there is some smarty code that can make this checked. So probably there is an option in the backoffice for this, or its connected to the platform in some other way...

 

Delete -

{if isset($smarty.post.newsletter) && $smarty.post.newsletter == 1} checked="checked"{/if}

 

leave only che checked=checked, and let me know if it work. Try it ="yes"

and ="checked" to see which is the right one. (probably both will work)

Link to comment
Share on other sites

×
×
  • Create New...