culpitt Posted October 21, 2013 Share Posted October 21, 2013 Hello can anyone point me in the right direction as to how to do this? I've tried searching on this formum and on Google but I cant find how to do this through the back-office Link to comment Share on other sites More sharing options...
culpitt Posted October 30, 2013 Author Share Posted October 30, 2013 nothing is it possible without amending the source code? Link to comment Share on other sites More sharing options...
vekia Posted October 30, 2013 Share Posted October 30, 2013 company name field isn't available by default, maybe you run store under b2b mode? Link to comment Share on other sites More sharing options...
culpitt Posted October 31, 2013 Author Share Posted October 31, 2013 It comes up by default on my setup? I don't want company name the business is exclusively B2C.I have amended the address format, under localization > countries > edit and removed the company name. (I found out how to do this by Googliing on another site and not in the Prestashop documentation b.t.w. but I still cant find anywhere in the documentation if I can remove the checkboxes for newsletter and special offers, I have tried removing the module for newsletter but the checkbox remains under customer registration Link to comment Share on other sites More sharing options...
PascalVG Posted October 31, 2013 Share Posted October 31, 2013 There are 5 files that do this 'somewhere' (one page check out, 5 steps, mobile etc. To cover all, edit the files: themes/<theme folder>/mobile/authentication-create-account.tpl themes/<theme folder>/authentication.tpl themes/<theme folder>/mobile/identity.tpl themes/<theme folder>/identity.tpl themes/<theme folder>/order-opc-new-account.tpl I show authentication.tpl as example: edit the file (make backup!) themes/<theme folder>/authentication.tpl Find text: newsletter (Use Ctrl-F) and comment out using {* and *} </p> {* <--- comment out begin bracket here {if isset($newsletter) && $newsletter} <p class="checkbox"> <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == '1'}checked="checked"{/if} autocomplete="off"/> <label for="newsletter">{l s='Sign up for our newsletter!'}</label> </p> <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> {/if} *} <--- comment out end bracket here <h3>{l s='Delivery address'}</h3> There are two newseletter block in Authentication.tpl, so search for the second one and do the same trick. save the file. Do this for all files. This should do the trick. pascal Link to comment Share on other sites More sharing options...
culpitt Posted November 1, 2013 Author Share Posted November 1, 2013 Thanks for your help Link to comment Share on other sites More sharing options...
vekia Posted November 1, 2013 Share Posted November 1, 2013 hello so Pascal's solution works for you well?? Link to comment Share on other sites More sharing options...
[email protected] Posted November 13, 2013 Share Posted November 13, 2013 I found an error in: \controllers\front\AuthController.php which I fixed by changing $this->context->smarty->assign('newsletter', 0); to $this->context->smarty->assign('newsletter', (int)Module::getInstanceByName('blocknewsletter')->active); That way it enabled with the newsletter module. This follows how it's done in \controllers\front\IdentityController.php I'm using 1.5.6.0 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now