bartoszr Posted February 8, 2016 Share Posted February 8, 2016 Hello, I just have noticed that the condition in templates {if isset($newsletter} && $newsletter} doesn't work. The $newsletter value is always 1 and due to this on the registration page and in the back end My Personal Info the check box is always visible. No matter what is the switch in Preferences->Customers->Enable newsletter registration set to. Maybe there is an explanation why is it working like that and if this is a bug what I have to do to make it work. Thank you in advance. Bartek Link to comment Share on other sites More sharing options...
sandipchandela Posted February 18, 2016 Share Posted February 18, 2016 yes u r right. I think there may be any intention to do so. I found for opt-in also. {if isset($newsletter) && $newsletter} <div class="checkbox"> <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} /> <label for="newsletter">{l s='Sign up for our newsletter!'}</label> {if array_key_exists('newsletter', $field_required)} <sup> *</sup> {/if} </div> {/if} {if isset($optin) && $optin} <div class="checkbox"> <input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked="checked"{/if} /> <label for="optin">{l s='Receive special offers from our partners!'}</label> {if array_key_exists('optin', $field_required)} <sup> *</sup> {/if} </div> {/if} 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