crashbdx Posted December 5, 2013 Share Posted December 5, 2013 (edited) Hi, i needs to have 3 differents contact form on 3 differents pages, i been looking for a solutions since hours and still cant make it, im following this option that i found on forum : copy a set of all three files. contact-form.php controllers/ContactController.php themes/YourSiteTheme/contact-form.tpl 2. Rename all of the files to new ones contact-formXXX.php controllers/ContactXXXController.php themes/YourSiteTheme/contact-formXXX.tpl 3. Change related places in controllers/ContactXXXController.php class ContactXXXControllerCore extends FrontController { public function __construct() { $this->php_self = 'contact-formXXX'; $this->ssl = true; parent::__construct(); } .... public function displayContent() { $_POST = array_merge($_POST, $_GET); parent::displayContent(); self::$smarty->display(_PS_THEME_DIR_.'contact-formXXX.tpl'); } } please note above XXX needs to be changed to your own names But when i try acces to http://localhost/presta/index.php?controller=contact-formXXX i got a 404 page not found only ! anyone have an idea what i forgot ??? Thanks in advance. Edited December 5, 2013 by crashbdx (see edit history) Link to comment Share on other sites More sharing options...
ibndawood Posted December 6, 2013 Share Posted December 6, 2013 Hi, Please make sure you add your class to cache/class_index.php Something like this : 'ContactXXXController' => 'classes/front/ContactXXXController.php', Link to comment Share on other sites More sharing options...
crashbdx Posted December 6, 2013 Author Share Posted December 6, 2013 Thanks a lot i will try that tomorow. Link to comment Share on other sites More sharing options...
Recommended Posts