♥kymation Posted April 9, 2018 Share Posted April 9, 2018 (edited) This Addon adds a horizontal menu bar in the header of every store page. This menu bar contains the names of each of your top-level categories. When a customer clicks on a category name, a Megamenu expands below the menu bar. This Megamenu contains a category image and name for each of the top-level category's subcategories, or the top-level category image and name and a list of links to the products in that category if there are no subcategories. The Addon code is available here. Edited April 9, 2018 by kymation Added link to Addon. Moxamint, bruyndoncx and Papanco 3 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
KADILO Posted April 11, 2018 Share Posted April 11, 2018 kymation 1 Quote Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted April 11, 2018 Share Posted April 11, 2018 5 hours ago, KADILO said: the sort order is missing from your configuration, probably you need to add the field into your product listing first for it to be available as sort option under mega menu. Quote KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
♥kymation Posted April 11, 2018 Author Share Posted April 11, 2018 (edited) It's better to use the sort order, but this Addon is supposed to tolerate it being missing. Apparently I fumbled the code for that. Try changing the code in includes/classes/category_tree_megamenu, line 279, from this: $result = ''; to this: $result = 'pd.products_name'; I'll update the Addon in a bit. Regards Jim Edited April 11, 2018 by kymation Found the error. Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
♥kymation Posted April 12, 2018 Author Share Posted April 12, 2018 I've updated the Addon to include this fix. Thanks to @KADILO for reporting the bug. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
KADILO Posted April 12, 2018 Share Posted April 12, 2018 I was update menu but does not show Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 12, 2018 Author Share Posted April 12, 2018 You have an error somewhere. Check your error log and post the error message so I can find the problem. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
burt Posted April 12, 2018 Share Posted April 12, 2018 l56 include_once 'includes/modules/content/' . $this->group . '/templates/tpl_' . basename(__FILE__); hth kymation 1 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 12, 2018 Author Share Posted April 12, 2018 LOST: One mind. Lightly used; sentimental value only. Reward for any information leading to its recovery. Thanks @burt for pointing that out. I've uploaded a fixed copy to the usual place. Regards Jim burt 1 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
KADILO Posted April 13, 2018 Share Posted April 13, 2018 tnx @kymation but it doesn't work in "sm" version It seems that no styles have been written about it Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 13, 2018 Author Share Posted April 13, 2018 There is no practical way to create a Megamenu on a screen that size. Users with small devices should use the standard Hamburger menu as it will work on small screens. Regards Jim KADILO 1 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
TITO4 Posted April 14, 2018 Share Posted April 14, 2018 Hi Jim, many thanks for this! I'm still testing and understanding it. On a BS EDGE (August 2017) it throw an error regarding FILENAME_DEFAULT. As you know, all those DEFINE_ETC has disappeared in the latest versions. The fix is simple, change it for 'index.php' in every instance. For the convenience of users, here you are that file modified. It seems to work for me. category_tree_megamenu.php Quote Shopowner, not coder, experienced copypaster :D Link to comment Share on other sites More sharing options...
KADILO Posted April 17, 2018 Share Posted April 17, 2018 (edited) kymation , can you define an option to specify " Subcategory per Column "? Edited April 17, 2018 by KADILO Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 17, 2018 Author Share Posted April 17, 2018 (edited) Maybe, if I can understand what that means. Do you want to limit the number of subcategories that are shown? Regards Jim Edited April 17, 2018 by kymation Spelling Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
♥kymation Posted April 17, 2018 Author Share Posted April 17, 2018 @TITO4 Sorry, I thought I had replied to you. Thanks very much for reporting the bug, and for giving me the fix. I've been very busy, but I'll add your code to my master and release it as soon as I get a chance. Again, my apologies for ignoring you. Jim TITO4 1 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
TITO4 Posted April 17, 2018 Share Posted April 17, 2018 Don't worry at all. In fact, I'm flattered for your consideration. I understand that we are all in similar circumstances. Quote Shopowner, not coder, experienced copypaster :D Link to comment Share on other sites More sharing options...
KADILO Posted April 19, 2018 Share Posted April 19, 2018 On 4/17/2018 at 8:57 PM, kymation said: Maybe, if I can understand what that means. Do you want to limit the number of subcategories that are shown? Regards Jim No, I want limit the row of the subcategories in madule option just like "products oer column" Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 19, 2018 Author Share Posted April 19, 2018 You can't limit the number of rows because the code doesn't know how many rows there are going to be. It should be possible to limit the number of subcategories, and that would have the same effect. That would require changes to the code, which I don't have time to do right now, so for now the answer is no. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
radhavallabh Posted July 14, 2018 Share Posted July 14, 2018 Hi, I installed Horizontal Megamenu addon on my latest CE Edge version- But after install all links become- http://localhost/Responsive-osCommerce/FILENAME_DEFAULT?cPath=54_289_290_311 It adds a FILENAME_DEFAULT instead of index.php to all links PLEASE HELP!! Quote Link to comment Share on other sites More sharing options...
♥kymation Posted July 14, 2018 Author Share Posted July 14, 2018 Older Addons like this one will need the Compatibility Addon to work with newer versions of Edge. Regards Jim radhavallabh 1 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
radhavallabh Posted July 14, 2018 Share Posted July 14, 2018 Thank you Also is there a possibility to give a auto mobile style menu in place of megamenu when the viewport is scrolled down? 6 minutes ago, kymation said: Older Addons like this one will need the Compatibility Addon to work with newer versions of Edge. Regards Jim Quote Link to comment Share on other sites More sharing options...
♥kymation Posted July 14, 2018 Author Share Posted July 14, 2018 It may be possible to do that, but I don't know how. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
armsve Posted August 15, 2018 Share Posted August 15, 2018 Hi, thanks for the addon, I'm currently testing it and wanted to know, if there are no child in the category shouldn't it move you to that category instead of showing you the category below? thanks! Quote Link to comment Share on other sites More sharing options...
René H4 Posted November 25, 2018 Share Posted November 25, 2018 Is there a live site available where we can seen this AdOn working? Thanks, Rene Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 26, 2018 Author Share Posted November 26, 2018 No live sites that I know of, although there are several people using this. The images I included are from a test site that is not yet live. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.