
the normal registration page doesn't work for me

and adding to my /skins/electro/customer/style.css file
#checkout-newsletter{
display: none;
}
results in this

Posted 18 September 2010 - 05:33 AM #21
Posted 19 September 2010 - 01:45 AM #22
{* $Id: account_update.pre.tpl 8442 2009-12-22 13:18:23Z lexa $ *} {if $page_mailing_lists} <div id="checkout-newsletter"> {include file="common_templates/subheader.tpl" title=$lang.mailing_lists} <p>{$lang.text_signup_for_subscriptions}</p> {foreach from=$page_mailing_lists item=list} <div class="select-field"> <input type="hidden" name="mailing_lists[{$list.list_id}]" value="0" /> <input id="profile_mailing_list_{$list.list_id}" type="checkbox" checked="checked" name="mailing_lists[{$list.list_id}]" value="1" {if $user_mailing_lists[$list.list_id]}checked="checked"{/if} class="checkbox" /><label for="profile_mailing_list_{$list.list_id}">{$list.object}</label> </div> {/foreach} <div class="select-field"> <select name="newsletter_format"> <option value="{$smarty.const.NEWSLETTER_FORMAT_HTML}" {if $newsletter_format == $smarty.const.NEWSLETTER_FORMAT_HTML}selected="selected"{/if}>{$lang.html_format}</option> <option value="{$smarty.const.NEWSLETTER_FORMAT_TXT}" {if $newsletter_format == $smarty.const.NEWSLETTER_FORMAT_TXT}selected="selected"{/if}>{$lang.txt_format}</option> </select> </div> </div> {/if}
Posted 28 October 2010 - 06:09 PM #23
Posted 31 December 2010 - 03:02 AM #24
Posted 31 December 2010 - 04:51 PM #25
<select name="newsletter_format">
<option value="{$smarty.const.NEWSLETTER_FORMAT_TXT}" {if $newsletter_format == $smarty.const.NEWSLETTER_FORMAT_TXT}selected="selected"{/if}>{$lang.txt_format}</option>
<option value="{$smarty.const.NEWSLETTER_FORMAT_HTML}" {if $newsletter_format == $smarty.const.NEWSLETTER_FORMAT_HTML}selected="selected"{/if}>{$lang.html_format}</option>
</select>
<input type="hidden" id="newsletter_format" name="newsletter_format" value="{$smarty.const.NEWSLETTER_FORMAT_HTML}">
Posted 23 April 2011 - 07:33 AM #26
{* $Id: subscribe.tpl 10972 2010-10-21 13:58:18Z klerik $ *} {if $items} <form action="{""|fn_url}" method="post" name="subscribe_form"> <input type="hidden" name="redirect_url" value="{$config.current_url}" /> <p>{$lang.text_signup_for_subscriptions}</p> {foreach from=$items item=list name="mailing_lists"} <div class="select-field"> <label for="mailing_list_{$block.block_id}{$list.list_id}"> <input id="mailing_list_{$block.block_id}{$list.list_id}" type="checkbox" class="checkbox" name="mailing_lists[{$list.list_id}]" value="1" />{$list.object} </label> </div> {/foreach} <div class="select-field"> <select name="newsletter_format" id="newsletter_format{$block.block_id}"> <option value="{$smarty.const.NEWSLETTER_FORMAT_HTML}">{$lang.html_format}</option> <option value="{$smarty.const.NEWSLETTER_FORMAT_TXT}">{$lang.txt_format}</option> </select> </div> {strip} <div class="form-field"> <label for="subscr_email{$block.block_id}" class="cm-required cm-email hidden">{$lang.email}</label> <input type="text" name="subscribe_email" id="subscr_email{$block.block_id}" size="20" value="{$lang.enter_email|escape:html}" class="input-text cm-hint" /> {include file="buttons/go.tpl" but_name="newsletters.add_subscriber" alt=$lang.go} </div> {/strip} </form> {/if}
{* $Id: subscribe.tpl 7806 2009-08-12 10:22:35Z alexions $ *} {** block-description:mailing_lists **} {if $mailing_lists} <form action="{$index_script}" method="post" name="subscribe_form"> <input type="hidden" name="redirect_url" value="{$config.current_url}" /> {foreach from=$mailing_lists item=list} <div class="select-field"> <input id="mailing_list_{$list.list_id}" type="hidden" class="hidden" name="mailing_lists[{$list.list_id}]" value="1" /> </div> {/foreach} <input type="hidden" id="newsletter_format" name="newsletter_format" value="{$smarty.const.NEWSLETTER_FORMAT_HTML}"> </select> {strip} <div class="form-field"> <label for="subscr_email" class="cm-required cm-email hidden">{$lang.email}</label> <input type="text" name="subscribe_email" id="subscr_email" size="20" value="{$lang.enter_email|escape:html}" class="input-text cm-hint" /> {include file="buttons/go.tpl" but_name="newsletters.add_subscriber" alt=$lang.go} </div> {/strip} </form> {/if}
Posted 29 April 2011 - 04:04 PM #27
Posted 03 May 2011 - 11:33 AM #28
I'm having the same issue (newsletter box gone) Any luck with this yet?
{if $items} <form action="{""|fn_url}" method="post" name="subscribe_form"> <input type="hidden" name="redirect_url" value="{$config.current_url}" /> <p>{$lang.text_signup_for_subscriptions}</p> {foreach from=$items item=list name="mailing_lists"} <div class="select-field"> <label for="mailing_list_{$block.block_id}{$list.list_id}"> <input id="mailing_list_{$block.block_id}{$list.list_id}" type="checkbox" class="checkbox" name="mailing_lists[{$list.list_id}]" value="1" />{$list.object} </label> </div> {/foreach} <input type="hidden" id="newsletter_format" name="newsletter_format" value="{$smarty.const.NEWSLETTER_FORMAT_HTML}"> {strip} <div class="form-field"> <label for="subscr_email{$block.block_id}" class="cm-required cm-email hidden">{$lang.email}</label> <input type="text" name="subscribe_email" id="subscr_email{$block.block_id}" size="20" value="{$lang.enter_email|escape:html}" class="input-text cm-hint" /> {include file="buttons/go.tpl" but_name="newsletters.add_subscriber" alt=$lang.go} </div> {/strip} </form> {/if}
Posted 03 May 2011 - 01:51 PM #29
Hello nikmark,
Please try to use the following part of code:{if $items} <form action="{""|fn_url}" method="post" name="subscribe_form"> <input type="hidden" name="redirect_url" value="{$config.current_url}" /> <p>{$lang.text_signup_for_subscriptions}</p> {foreach from=$items item=list name="mailing_lists"} <div class="select-field"> <label for="mailing_list_{$block.block_id}{$list.list_id}"> <input id="mailing_list_{$block.block_id}{$list.list_id}" type="checkbox" class="checkbox" name="mailing_lists[{$list.list_id}]" value="1" />{$list.object} </label> </div> {/foreach} <input type="hidden" id="newsletter_format" name="newsletter_format" value="{$smarty.const.NEWSLETTER_FORMAT_HTML}"> {strip} <div class="form-field"> <label for="subscr_email{$block.block_id}" class="cm-required cm-email hidden">{$lang.email}</label> <input type="text" name="subscribe_email" id="subscr_email{$block.block_id}" size="20" value="{$lang.enter_email|escape:html}" class="input-text cm-hint" /> {include file="buttons/go.tpl" but_name="newsletters.add_subscriber" alt=$lang.go} </div> {/strip} </form> {/if}
Thank you.
Posted 03 May 2011 - 07:06 PM #30
Hello nikmark,
Please try to use the following part of code:{if $items} <form action="{""|fn_url}" method="post" name="subscribe_form"> <input type="hidden" name="redirect_url" value="{$config.current_url}" /> <p>{$lang.text_signup_for_subscriptions}</p> {foreach from=$items item=list name="mailing_lists"} <div class="select-field"> <label for="mailing_list_{$block.block_id}{$list.list_id}"> <input id="mailing_list_{$block.block_id}{$list.list_id}" type="checkbox" class="checkbox" name="mailing_lists[{$list.list_id}]" value="1" />{$list.object} </label> </div> {/foreach} <input type="hidden" id="newsletter_format" name="newsletter_format" value="{$smarty.const.NEWSLETTER_FORMAT_HTML}"> {strip} <div class="form-field"> <label for="subscr_email{$block.block_id}" class="cm-required cm-email hidden">{$lang.email}</label> <input type="text" name="subscribe_email" id="subscr_email{$block.block_id}" size="20" value="{$lang.enter_email|escape:html}" class="input-text cm-hint" /> {include file="buttons/go.tpl" but_name="newsletters.add_subscriber" alt=$lang.go} </div> {/strip} </form> {/if}
Thank you.
Posted 27 May 2011 - 10:30 PM #31
Posted 12 July 2011 - 03:24 AM #32
Using the code from 3 posts up i was able to get mine to look like this.
Is there any way to get rid of the check box and the word Specials so it's selected by default?
Thanks!
{* $Id: subscribe.tpl 10972 2010-10-21 13:58:18Z klerik $ *} {if $items} <form action="{""|fn_url}" method="post" name="subscribe_form"> <input type="hidden" name="redirect_url" value="{$config.current_url}" /> {foreach from=$items item=list name="mailing_lists"} <div class="hidden"> <label for="mailing_list_{$block.block_id}{$list.list_id}"> <input id="mailing_list_{$block.block_id}{$list.list_id}" type="hidden" class="hidden" name="mailing_lists[{$list.list_id}]" value="1" />{$list.object} </label> </div> {/foreach} <div class="hidden"> <select name="newsletter_format" id="newsletter_format{$block.block_id}"> <input type="hidden" id="newsletter_format" name="newsletter_format" value="{$smarty.const.NEWSLETTER_FORMAT_HTML}"> </select> </div> {strip} <div class="form-field"> <label for="subscr_email{$block.block_id}" class="cm-required cm-email hidden">{$lang.email}</label> <input type="text" name="subscribe_email" id="subscr_email{$block.block_id}" size="20" value="{$lang.enter_email|escape:html}" class="input-text cm-hint" /> {include file="buttons/go.tpl" but_name="newsletters.add_subscriber" alt=$lang.go} </div> {/strip} </form>
Posted 03 August 2011 - 06:00 AM #33
Use the following code. just replace the whole subscribe.tpl with it.
itll give you the newsletter box as below, just email box and go button.
defaults to HTML and signs the user up to all your mailing lists{* $Id: subscribe.tpl 10972 2010-10-21 13:58:18Z klerik $ *} {if $items} <form action="{""|fn_url}" method="post" name="subscribe_form"> <input type="hidden" name="redirect_url" value="{$config.current_url}" /> {foreach from=$items item=list name="mailing_lists"} <div class="hidden"> <label for="mailing_list_{$block.block_id}{$list.list_id}"> <input id="mailing_list_{$block.block_id}{$list.list_id}" type="hidden" class="hidden" name="mailing_lists[{$list.list_id}]" value="1" />{$list.object} </label> </div> {/foreach} <div class="hidden"> <select name="newsletter_format" id="newsletter_format{$block.block_id}"> <input type="hidden" id="newsletter_format" name="newsletter_format" value="{$smarty.const.NEWSLETTER_FORMAT_HTML}"> </select> </div> {strip} <div class="form-field"> <label for="subscr_email{$block.block_id}" class="cm-required cm-email hidden">{$lang.email}</label> <input type="text" name="subscribe_email" id="subscr_email{$block.block_id}" size="20" value="{$lang.enter_email|escape:html}" class="input-text cm-hint" /> {include file="buttons/go.tpl" but_name="newsletters.add_subscriber" alt=$lang.go} </div> {/strip} </form>