Jump to content

Hook h - the rest of my page displayed in the block ?!!!


Recommended Posts

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

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...