Forums / Templates, Stylesheets, Page Layout / Can I "autoload" the subcategories names?

Can I "autoload" the subcategories names?

Locked

Views: 906

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
17 Feb 2010, 6:50 PM
#1
toutou21 avatar

toutou21

New Zenner

Join Date:
Feb 2010
Posts:
27
Plugin Contributions:
0

Can I "autoload" the subcategories names?

Hello and good morning/day,

Can i do something to "autoload" the subcategories in the category sidebox?

Top Category: Men

Subcategory: T-Shirts

But when i click on Men it has to reload the whole page just to show T-Shirts.

Is there any way to preload the subcategories so when i click on a top category it doesn't reload the page just to show the subcategories. To display the subcategories right when i click on the top category.

Thanks for reading:smile:

17 Feb 2010, 11:13 PM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Can I "autoload" the subcategories names?

You might try the FlyOut Menu. When you hover over a category, the sub-categories "fly out" to the side.

If you think you might be interested in it, you can find it HERE.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

18 Feb 2010, 6:05 AM
#3
toutou21 avatar

toutou21

New Zenner

Join Date:
Feb 2010
Posts:
27
Plugin Contributions:
0

Re: Can I "autoload" the subcategories names?

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:

  1. 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.

18 Feb 2010, 10:06 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Can I "autoload" the subcategories names?

Make the switch in the js, then go inspect the result on your site... If you like what you see, keep it, or revert to the original setting in the js.

20 years a Zencart User