Jump to content

Contact form duplication PrestaShop 1.7


Simona.Gr

Recommended Posts

Hello, community! 

I'm trying to dublicate "contact us" form and display it in another cms page. 

It seems that parameters don't pass after copying the code from contactform.tpl to any other page. I know that php and contact form controller files must be duplicated and renamed accordingly. It seems that I miss something. 

 

Maybe there is someone here who already achieved that and willing to share and spread the knowledge with new developers? Or the most famous Veika? 

Link to comment
Share on other sites

Hello. yes its possible , for this you need make some changes and add new template and class

first of all need to make duplicate controller /controllers/front/ContactController.php and change the name of class and file.


In ContactController file also change the variable php_self to new template
public $php_self = 'contact';  


After this duplicate the contact.tpl in theme directory and change the name and add the new page from backoffce SEO & URL section.

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...