![]() |
Re: Subcategory Mods on 4.2.0
Haha. My bad. I put the catagories.php code AFTER the line instead of BEFORE it. Such a newbie.....
Got the accordion working like a charm. Thanks Victor for you ingenuity! |
Re: Subcategory Mods on 4.2.0
One more question...
I don't want you to do all the work, but could someone point me in the right direction? I need to make an "active" class for the nested elements so that i can customize the javascript to leave the category section in the menu open if an item from that category is being viewed. I would also like the have the subcategory highlighted, but that isn't as crucial. (Using an accordion style menu) I am going to start tinkering with it today, but any ideas would be awesome! Thanks! jonah |
Re: Subcategory Mods on 4.2.0
I got it. Not only that but I was able to also insert a class for the active subcategory so both the active category and the active subcategory are given custom classes to as to help the customer keep track of where the are in the menu.
Thanks to all who started this thread. It has helped infinitely! |
Re: Subcategory Mods on 4.2.0
Quote:
artmatt... any possibility of posting your fix for sub-sub cats? Also... could you possibly explain how I could get it to work with sub-sub-sub cats??? like this... MAIN SUB 1 SUB 2 SUB 3 Thanks in advance (and thanks to user1 for cleaning things up a bit) |
Re: Subcategory Mods on 4.2.0
Hello thanks for this mod is very ussefull.
I im using it but when you click in a subcategory the subcategory sub menu dissapears, im i missing something or it works like that? |
Re: Subcategory Mods on 4.2.0
As a quick update I can confirm this also works with the new 4.3.0 version of x-cart. The new version does include a few extra choices with the Fancy Categories module being included, but it still doesn't do a "normal" functional menu. I've just followed my own post from the first page and it works fine, all sorting on sub-menus is correct as well
*EDIT* Sorting wasn't correct! It just happened to be correct because it was in alphabetic order anyway! Code should be as per Victors Code on post 16: http://forum.x-cart.com/showpost.php?p=253759&postcount=16 |
Re: Subcategory Mods on 4.2.0
This code works great, but like others I really need to know how to get sub-sub categories appearing..
|
Re: Subcategory Mods on 4.2.0
Thanks to everyone for the fantastic information in this thread. I thought modifying the categories menu to include subcats would be a real trial-and-error effort. But all of your input has made it painless!
|
Re: Subcategory Mods on 4.2.0
I tried doing this mod on 4.2.2 and it all seemed to work OK, but I have a custom skin and when I used this it added bullets in front of the Main Categories and changed the font size.
I'm sure this is a css issue. Anyone know where I might look to fix this and keep the same formatting I had? |
Re: Subcategory Mods on 4.2.0
Would this work with v4.1.11?
Also would this allow when viewing the front page, to display the root categories as defined in the side bar, then when the user selects a value say: root_category1, it then shows all the sub categories applied to that root category. But still keeping the value of the root_category1. Then when the user selects say: sub_category1 it keeps both displayed in the html drop down select box. Would this accomplish that requirement? Sorry if this has already been asked etc but just wanted to clarify that. Thanks, Jeremy |
All times are GMT -8. The time now is 01:19 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.