Jump to content

I'm not able to select any hook / position for my own module


Recommended Posts

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

Captura-Module-Position.PNG

Link to comment
Share on other sites

  • 4 months later...

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 by Juan Vicente Mañanas (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...