Change privatesales menu

This commit is contained in:
Michael RICOIS 2017-11-10 16:01:49 +01:00
parent ab97adac66
commit 2979dc56a6
2 changed files with 15 additions and 2 deletions

View File

@ -38,8 +38,18 @@ class Privatesales_Family_Menu extends Module {
fclose($file);
}
// Purchase Guide
$purchaseguide = array();
if (count($menus) > 0) {
foreach ($menus as $m) {
$purchaseguide[$m['id_category_family']] = Module::hookExec('topMenuLink',
array('id_category_family' => $m['id_category_family']), 141);
}
}
$smarty->assign(array(
'menus' => $menus
'menus' => $menus,
'purchaseguide' => $purchaseguide,
));
return $this->display(__FILE__, 'menu.tpl');
}

View File

@ -53,7 +53,10 @@
{/foreach}
</ul>
</div>
</div>
{$purchaseguide[$menu.id_category_family]}
</div>
</div>
{/if}
</li>