Jump to content

How to make Homeslider Banner work in custom Hook location

Recommended Posts



I've very new to Prestashop (familiar with Joomla, Virtuemart, Magento etc, jQuery HTML CSS)...

Not sure if this is the correct forum location for this question?


I'm trying to create a custom hook and transplant an existing module (homeslider) into it. So far, I've managed to create the hook, and display the homeslider module. But the banner is not being displayed correctly (banner images are below one another) - it seems that the js and css files are not being called correctly. I've bashed away at this thing for a couple of days now - re-purposed some functions like hookdisplayHeader, hookdisplayTopColumn - but I'm still getting the same result.


This is what I've done so far:


Registered the Hook:





Called the hook:


    public function hookMondayTest($params)


if (!isset($this->context->controller->php_self) || $this->context->controller->php_self != 'index')



if (!$this->_prepareHook())

return false;


return $this->display(__FILE__, 'homeslider.tpl');

return "MondayTest5";



Called the hook in footer.tpl (for testing purposes):


    {hook h="MondayTest"}


But it's not working correctly... What am I doing wrong?



Please help! Your assistance is greatly appreciated in advance!


Share this post

Link to post
Share on other sites

This topic is now closed to further replies.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More