limfwerk Posted October 21, 2017 Share Posted October 21, 2017 I realize they are optional, but they are not labeled as such and I would prefer to not have them there at all, In fact in general I would like to customize the checkout page to some degree, but if it is unusually tricky then removing the one section would suit me. Thank you and good luck. Link to comment Share on other sites More sharing options...
Scully Posted October 22, 2017 Share Posted October 22, 2017 Use CSS with visibility: hidden; at the correct place in your template or the corresponding class from global.css and your done. Since we don't know your shop version, a more detailled help isn't possible. Link to comment Share on other sites More sharing options...
limfwerk Posted October 22, 2017 Author Share Posted October 22, 2017 I presume it is the latest version, 1.7.2.3 since I downloaded it this week. I did go digging through the bits of data trying to find which one was generating what but could not find anything that looked like what I thought I was looking for. Link to comment Share on other sites More sharing options...
Scully Posted October 23, 2017 Share Posted October 23, 2017 (edited) in 1.6. the file is named address.tpl located in the themes directory. Might be the same for 1.7. And within this file you need to add a CSS class for visibility. Edited October 23, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
DARKF3D3 Posted July 10, 2018 Share Posted July 10, 2018 Hello, I'm trying to remove/hide "social title" too, the problem it's that every field present on the checkout page has the same name, they haven't a specific class that can be used to hide it. Each field have a div and a span with the same classes: <div class="form-group row "> <label class="col-md-3 form-control-label"> Titolo sociale </label> </div> Do you know the tpl file where I should find them? Link to comment Share on other sites More sharing options...
Knowband Plugins Posted July 19, 2018 Share Posted July 19, 2018 Hi, To remove the social title from all the address fields (including on the checkout page), Modify the following file. themes/classic/templates/customer/_partials/customer-form.tpl (Check the same according to your theme) Replace the following code {block "form_field"} {form_field field=$field} {/block} with {if $field.name != 'id_gender'} {block "form_field"} {form_field field=$field} {/block} {/if} So basically, I have added one condition to exclude the title field. Hope it will help. Kindly let me know in case any issue. 1 Link to comment Share on other sites More sharing options...
DARKF3D3 Posted July 19, 2018 Share Posted July 19, 2018 Thank you, it worked! Link to comment Share on other sites More sharing options...
limfwerk Posted July 19, 2018 Author Share Posted July 19, 2018 (edited) Greeps I wish somebody had said that back in October! I remember making a mess of it, possibly removing much more than the one field in an attempt to destroy it, and cannot recall how it turned out but I ended up not using the presta shop at all in the end. If I try to figure it out again I will see if that suggestion is something I can actually try at this/that point. Edited July 19, 2018 by limfwerk there was more to say (see edit history) Link to comment Share on other sites More sharing options...
Alexandra-Ionela Posted October 22, 2018 Share Posted October 22, 2018 Hi! How do I remove the social title Mr. and Mrs. from checkout process in PrestaShop 1.6? I am using PrestaShop 1.6.1.22 and Warehouse theme version 3.8.7. I've read all posts and I didn'f find anything to solve this . If someone knows how to do it please help me, I would be grateful. Link to comment Share on other sites More sharing options...
Alexandra-Ionela Posted October 22, 2018 Share Posted October 22, 2018 I found the solution here: https://www.prestashop.com/forums/topic/521896-how-to-remove-mr-mrs-social-title/ Thank you anyway! Link to comment Share on other sites More sharing options...
sting5 Posted December 7, 2018 Share Posted December 7, 2018 (edited) For me (version 1.7.4.2.) this fix worked well (in the begining of the \themes\{your_template}\templates\_partials\form-fields.tpl): Find this part {if $field.type == 'hidden'} {block name='form_field_item_hidden'} <input type="hidden" name="{$field.name}" value="{$field.value}"> {/block} Add this line " or $field.name=='id_gender' " to the if parameters, to make it look like this: {if $field.type == 'hidden' or $field.name=='id_gender'} {block name='form_field_item_hidden'} <input type="hidden" name="{$field.name}" value="{$field.value}"> {/block} This should influence all the filling forms globally, not only in checkout page. Edited December 7, 2018 by sting5 (see edit history) 1 Link to comment Share on other sites More sharing options...
Ruup Posted January 10, 2019 Share Posted January 10, 2019 Just remove them in the backend and they will disappear from the form. 2 Link to comment Share on other sites More sharing options...
Alexandra-Ionela Posted January 22, 2019 Share Posted January 22, 2019 On 1/10/2019 at 3:51 PM, Ruup said: Just remove them in the backend and they will disappear from the form. I solved my problem, please read above. Thank you anyway! Link to comment Share on other sites More sharing options...
remoteONE Posted March 30, 2019 Share Posted March 30, 2019 I find it mind boggling that there is not a simple Setting to enable/disable Social title and Birthday . Loggin/Signup needs to be as simple as possible ! I found that deleting the 2 default titles removed the Title field fron the sign up page .Yet to check other pages. New to PS and already finding weird quirks that take hours of research to find fixes... for things that I would expect to just disable with a setting! Link to comment Share on other sites More sharing options...
Evan P Smith Posted November 27, 2019 Share Posted November 27, 2019 Hey this a question I had but and I understand the answer. My new question is how do I change the code on prestashop? i have version 1.7. Is there a module I need to download? Link to comment Share on other sites More sharing options...
msoberanes Posted June 20, 2020 Share Posted June 20, 2020 To remove the 'Title' or gender id. >Delete the default values 'Mr' and 'MRS' Result, the option will be deleted from registration form. Link to comment Share on other sites More sharing options...
limfwerk Posted June 20, 2020 Author Share Posted June 20, 2020 (edited) if it were that simple I would not have asked the question! Possibly it has been made more simple in the past two and a half years. I can only hope. I ended up not using it anyway for various reasons that are now mostly irrelevant! Edited June 20, 2020 by limfwerk (see edit history) Link to comment Share on other sites More sharing options...
fraizor Posted December 31, 2020 Share Posted December 31, 2020 On 1/10/2019 at 5:51 PM, Ruup said: Just remove them in the backend and they will disappear from the form. Genius ! 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