Module Developed by Alpha Media
Finally after fixing a lot of bugs in this module
I am happy to release this to the Prestashop Community ![]()
After testing this module out in the last couple of days I decided to add a new hook to the DB so the navigation can stretch 100% width of your template
v0.5 now includes inserting the new navBar Hook into the DB so you don’t have to do this manually!
Please follow these simple install instructions below
STEP 1
We need to first install then assign to the new navBar hook!
a) – Unzip then upload “categoriesbar” to your modules directory, the module is auto assigned to Top Hook on install
b) – Next click on positions & first remove this module from your top of pages hook to avoid duplication.
c) – Now you are ready to transplant this module to the new hook which was created through the install
Please select “Horizontal Navigation Bar“ from your dropdown menu then select
Hook this into the last item in your drop down list “Navigation Bar”
STEP 2
Now we need to define this new hook position in both header.php & finally header.tpl
header.php change:
/* Hooks are volontary out the initialize array (need those variables already assigned) */
$smarty->assign(array(
'HOOK_HEADER' => Module::hookExec('header'),
'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),
'HOOK_TOP' => Module::hookExec('top'),
'static_token' => Tools::getToken(false),
'token' => Tools::getToken()
));
To:
/* Hooks are volontary out the initialize array (need those variables already assigned) */
$smarty->assign(array(
'HOOK_HEADER' => Module::hookExec('header'),
'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),
'HOOK_TOP' => Module::hookExec('top'),
'HOOK_NAV_BAR' => Module::hookExec('navBar'),
'static_token' => Tools::getToken(false),
'token' => Tools::getToken()
));
header.tpl change:
<!-- Header -->
<div>
<h1 id="logo"><a href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"><img src="{$base_dir}img/logo.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}"></a></h1>
<div id="header">
{$HOOK_TOP}
</div>
</div>
to:
<!-- Header -->
<div>
<h1 id="logo"><a href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"><img src="{$base_dir}img/logo.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}"></a></h1>
<div id="header">
{$HOOK_TOP}
</div>
</div>
<br class="clear">{$HOOK_NAV_BAR}</br>
Thats it your done enjoy ![]()









