View All Subcategories on Categories Page?

Is it possible to get on subcategories to show on the categories page (the page that shows after a main category (mother) is clicked on)?



I want it to list like so:



Subcategory 1 (daughter)

  • sub-subcategory 1 (grand daughter)
  • sub-subcategory 2 (grand daughter)



    Subcategory 2 (daughter)
  • sub-subcategory 1 (grand daughter)
  • sub-subcategory 2 (grand daughter)
  • sub-subcategory 3 (grand daughter)



    …and so on.



    I know the customer\views\categories\components\menu_items.tpl does this but I dont see a way to make the customer\views\categories\view.tpl work in that way. I’ve tried using $category.subcategories but that doesnt work ethier.



    Anyone have any ideas on how to do this?

Come on seriously… no one has any ideas on how to do this?

Hi,



Is this what you are looking for?

[URL=“http://forum.cs-cart.com/showthread.php?t=11093&highlight=accordion+menu”]http://forum.cs-cart.com/showthread.php?t=11093&highlight=accordion+menu[/URL]



Regards,

Aleks

No its not, but thanks for your reply.



I am not looking to change the menu at all… I want to change the categories page… or basically the page you get after you click on a main category. Its shows you the subcategories for that main category. What I want to add to this page is the subcategories of all of those existing subcategories that are already displayed.



If anyone knows how to do this, please reply!

Seriously, no one can help on this?

It can be done, but it’s a bit hackerish.


  1. Add a block, make it Categories, type Dynamic
  2. Edit the views/categories/components/categories_tree.tpl and comment out everything in between the main category UL element (one line I think).



    Anyway, a similar thing can be done in other places too, this is just for the dynamic menu option. You can jazz it up with CSS once you are done.



    I’m sure there are better ways of doing it.

Seems like it would work… but any idea why when I edit the categories_tree.tpl and upload it, it doesn’t seem to have any effect on the page? Is there some sort of cache on it? Any other template I edit seems to change including the categories_plain.tpl, so why not this one?



Also, how would I get rid of the main category page? It seems to still be below this block. I guess I could just kill the content and change the wrapper?!



Thanks.

Still waiting for a true fix for this… please someone help me out!



Thanks

Not sure why its not picking it up…try clearing the cache (add &cc to any admin page and hit enter).



Also, make sure in your block manager that you edited the right view and that the categories block has “Dynamic” sa the choice selected for type (and not emenu or something).



Finally, run the smarty debugger (option in the config php file) and see what templates are actually being loaded. Make sure that categories_tree is one of them (should be if you selected Dyanmic).