I had a little problem on Prestashop 1.7.2.0, I want to add some field in my contact us form but don't know how to proceed. I just find tuto for PS 1.6.
If someone could help me.
Thanks a lot
I had a little problem on Prestashop 1.7.2.0, I want to add some field in my contact us form but don't know how to proceed. I just find tuto for PS 1.6.
If someone could help me.
Thanks a lot
Copyright © 2021 Jogjafile Inc.
Here a no update resistant solution to add a field Name:
I tried the following thing to add a field (and remember this solution is not update proof and the additional fields are not safed in the backoffice):
Update contact.html + contact.txt in the theme/mails folder:
Add the contactname line to the $var_list array in the file contactform.php located in the modules/contactform folder:
Add a line to the beginning of the function sendMessage(){ in the same file (contactform.php)
Add the following lines to the part in the file contactform.tpl located in the theme/modules/contactform/views/template/widget folder:
I know it's ugly, but hey, it's a start :) as soon as prestashop 1.7 is not buggy anymore I will start programming with proper overrides/modules