Jump to content

What is {hook h="xxxx"}


Recommended Posts

Hi

 

I installed prestashop1.6 on my server.

I saw default theme that is "default-bootstrap".

 

I tried to change part of theme. I found {hook h="displayTopColumn"} in "header.tpl". 

What is that?

 

How can I find code in displayTopColumn?

 

Regards,

tomoac

Edited by tomoac (see edit history)
Link to comment
Share on other sites

This is a display hook named displayTopColumn. Consider the display hooks as markers in the template where modules can "inject" a code. In the default PrestaShop 1.6 installation this hook is used by the module "homeslider" i.e. "Image slider for your homepage", so you can find the code that generates code for that hook at modules/homeslider/homeslider.php The method is called "hookdisplayTopColumn()".

  • Like 1
Link to comment
Share on other sites

 

How can I find code in displayTopColumn?

 

 

modules -> positions

search for modules list named displayTopColumn

 

each module associated with this hook displays own code.

it means that you will have to find your code inside these modules, exactly as PrestaShopDeveloper mentioned

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