ricky11 Posted December 17, 2013 Share Posted December 17, 2013 I have searched through the BO, cant find out how to remove the checkbox to "receive special offers from our partners" what does this data go, and why is it here, surely their must be a way to remove it in BO. or is this hardcoded? Link to comment Share on other sites More sharing options...
ricky11 Posted December 17, 2013 Author Share Posted December 17, 2013 that was spam right? Link to comment Share on other sites More sharing options...
vekia Posted December 17, 2013 Share Posted December 17, 2013 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 More sharing options...
ricky11 Posted December 17, 2013 Author Share Posted December 17, 2013 (edited) 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 December 17, 2013 by ricky11 (see edit history) Link to comment Share on other sites More sharing options...
ricky11 Posted January 7, 2014 Author Share Posted January 7, 2014 is their a update coming for 1.5? or is all the development now on 1.6? Link to comment Share on other sites More sharing options...
akulkin Posted February 22, 2015 Share Posted February 22, 2015 I'm using 1.6... Looking at the code within authentication.tpl but I see the code seems to have changed a little. Is that so? where should I be removing from? Please advise. Thanks! Ariel Link to comment Share on other sites More sharing options...
selectshop.at Posted February 22, 2015 Share Posted February 22, 2015 (edited) 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 February 22, 2015 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
redondo1 Posted April 6, 2015 Share Posted April 6, 2015 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 More sharing options...
selectshop.at Posted April 7, 2015 Share Posted April 7, 2015 Not available in all Prestashop versions. Only from PS 1.6.0.14 upwards... Link to comment Share on other sites More sharing options...
selectshop.at Posted April 7, 2015 Share Posted April 7, 2015 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 More sharing options...
drexdis Posted April 20, 2015 Share Posted April 20, 2015 Hello, i am using Prestashop 1.6.0.14, i have disabled in BO "enable opt-in" but it still appears. I cleared browser cahce, the same. What should i do? Link to comment Share on other sites More sharing options...
selectshop.at Posted April 21, 2015 Share Posted April 21, 2015 Cleared also smarty cache ? Link to comment Share on other sites More sharing options...
drexdis Posted April 22, 2015 Share Posted April 22, 2015 Yes, i disabled cache from advanced parameters and set force compile to yes. Still appears. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 24, 2015 Share Posted April 24, 2015 Link to your site ? You are using an own theme ? Link to comment Share on other sites More sharing options...
drexdis Posted April 24, 2015 Share Posted April 24, 2015 Yes it is a bought template. The link is at: www.vidda.ro Link to comment Share on other sites More sharing options...
selectshop.at Posted April 24, 2015 Share Posted April 24, 2015 Seems that your theme is only an adaptation for PS 1.6. and does not comply fully the PS 1.6. standards. You should revert to the theme developer and debug the problem OR you comment the lines in your theme like it is explained here in topic#3 Link to comment Share on other sites More sharing options...
drexdis Posted April 24, 2015 Share Posted April 24, 2015 What does it mean that is only an adaptation? How can you tell? How can i find the standards I have seen there is an update to the theme, maybe i should do that. Thanks Link to comment Share on other sites More sharing options...
selectshop.at Posted April 24, 2015 Share Posted April 24, 2015 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 More sharing options...
GrafFoto Posted October 23, 2016 Share Posted October 23, 2016 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 More sharing options...
Recommended Posts