Tas Posted June 7, 2010 Share Posted June 7, 2010 Hi there,I have a small issue with the contact form in prestashop. I would like to add an additional field to the form which contains the persons name.Currently it asks for email address and a message. I would like to add Name also.I am aware of other posts on the forum which detail how to do this, however they all seem to involve modifying contact-form.php, which to me is not an ideal solution.Regards, Tas Link to comment Share on other sites More sharing options...
mytheory. Posted June 8, 2010 Share Posted June 8, 2010 You've probably already read this thread, but if you haven't... http://www.prestashop.com/forums/viewthread/11123/third_party_modules/creation_of_new_fields_in_the_contact_formUnfortunately, there is no easy way to modify the code to add additional fields to the contact form (or any form for that matter) without editing contact-form.php. In fact, you will also have to modify themes/prestashop/contact-form.tpl and mails/en/contact-form.htmlThere is no BO option to modify this code, and to the best of my knowledge, no module that would accomplish this -- if these options are what you were looking for.HTH! Link to comment Share on other sites More sharing options...
connectcase Posted May 14, 2013 Share Posted May 14, 2013 The display of the field is in /theme/your_theme/contact_form.tpl. The processing of that field is done via /controllers/front/ContactController.php. You have to know (basic) PHP to make adjustments to this. 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