Elle
Elle

Reputation: 51

Prestashop: Insert a module manually in the html

I'm trying to insert a prestashop module manually directly into the html code. For example in the header.tpl I want to insert the categories module, but if I copy and paste the exact code from the blockcategories.tpl file, I receive the following message:

undefinded index: blockCategTree in ...

How can I solve that problem?

Upvotes: 0

Views: 618

Answers (1)

maioman
maioman

Reputation: 18734

To place a module into your template you always need a hook;

Hooks are a way to associate your code to some specific event (like a module),
you can use the default hooks prestashop comes with or add your custom hooks.

Upvotes: 2

Related Questions