Vilas Posted February 5, 2012 Share Posted February 5, 2012 (edited) Hello Friends, I like to remove some fields like company, additional information. Please check image for referance. It will be great if you help me inthis. Thanks in advance. Regards Edited June 1, 2012 by Vilas (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted February 5, 2012 Share Posted February 5, 2012 Go to ...themes/prestashop and edit authentication.tpl and change the following. In 1.4.6.2 comment out lines 387-390 (removes company) or copy and paste the code below in the spot where you find the code below. (comment out is this <!-- (code) --> <!-- <p class="text"> <label for="company">{l s='Company'}</label> <input type="text" class="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" /> </p> --> Then to remove the Additional info text box comment out lines 470-473 like below or copy and paste the code below where you find it. <!-- <p class="textarea"> <label for="other">{l s='Additional information'}</label> <textarea name="other" id="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea> </p> --> 2 Link to comment Share on other sites More sharing options...
Vilas Posted February 7, 2012 Author Share Posted February 7, 2012 Dear Friend, I tried your solution. But not worked. Please suggest alternative. Thanks Link to comment Share on other sites More sharing options...
tdr170 Posted February 7, 2012 Share Posted February 7, 2012 Yes this does work I tested on my site, did you force complile under preferences/performance. Check force compile to yes cache to no. If you have trouble I will make changes to a .tpl file and give you the whole file. Link to comment Share on other sites More sharing options...
Vilas Posted February 8, 2012 Author Share Posted February 8, 2012 Hi, I will send you the file. So that you can make changes and then send back to me. I tried every option but not works. Thanks for kind support. Regards Link to comment Share on other sites More sharing options...
tdr170 Posted February 8, 2012 Share Posted February 8, 2012 Make the changes before you send it so I amy see what you did. Then you can see any changes I make. Link to comment Share on other sites More sharing options...
Vilas Posted March 18, 2012 Author Share Posted March 18, 2012 Dear Friend, Apologize for delay in response. Yes my issue resolved after making changes suggested by you. But its not working when I select guest checkout option. So can u tell me what changes I have to to remove company and additional information field while using guest checkout. Thanks Link to comment Share on other sites More sharing options...
tdr170 Posted March 19, 2012 Share Posted March 19, 2012 Looks like you need to comment out line 213 of authentication.tpl (same file you edited before) will be just below delivery address <h3>{l s='Delivery address'}</h3> {foreach from=$dlv_all_fields item=field_name} {if $field_name eq "company"} <!-- <p class="text"> <label for="company">{l s='Company'}</label> <input type="text" class="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" /> </p> --> {elseif $field_name eq "vat_number"} <div id="vat_number" style="display:none;"> However in my guest checkout there is no additional information area so if yours does have one just look below and follow labels as they appear on your gust checkout ad you should be able to find it and comment ot out. Link to comment Share on other sites More sharing options...
Phil_Malaysia Posted October 3, 2012 Share Posted October 3, 2012 Works great for 1.4.8 Thanks!!! Link to comment Share on other sites More sharing options...
GMorwood Posted October 6, 2012 Share Posted October 6, 2012 Yes!!!! Your a life saver! Thanks tdr170 Link to comment Share on other sites More sharing options...
TokenAddicts Posted March 1, 2016 Share Posted March 1, 2016 (edited) I deleted the fields I wanted removed but I still got a error message saying those fields need to be filled in, so what am I doing wrong? Edited March 1, 2016 by TokenAddicts (see edit history) 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