robkwal Posted July 12, 2010 Share Posted July 12, 2010 Hi all...I am looking to remove a couple of fields from the registration process, 1st being the "Receive special offers from our partners", the 2nd being The additional Info box, as they can provide addition info in the checkout process.Also is it possible to have the months abbreviated to say Jan, Feb etc. How would i go about that? Link to comment Share on other sites More sharing options...
rocky Posted July 13, 2010 Share Posted July 13, 2010 To remove "Receive special offers from our partners", you'll need to edit lines 137-140 of authentication.tpl and 101-104 of identity.tpl in your theme's directory (in PrestaShop v1.3.1) and {* comment out *} the following lines: <input type="checkbox" name="optin" id="optin" value="1" {if $smarty.post.optin == 1} checked="checked"{/if} /> {l s='Receive special offers from our partners'} To remove the "Additional information" box, you'll need to {* comment out *} lines 194-197 of authentication.tpl and lines 84-87 of address.tpl in your theme's directory: {l s='Additional information'} <textarea id="other" name="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{else}{$address->other|escape:'htmlall':'UTF-8'}{/if}</textarea> To abbreviate the months, go to Tools > Translations > Front Office translations, click the USA flag, then scroll down to the "authentication" section and enter "Jan" in the "January" field, "Feb" in the "February" field, etc. Do the same in the "identity" section, then click "Update translations" at the bottom of the page. Link to comment Share on other sites More sharing options...
robkwal Posted July 13, 2010 Author Share Posted July 13, 2010 Thanks Rocky!!! Link to comment Share on other sites More sharing options...
nuchie1 Posted July 15, 2010 Share Posted July 15, 2010 I went in and deleted those lines. Works Ok. Is this wrong? Link to comment Share on other sites More sharing options...
rocky Posted July 15, 2010 Share Posted July 15, 2010 It is better to comment out code instead of delete it, since it makes it easier to see what you have deleted and to undelete it if needed in the future. Link to comment Share on other sites More sharing options...
nuchie1 Posted July 16, 2010 Share Posted July 16, 2010 how do you commit out a code? Link to comment Share on other sites More sharing options...
rocky Posted July 16, 2010 Share Posted July 16, 2010 It depends on the type of code. In a PHP file, you can add // to the front of a line to comment it out or wrap /* */ around the code. In TPL files, you should wrap the code in {* *}. In CSS files, you should wrap the code in /* */. Link to comment Share on other sites More sharing options...
vietnam Posted March 29, 2011 Share Posted March 29, 2011 For prestashop 1.4 it`s still the ugly old fashion product ? Half of us do not need birthday or 2 numbers, zip code, etc Link to comment Share on other sites More sharing options...
zaibot Posted April 2, 2011 Share Posted April 2, 2011 To remove "Receive special offers from our partners", you'll need to edit lines 137-140 of authentication.tpl and 101-104 of identity.tpl in your theme's directory (in PrestaShop v1.3.1) and {* comment out *} the following lines: <input type="checkbox" name="optin" id="optin" value="1" {if $smarty.post.optin == 1} checked="checked"{/if} /> {l s='Receive special offers from our partners'} To remove the "Additional information" box, you'll need to {* comment out *} lines 194-197 of authentication.tpl and lines 84-87 of address.tpl in your theme's directory: {l s='Additional information'} <textarea id="other" name="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{else}{$address->other|escape:'htmlall':'UTF-8'}{/if}</textarea> Same procedure in Prestashop 1.4.x.x? I mean is it stille the files authentication.tpl and identity.tpl in your theme's directory you should edit? Link to comment Share on other sites More sharing options...
RobbieT Posted May 23, 2011 Share Posted May 23, 2011 Hello? Can anyone help.How to remove the "Receive special offers from our partners" in PS1.4? Link to comment Share on other sites More sharing options...
PrestaMagic Posted July 4, 2011 Share Posted July 4, 2011 Hello? Can anyone help.How to remove the "Receive special offers from our partners" in PS1.4? Hi there,I just did this for my PS 1.4x installation using the one page checkout. You'll want to grab the order-opc-new-account.tpl in your theme's directory. Look for line 171 and comment out that block.I took out the birthday and the newsletter stuff too.Hope this helps! Link to comment Share on other sites More sharing options...
Saray Posted October 25, 2011 Share Posted October 25, 2011 The fix doesnt work for me... I have commented out/removed/changed the following lines of code and the recieve special offers from our partners is still there!! it doesnt go away.... <p class="checkbox" > <input type="checkbox"name="optin" id="optin" value="1" {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked="checked"{/if} /> <label for="optin">{l s='Receive special offers from our partners'}</label> </p> in both authentication and indentity in my theme folder What am i doing wrong am i forgetting something?? i have 1.3.2.3 if that matters Link to comment Share on other sites More sharing options...
AnilaN Posted October 25, 2011 Share Posted October 25, 2011 Hi Saray, Have you emptied /tools/smarty/compile folder after the modifications? If not then you have to do it before refreshing your page. Actually you have to do it every time you modify a .tpl file. Hope it'll help you. Aany 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