johny2k Posted September 30, 2010 Share Posted September 30, 2010 Hi, there. I`m very very new in prestashop, currently I`m using the module Top horizontal menu v1.3. I hope some one can provide some help about my question.1. Please view the attachment topmenu01.jpg, How can I remove those parent categories and sub categories hyper link (Bike/ Frame > Specialized > Mountain ), then only left the last hyper link work ( > XT Trail)? Why I want to do this is because I no want my customer always saw the subcategories with few small pictures only. (topmenu03.jpg)Hope some one can provide some help, thank you.Regards,John Link to comment Share on other sites More sharing options...
razaro Posted September 30, 2010 Share Posted September 30, 2010 Why don't you use this module. From same author, it was paid but it is free for some time. :-) Link to comment Share on other sites More sharing options...
pasko Posted September 30, 2010 Share Posted September 30, 2010 Hi, there. I`m very very new in prestashop, currently I`m using the module Top horizontal menu v1.3. I hope some one can provide some help about my question.1. Please view the attachment topmenu01.jpg, How can I remove those parent categories and sub categories hyper link (Bike/ Frame > Specialized > Mountain ), then only left the last hyper link work ( > XT Trail)? Why I want to do this is because I no want my customer always saw the subcategories with few small pictures only. (topmenu03.jpg)Hope some one can provide some help, thank you.Regards,John Hi, You can limit subcategories to show-up in BO/Modues/Block classes v1.0/configure/Maximum depht, to what you want.If the link from the horizontal menu is your categories, it will reproduce what's in there.Regards Link to comment Share on other sites More sharing options...
johny2k Posted September 30, 2010 Author Share Posted September 30, 2010 Hi, there. I`m very very new in prestashop, currently I`m using the module Top horizontal menu v1.3. I hope some one can provide some help about my question.1. Please view the attachment topmenu01.jpg, How can I remove those parent categories and sub categories hyper link (Bike/ Frame > Specialized > Mountain ), then only left the last hyper link work ( > XT Trail)? Why I want to do this is because I no want my customer always saw the subcategories with few small pictures only. (topmenu03.jpg)Hope some one can provide some help, thank you.Regards,John Hi, You can limit subcategories to show-up in BO/Modues/Block classes v1.0/configure/Maximum depht, to what you want.If the link from the horizontal menu is your categories, it will reproduce what's in there.Regards Really thanks for the reply, but I cant find the block classes v1.0 in my BO. I`m using v1.3.1 prestashop, would you like to provide help again? Thank you. Link to comment Share on other sites More sharing options...
johny2k Posted September 30, 2010 Author Share Posted September 30, 2010 Hm... I think I send the wrong detail, what I mean is remove the link of those Main categories and sub categories, but the drop down words still there. (topmenu01.jpg)All the main categories word (Bike/ Frame) and sub categories words (specialized > mountain > xt trail) still there, only remove the link.Sorry for my bad english.... Link to comment Share on other sites More sharing options...
pasko Posted September 30, 2010 Share Posted September 30, 2010 You can also create a new "link to a category or where ever you want ", without subcategory, in the top menu configuration. Link to comment Share on other sites More sharing options...
razaro Posted September 30, 2010 Share Posted September 30, 2010 Try this in jbx_module folder find file menu.tpl and edit code near end so it will look like this <script type="text/javascript" > {literal} $('li#bikesframes').find('a').each(function(){ var node =$(this); if(node.next().is('ul')){node.removeAttr("href")[spam-filter]) {/literal} </script> <!-- /MODULE JBX_MENU --> And in Back office add new menu item Type: Category and CSS ID : bikesframes and select Bikes/Frames Category. Link to comment Share on other sites More sharing options...
johny2k Posted October 1, 2010 Author Share Posted October 1, 2010 Thanks for reply again, razaro. But I`m using v1.3 not v2.0, so there is no have any menu.tpl. Only have blocktopmenu.tpl, Regards,John Link to comment Share on other sites More sharing options...
razaro Posted October 1, 2010 Share Posted October 1, 2010 OK edit blocktopmenu.tpl and add script code part after closing ul tag <script type="text/javascript" > {literal} $('li:contains("Bike/Frame")').find('a').each(function(){ var node =$(this); if(node.next().is('ul')){node.removeAttr("href")[spam-filter]) {/literal} </script> I changed code so it seeks li element which contains text Bike/Frame. Link to comment Share on other sites More sharing options...
johny2k Posted October 1, 2010 Author Share Posted October 1, 2010 Thanks again, razaro. But can you explain more clearly about in Back office add new menu item Type: Category and CSS ID : bikesframes and select Bikes/Frames Category.What is CSS ID??? Sorry for noob question, Link to comment Share on other sites More sharing options...
razaro Posted October 1, 2010 Share Posted October 1, 2010 OK for Top menu ver 1.3 see previous post, it should work.For Menu ver 2.6 follow screen - shots.Click on Menu tab, in Add new section enter data like in second image.Just choose Bike/Frame as Category and click save. Then copy code from post #6. Link to comment Share on other sites More sharing options...
johny2k Posted October 2, 2010 Author Share Posted October 2, 2010 Man, you are genius! It works for my top menu ver 1.3! Thanks a lot! Link to comment Share on other sites More sharing options...
teJ20 Posted March 26, 2011 Share Posted March 26, 2011 i'm useing it on 1.4.17 and when i add a link the page goes blank, when i delete all links (from 'List of items') everything goes back to normal. Link to comment Share on other sites More sharing options...
vampirezsr Posted October 18, 2011 Share Posted October 18, 2011 prestashop 1.4.17 use jbx menu v.2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now