Amazzing Posted February 21, 2012 Share Posted February 21, 2012 Hello, I have already spent several hours trying to duplicate Top horizontal menu, coming with default Prestashop new template. I changed the followings: folder name: blocktopmenu2 tpl name: blocktopmenu2.tpl php name:blocktopmenu2.php php file code: class blocktopmenu2 extends Module $this->name = 'blocktopmenu2'; return $this->display(__FILE__, 'blocktopmenu2.tpl'); But when I go to BO/modules an empy page is loaded. After removing blocktopmenu2 folder, BO/modules is displayed properly I want to make 2 different menus with different items, can anybody please tell, what parts of this module need to be modified in order to duplicate it and retain full functionality? Thank you Link to comment Share on other sites More sharing options...
surferboy Posted September 10, 2013 Share Posted September 10, 2013 Hey- Sorry to see this wasn't replied. I need to do this as well. I need to to make 2 different menus with different menu items. Thanks, Brian Link to comment Share on other sites More sharing options...
vishnuo Posted December 15, 2013 Share Posted December 15, 2013 I need the same as well has anyone found a solution for this?? Link to comment Share on other sites More sharing options...
vishnuo Posted December 23, 2013 Share Posted December 23, 2013 I was able to duplicate this module. the steps i took is below. i went into the I changed the followings:folder name: blocktopmenu2tpl name: blocktopmenu2.tplphp name:blocktopmenu2.php php name:menutoplinks2.classphp file code: in blocktopmenu2.php i did the following: - search all "menutoplinks" and replace with "menutoplinks2" - change "class blocktopmenu extends Module" to "class blocktopmenu2 extends Module" - search and change all "blocktopmenu.tpl" to "blocktopmenu2.tpl" - search and chage all "MOD_BLOCKTOPMENU_ITEMS" to "MOD_BLOCKTOPMENU_ITEMS2" - search and change all "MOD_BLOCKTOPMENU_SEARCH to "MOD_BLOCKTOPMENU_SEARCH2" - search and replace all "linksmenutop" to "linksmenutop2" - search and replace all "linksmenutop_lang" to "linksmenutop2_lang" in menutoplinks2.class change: - search and replace all "linksmenutop" to "linksmenutop2" - search and replace all "linksmenutop_lang" to "linksmenutop2_lang" - "class MenuTopLinks2" to "class MenuTopLinks2" And finally if you have a theme, yo need to go into ../themes/theme_name/module and make a copy of the "blocktopmenu" folder and rename it "blocktopmenu2" and i also had to go into ../themes/theme_name/css/module and make a copy of the "blocktopmenu" folder and rename it "blocktopmenu2" Link to comment Share on other sites More sharing options...
skinnybloke Posted August 18, 2014 Share Posted August 18, 2014 Cheers for that vishnuo - gave me a basis for changes I wanted to make Link to comment Share on other sites More sharing options...
mystxxx Posted February 25, 2016 Share Posted February 25, 2016 vishnuo it doesn't work! I did everything and in fact I have two menus in backoffice but this is the same menu! when you change something you can see same result in second menu.. and in front office you can see one menu only! So waste of ime! or maybe someone know how to do ti? Link to comment Share on other sites More sharing options...
garciasanchezdani Posted August 29, 2016 Share Posted August 29, 2016 Hi, good morning, I just needed it and did it! I've it working, so I attach .zip file ready to install and use: https://drive.google.com/open?id=0B8BAH6nChfS-Nk9xQWp5VWxVV00 Enjoy it! 1 Link to comment Share on other sites More sharing options...
adityarhmd Posted December 8, 2016 Share Posted December 8, 2016 hi garciasanchezdani, thanks for the .zip file! Link to comment Share on other sites More sharing options...
Recommended Posts