Jump to content

Second separately form


mhaken

Recommended Posts

Hello sorry for my english. I want to second controller contact-form.. I want two contact forms with another TPL. I duplicated contact-form.tpl to contact-form2.tpl. In controllers i duplicated ContactController.php and renamed to contact2Controller.php (with edit to link to contact-form2.tpl and $php_self='contact2'.. But it doesn't work.. Do you have any function tutorial? I Have prestashop 1.6... Thanks so much!

Link to comment
Share on other sites

Hi mhaken, 

welcome to the forum.

 

I think you also need to modify modules/blockcms     module. For example in module/blockcms/blockcms.php you should add a link to the new contact2 form, so that it is shown in the footer etc. (i.e. the user needs to have a way to choose the contact 2 form). Probably some other files in this module folder as well. Haven't checked, though.

 

 

My 2 cents,

pascal

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