Jump to content

Default "Sign up for our newsletter!" and "Receive special offers from our partners"


prestafreak1

Recommended Posts

Ok, got it:

<div class="checkbox">
						<label for="optin">
						<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
						{l s='Receive special offers from our partners!'}</label>
						{if array_key_exists('optin', $field_required)}
							<sup> *</sup>

Not sure what to do next, tried setting autocomplete="on" but without effect

Link to comment
Share on other sites

Well, I did add the checked="checked" attribute but nothing changed

<div class="checkbox">
						<label for="newsletter">
						<input type="checkbox" name="newsletter" id="newsletter" checked="checked" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
						{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">
						<label for="optin">
						<input type="checkbox" name="optin" id="optin" checked="checked" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
						{l s='Receive special offers from our partners!'}</label>
						{if array_key_exists('optin', $field_required)}
							<sup> *</sup>
						{/if}
					</div>
Edited by prestafreak1 (see edit history)
Link to comment
Share on other sites

Not sure I understand what you mean, where should I check for the opc or 5-step checkout mode?

 

And also how do I set the performance option in the back office?

 

All these files have the checked="checked" attribute set up and still the options are not checked by default.

 

This is where I'm having issues: https://tiarstudio.ro

Edited by prestafreak1 (see edit history)
Link to comment
Share on other sites

I have also added a <strong>test</strong> between the optin option for order-opc-new-account.tpl | order-opc-new-account-advanced.tpl and identity.tpl file and this doesn't show either. Any ideeas?

 

So the question now becomes - How do I edit the "02. Sign In" step from the checkout 5 steps page?

					<div class="checkbox">
						<label for="optin">
						<input type="checkbox" name="optin" id="optin" checked="checked" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
						<strong>test2</strong>
						{l s='Receive special offers from our partners!'}</label>
						{if array_key_exists('optin', $field_required)}
							<sup> *</sup>
						{/if}
					</div>
Edited by prestafreak1 (see edit history)
Link to comment
Share on other sites

{if isset($newsletter) && $newsletter}
<div class="checkbox">
	<label for="newsletter">
	<input type="checkbox" name="newsletter" id="newsletter" value="1" checked="checked" autocomplete="off"/>
	{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">
	<label for="optin">
	<input type="checkbox" name="optin" id="optin" value="1" checked="checked" autocomplete="off"/>
	{l s='Receive special offers from our partners!'}</label>
	{if array_key_exists('optin', $field_required)}
		<sup> *</sup>
	{/if}
</div>
{/if}

you can try to use this code. 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...