JPFaucon81 Posted August 11, 2017 Share Posted August 11, 2017 Hello I would like to change place the module Block top menu. I'm on Prestashop 1.6.1.161) I created a new hook (DisplayUnderTop)2) Then in the header of the model I added the hook.{Hook h = DisplayUnderTop}3) I added the file blocktopmenu.php in override / module with the following code: ----------------------------------------------------------------------------------------------------------- <?php class BlocktopmenuOverride extends Blocktopmenu { public function __construct() { parent::__construct(); if($this->id && !$this->isRegisteredInHook('DisplayUnderTop')) $this->registerHook('DisplayUnderTop'); } public function install($delete_params = true) { $this->registerHook('DisplayUnderTop'); return parent::install(); } public function hookDisplayUnderTop($params) { return $this->hookDisplayUnderTop($params); } } ----------------------------------------------------------------------------------------------------------- But that does not work. Could someone give me the solution to put the correct code in the override of the file blocktopmenu.php? Thank you in advance for your answers Jean Philippe. But that does not work. Could someone give me the solution to put the correct code in the override of the file blocktopmenu.php? Thank you in advance for your answers Jean Philippe. 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