Juan Vicente Mañanas Posted April 26, 2019 Share Posted April 26, 2019 Hi, I'm trying to follow this nodule developing guide: https://devdocs.prestashop.com/1.7/modules/ I've installed it and I'm perfectly able to check its config. But I cannot transplant it to any hook or position (check Captura-Module-Position.PNG) But I have al least some correct Hook names at my module's code: ... public function install() { if (Shop::isFeatureActive()) { Shop::setContext(Shop::CONTEXT_ALL); } return parent::install() && $this->registerHook('leftColumn') && $this->registerHook('header') && $this->registerHook('displayHome') && Configuration::updateValue('MYMODULE_NAME', 'my friend'); } ... I'm using v1.7.5.1 in a local XAMPP (v3.2.3) Any idea? Thanks in advance, Juan Vicente Link to comment Share on other sites More sharing options...
joseantgv Posted April 26, 2019 Share Posted April 26, 2019 But have you defined the hook functions? public function hookDisplayLeftColumn() { ... } public function hookDisplayHeader() { ... } public function hookDisplayHome() { ... } 1 Link to comment Share on other sites More sharing options...
Juan Vicente Mañanas Posted August 28, 2019 Author Share Posted August 28, 2019 (edited) Hi, I must say I'm sorry for such a long delay to answer here. Quite after writing this question I decided to go on on the "bad" way (I mean, editing any file I'd need) and refactor it later to move it all to a module. Some of the tutorials I followed also made me create a module and this part also went OK. So, thanks for your answer. Edited August 28, 2019 by Juan Vicente Mañanas (see edit history) 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