Jump to content

How to add new fields to ContactForm module


zatv

Recommended Posts

Hello. Prestashop 1.7.1.10. I need to add new extra fields to ContactForm module. I added my new fields to:

 - contactform.tpl

 - database table ps_customer_message

 - contactform.php

 - \mails\ru\

 - \mails\en\

 

Now i can receive an email from ContactForm module with my new extra fields filled, but new fields in database table ps_customer_message are empty. 

 

What changes do i need to make else?

I suppose that it is necessary to modify the public function __construct() but i don't know in what controller?

 

Edited by zatv (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...