Hey guys,
i'm having troubles with a module in PrestaShop 1.5.6.1 when trying to use the header hook in the default mobile template.
In presta/themes/default/mobile/header.tpl there is
{$HOOK_MOBILE_HEADER}
I tried to use this module similar to the HOOK_HEADER in the regular template.
In the module I am registering the hooks
public function install()
{
if (!parent::install() ||
!$this->registerHook('header') ||
!$this->registerHook('mobileHeader'))
return false;
return true;
}
and then using these functions to have some output
public function hookDisplayHeader()
{
return "<!-- Hello World -->";
}
public function hookDisplayMobileHeader()
{
return "<!-- Hello World -->";
}
The regular hook is working but the mobile isn't. I also couldn't find the mobile header hook in the databasetable pre_hook.
Has anyone experience with that?
Greetings
Maluma