Naveen Srinivas Posted October 11, 2022 Share Posted October 11, 2022 Hello Guys, I am using Prestashop 1.7.6.9 and i am trying to build custom module from scratch. I navigated to Improve >> Design >> Positions to find a relevant hook for my purpose, but unfortunately the hooks are not being displayed. Please check the image attached for reference. Any help will be much appreciated, Thanks in advance. Link to comment Share on other sites More sharing options...
ps8modules Posted October 12, 2022 Share Posted October 12, 2022 Hi. Turn on debug mode and enter the error here. Link to comment Share on other sites More sharing options...
Nickz Posted October 12, 2022 Share Posted October 12, 2022 On 10/11/2022 at 11:29 AM, Naveen Srinivas said: I am using Prestashop 1.7.6.9 and i am trying to build custom module from scratch. new install, updated from where, locally or server? Plus all data you can think of please. Link to comment Share on other sites More sharing options...
Naveen Srinivas Posted October 13, 2022 Author Share Posted October 13, 2022 @4you.software Here is the screenshot from Debug Mode Link to comment Share on other sites More sharing options...
ps8modules Posted October 14, 2022 Share Posted October 14, 2022 class BWDisplay extends ModuleFrontController { public function initContent() { parent::initContent(); $param1 = 'hello'; $param2 = 'word'; $this->context->smarty->assign(array( 'param1' => $param1, 'param2' => $param2, )); if (_PS_VERSION_ >= '1.5' && _PS_VERSION_ < '1.7') { $this->setTemplate('module:ganalitics/views/templates/front/page.tpl'); } } } Link to comment Share on other sites More sharing options...
Naveen Srinivas Posted October 14, 2022 Author Share Posted October 14, 2022 13 minutes ago, 4you.software said: class BWDisplay extends ModuleFrontController { public function initContent() { parent::initContent(); $param1 = 'hello'; $param2 = 'word'; $this->context->smarty->assign(array( 'param1' => $param1, 'param2' => $param2, )); if (_PS_VERSION_ >= '1.5' && _PS_VERSION_ < '1.7') { $this->setTemplate('module:ganalitics/views/templates/front/page.tpl'); } } } Could you explain? Link to comment Share on other sites More sharing options...
ps8modules Posted October 14, 2022 Share Posted October 14, 2022 If you look at the image, you will see the path to the file there. There is an error in this file. I gave you a sample of how it should be done correctly. 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