Jump to content

Disable receive special offers from our partners and birthday


Recommended Posts

to disable "receive special offers from our partners" - remove the

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

code from authentication.tpl (code is visible only when newsletter is active)

Link to comment
Share on other sites

Hi Vekia,

Thanks!

 

Can i just ask, if you know why this option to enable or disable was not programmed into the BO?

 

I mean why didn't the coders make this fix to enable/disable in one of the updates? i see so many people trying to figure this out, and all of them have to edit the tpl files manually.

 

Also the SAAS model of prestaBOX, i really wonder how they work, because SAAS cannot be customized as much

similar with the birthday date, how can one disable this? cannot right?

thanks.

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

  • 3 weeks later...
  • 1 year later...

Regardless of the Prestashop version, if you comment the entire block of the checkbox receive special offers in /themes/yourtheme/authenticaion.tpl it will do the work and don't show the lines anymore. But make sure that you comment the entire expression block from <p class="checkbox"> to </p> to don't get an error. ;)

 

And don't forget to delete your browser cache to see immediately the result of your change.

Edited by selectshop.at (see edit history)
Link to comment
Share on other sites

  • 1 month later...

in the back office - preferences/customers there is a selection for enable opt-in, disable that to remove the 'special offers from partners'.

 

no need to change code, but it also didnt make sense until i looked at the code that the optin field was related.

Link to comment
Share on other sites

in the back office - preferences/customers there is a selection for enable opt-in, disable that to remove the 'special offers from partners'.

 

no need to change code, but it also didnt make sense until i looked at the code that the optin field was related.

Not available in all Prestashop versions. Only from PS 1.6.0.14 up...

Link to comment
Share on other sites

  • 2 weeks later...

Standard is: if you disable the feature on back-office, so it will not appear on the theme cause there is a if included in the code of theme to disable it (which is missing on your file). This is the rule for latest PS 1.6. versions. If you disable it on back-office and it is still showing on the theme, so your theme is not according to the standard - very simple conclusion....

 

Comment the lines as indicated in topci#3 and you solve your problem. The file you should change ist /themes/yourtheme/authentication.tpl. Be aware that on your theme the lines could be vary according to the PS version the theme was mainly coded before,  in any case you should search for 

 

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

 

And comment the whole block.

 

 

to disable "receive special offers from our partners" - remove the

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

code from authentication.tpl (code is visible only when newsletter is active)

Link to comment
Share on other sites

  • 1 year later...

I also use a third-party-theme where the Opt-Button did not work.

But I try not to change things in my template if it is possible.

 

But in my template there is possibility to use personal CSS. So I`ve solved this problem with this CSS:

 

label[for=optin] { display: none !important; }

Link to comment
Share on other sites

×
×
  • Create New...