Prestashop Hook Register In Installed Module

Hook Registeration in Installed Module 

Register a Hook inside Installed Module.

Hook is specific location used to display our data in a Prestashop website on HomePage, Website Header-Footer etc.

registering hook exmple
if(!$this->isRegisteredInHook('hookname'))
{
 $this->registerHook('hookname');
}

The hook code written inside the constructor of Installed Module.The Above code hookname is like displayHeader, displayFooter, displayHome etc

eg:  $this->registerHook('displayHome');
Test It... and Have a Nice day

Comments

Popular posts from this blog

Prestashop Pass Controller Variables To TPL

Prestashop Create Admin Controller inside Admin Folder

Prestashop PDF Download Error