Thanks for the reply but i just found something in the contributions "Click-Show-Hide Category Menu" : http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_52&products_id=872
Its pretty nice, its exactly what i wanted but,
I got another question...
It preloads all the subcategories, when i click on a Top Category it displays the subcategories but right after, it reloads the page to display the subcategories of the Top Category i clicked on. How to disable/avoid that page reloading?
In the "read me" the contributor says:
- Determine if you want links to parent categories (categories with subcategories) to just show the submenu, or to also open the corresponding category page. In ZenCart, parent category pages should just show a grid of subcategory links (no product listings, since categories with subcats should ONLY contain subcats), and therefore, these pages are probably redundant, since the subcats are already listed in the submenu. Default is to just show the submenu, not the page. To change the behavior, locate this line in categories_css.js and change the 0 to 1:
new TreeMenu('siteMenu',0);
But I don't know how to determine if i want links to parent categories.
Can someone help me with this?
Thanks.