kary83 Posted April 14, 2014 Share Posted April 14, 2014 (edited) Good afternoon , I am trying to duplicate the contact form because I have to have two different and I can not buy a module for it . So far what I've done is I've found in various posts of this forum ( in Spanish and English): I have duplicated and renamed three files: / contact- form.php -> / distributor-form.php / controllers / front / ContactControler.php -> / controllers / front / DistribuidorController.php / themes / mytheme / contact-form.tpl -> / themes / mytheme / distribuidor-form.tpl After I entered in distribuidor-form.php and I modified the line of the route putting contorller=ditribuidor In DitribuidorController.php I changed three lines : The name of the class : class extends DistribuidorControllerCore FrontController The public variable : public $PHP_SELF = 'distributor'; The address of the tpl : $this -> setTemplate ( _PS_THEME_DIR_. 'distribuidor-form.tpl'); Finally I add a link on the page to take me to index.php?Controller=dealer. I have also tried to put in the link {$link->getPageLink('distribuidor.php', true)} with the same result Later I will make the changes in the database and mail so that you register and send emails , but before I try to work ... does not work .... class_index.php delete the cache and the contact form is working well but when I give the link to open the supplier form I get " 404 page not found" The truth is that for most laps I can not find where the error is , I found it is well written retailers everywhere ( it sometimes seems to have a bit of dyslexia and letter exchange ) and well , not if I need something to change ... Thank you very much in advance! and sorry for my bad English Edited April 15, 2014 by kary83 (see edit history) Link to comment Share on other sites More sharing options...
animam16 Posted June 4, 2014 Share Posted June 4, 2014 (edited) Hello friends, I m facing problem while creating a duplicate contact form in prestashop 1.6.Can any one help me..?? plzzzz.............. Edited June 4, 2014 by animam16 (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted June 4, 2014 Share Posted June 4, 2014 kary83 - From what you wrote, I don't see a copy of Classes/Contact.Php. Have you done a copy of that? That might be the missing link. Link to comment Share on other sites More sharing options...
vekia Posted June 4, 2014 Share Posted June 4, 2014 i don't think that copy of contact class is necessary, everything depends on what exactly problems you've got I m facing problem while creating a duplicate contact form in prestashop 1.6.Can any one help me..?? plzzzz.............. so, what errors you encountered? 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