clif Posted July 8, 2014 Share Posted July 8, 2014 (edited) I only sell virtual products so I would like customers to sign up an account with just a name and email but not their home address. Or if I could just make entering an address not mandatory that would be great. Im just not sure which lines of code to remove or edit. Any help is appreciated. Edited July 8, 2014 by clif (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted July 8, 2014 Share Posted July 8, 2014 Hi, you need to edit authentication.tpl, address.tpl, AuthController.php, AddressController.php - you need to comment out every filed in the .tpl filed with the exception of email, firstname & lastname. In Contrllers you will need to comment out the control of all the fields, with again an exception for email, firstname and lastname. Link to comment Share on other sites More sharing options...
clif Posted July 8, 2014 Author Share Posted July 8, 2014 Hey thanks for your reply! When you say "comment out" do you just mean remove those fields? Link to comment Share on other sites More sharing options...
PSfever.com Posted July 8, 2014 Share Posted July 8, 2014 By commenting out I mean using {*Comments*} for the smarty and /* comments */ for the php. Link to comment Share on other sites More sharing options...
clif Posted July 8, 2014 Author Share Posted July 8, 2014 Thank you again for your comments. I unfortunately am a rookie and removing lines is about all the editing I have done...i dont even know what a smarty is. I dont suppose you have an example? I can find the php and tpl files, Ill try to edit them and hope for the best. Thanks for you help Link to comment Share on other sites More sharing options...
El Patron Posted July 8, 2014 Share Posted July 8, 2014 this is difficult even for advanced users. if you 'must' have this removed then you may consider posting in job offers section of forum. depicting how in forum would be 'most' difficult given the number of different themes out there. note: payment gateways may not work if you remove registration data. Link to comment Share on other sites More sharing options...
clif Posted July 9, 2014 Author Share Posted July 9, 2014 Thank you for your reply, Is there is an easy way to just make the address field "not mandatory" without removing it? Link to comment Share on other sites More sharing options...
PSfever.com Posted July 9, 2014 Share Posted July 9, 2014 (edited) Thank you for your reply, Is there is an easy way to just make the address field "not mandatory" without removing it? As El Patron says, this is quite a complicated procedure and I don't think there's an easy way around this. Posting a job in Job Offers might be a good idea! Here is the link - http://www.prestashop.com/forums/forum/235-job-offers/ Edited July 9, 2014 by PSfever.com (see edit history) Link to comment Share on other sites More sharing options...
clif Posted July 9, 2014 Author Share Posted July 9, 2014 Thank you for all the replies!! 1 Link to comment Share on other sites More sharing options...
Djedefru Posted July 10, 2014 Share Posted July 10, 2014 Hi, you need to edit authentication.tpl, address.tpl, AuthController.php, AddressController.php - you need to comment out every filed in the .tpl filed with the exception of email, firstname & lastname. In Contrllers you will need to comment out the control of all the fields, with again an exception for email, firstname and lastname. Hello! I can't found control of fields in AuthController and AddressControler. I need to remove LastName field. Maybe it checked in another place? In Customer.php or in ObjectModel.php? Can you write more detailed description? Link to comment Share on other sites More sharing options...
Recommended Posts