kharlize Posted March 18, 2018 Share Posted March 18, 2018 hi Need help ... don't know where I'm wrong I'm using prestashop 1.6.17 and I 'm trying to hook blocklayered on the top off my categories to do so I create a new hook like this in the override file blocklayered.php public function install() { return parent::install() && $this->registerHook('displayCategoryTop'); } public function hookdisplayCategoryTop ($params) { return $this->hookLeftColumn($params); } Then I put this in the category.tpl file : {hook h=displayCategoryTop mod=blocklayered} It works , but... no matter where I put the hook h in the category.tl in a <div> after an if ect.... The rest of my page is in the blocklayered... all the rest off my page, the footer included...I have to open the blocklayered to see my products... I tried to hook blocklayerd on an existing hook and works fine...just after the navbar...so I suppose that something is missing in my public function...but what ???? Link to comment Share on other sites More sharing options...
kharlize Posted March 19, 2018 Author Share Posted March 19, 2018 Hi I resolve the problem including the hook in <section> </section> like this it doesn't include the others tpl file... have a nice day 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