How to assign menu module to hook displayHtTopMenu in PrestaShop?

 Hi, I have installed the Prestashop Top horizontal menu with dropdowns module on prestashop 8.1.5. works great! However, I would like to place it in the position of the old menu which is "displayHtTopMenu" but it can't find it. How can I do? do you have to modify the form on some page to insert this position? thanks!



Hello
the displayHtTopMenu hook is not a default hook so module does not have support of this position.
to make our free module work with this position it will be required to alter module core file: modules/blocktopdropdownmenu/blocktopdropdownmenu.php 
there is a line (~855) with code:
public function hookDisplayTop($param)
 
you have to change it to: 
public function hookdisplayHtTopMenu($param)
 
then go to shop's back office to section: design > positions
on the right top corner of the browser window you can find a button to "transplant a module" - hit it, you will be redirected to page where you can assign module to new position.
from first dropdown select our module, form second dropdown - select your new position hookdisplayHtTopMenu and just save changes
 
from now module should appear there, where you expect to display it :)
 
best regards

milosz 

Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment