We are having a few issues with a tick box. Its the code which I cannot get my head around. We are trying to get the tickbox on the checkout to be ticked for signing up to our news letters. We would like the box to be automatically ticked, however we say "If you do not want to receive updates about our future offers, please untick this box."
We know the code is in /public_html/design/themes/"themename"/templates/addons/newsletters/hooks/checkout/final_section_customer_notes.post.tpl. We are messing with the final_section_customer_notes.post.tpl file. The contents are below:
{capture name="mailing_lists"}
{assign var="show_newsletters_content" value=false}
{foreach from=$page_mailing_lists item=list}
{if $list.show_on_checkout}
{assign var="show_newsletters_content" value=true}
{/if}
{$list.object}
{/foreach}
{/capture}
{if $show_newsletters_content}
{include file="common/subheader.tpl" title=__("text_signup_for_subscriptions")}
{$smarty.capture.mailing_lists nofilter}
{/if}
I have had a play with this line of code:
{$list.object}
and can get it to tick the box automatically, however when a user unticks this box, the system works and reticks this box. Obviously this is great for boosting out mailing list, however this is not authorising us to contact these customers. Does anyone know how to change this code to auto tick the box and when a used clicks this box, it stays unticked?