meyer2005 Posted May 26, 2020 Share Posted May 26, 2020 Hello, I duplicated the contact form module and then I added it to the displayHome hook, but it does not appear on the front office. After I found that it does not appear on any hook. I think I have a problem with the new file ContactHomeController. Can you help me please!? class ContactHomeControllerCore extends FrontController { public $php_self = 'contactHome'; public $ssl = true; /** * Assign template vars related to page content. * * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $this->setTemplate('contactHome'); } public function getBreadcrumbLinks() { $breadcrumb = parent::getBreadcrumbLinks(); $breadcrumb['links'][] = [ 'title' => $this->getTranslator()->trans('Contact us', [], 'Shop.Theme.Global'), 'url' => $this->context->link->getPageLink('contactHome', true), ]; return $breadcrumb; } } Link to comment Share on other sites More sharing options...
meyer2005 Posted May 26, 2020 Author Share Posted May 26, 2020 Hello ndiaga, thank you for your answer but I am looking to have 2 different contact forms. a form for the home page, a second for the product page without changing the form on the contact page. Is it possible to do this with the module that you recommended? Link to comment Share on other sites More sharing options...
meyer2005 Posted May 26, 2020 Author Share Posted May 26, 2020 can I use it to create a form for the home page and another for the product page? (2 different forms)? 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