Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Expand categories by default?

Expand categories by default?

Locked

Views: 1,660

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
4 Sep 2008, 7:03 AM
#1
ve39 avatar

ve39

New Zenner

Join Date:
Sep 2008
Posts:
31
Plugin Contributions:
0

Expand categories by default?

I'd like to make one of the catalog folders in the side-box to be always unfolded and to show sub folders, is it possible to do ?
and I would like to make the number that shows how many items in catalog to disappear
Thank You

5 Sep 2008, 7:01 PM
#2
ve39 avatar

ve39

New Zenner

Join Date:
Sep 2008
Posts:
31
Plugin Contributions:
0

Re: Expand categories by default?

i managed to keep the folder unfolded with this script http://www.zen-cart.com/forum/showthread.php?t=102871
however i still need help with taking off the number of items under each folder that's showing up on the right of each folder in Catalog
Thanks

5 Sep 2008, 7:24 PM
#3
ve39 avatar

ve39

New Zenner

Join Date:
Sep 2008
Posts:
31
Plugin Contributions:
0

Re: Expand categories by default?

i'm on fire if (SHOW_COUNTS == 'true') { in category_tree

7 Sep 2008, 3:07 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Expand categories by default?

Did you touch the code or did you turn it OFF in your Zen Cart Admin? :unsure:

When looking at code and thinking, "what luck, I can just change this code here" ...

try using the Tools ... Developers Tool Kit ... and take a constant like the:
SHOW_COUNTS

and enter it into the first input box and select NONE from the dropdown and click SEARCH ...

This will check to see if this is a configuration_key in the configuration table of the database ...

If not, you can also search for its usage or possibly another method of definition where a constant is set in a php file by entering it into the bottom input field, select Catalog or Admin or Catalog/Admin and click SEARCH and it will search all of the php files for the constant, or variable or text or whatever you type into the input box ...

19 May 2010, 5:24 AM
#5
lunarc avatar

lunarc

New Zenner

Join Date:
Sep 2009
Posts:
15
Plugin Contributions:
0

Re: Expand categories by default?

Hi friends!

It has been a little while since I have edited code on my site, and I can't figure out this odd problem I am having.

I have categories and sub cats always showing with my products (works great). But for some reason my new Cat- is not showing Sub-cats anywhere!

The cat and sub cat is active, as well as the product inside the sub cat. For the life of me I cannot figure out why it is not showing. Any ideas would be hugely helpful.

https://www.gallerylunarc.com/store

thanks!

19 May 2010, 6:01 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Expand categories by default?

The cat and sub cat is active, as well as the product inside the sub cat.

If you only have one product in a category, default behavior is to skip directly to its product page. You can change this in Configuration > Layout Settings > Skip 1-prod categories.

19 May 2010, 6:04 AM
#7
lunarc avatar

lunarc

New Zenner

Join Date:
Sep 2009
Posts:
15
Plugin Contributions:
0

Re: Expand categories by default?

Yah, I have been fiddling since....

could you maybe explain how the formatting changed for the product? I noticed the path is different than the other products IE.

http://gallerylunarc.com/store/index.php?main_page=product_music_info&cPath=1_2_3_18_25&products_id=84

Notice the =product_music_info&Path=1_2_3_18_25...

where as the rest of the products do not tie to music IE

http://gallerylunarc.com/store/index.php?main_page=product_info&cPath=1_2_12&products_id=31

Where did the "music" path come from?

Thanks!

19 May 2010, 6:07 AM
#8
lunarc avatar

lunarc

New Zenner

Join Date:
Sep 2009
Posts:
15
Plugin Contributions:
0

Re: Expand categories by default?

Also, the only way I could get the sub categories to show up, is by turning the "Gents" category active.

When that category is turned off, the sub cats in "ART" disappears.

19 May 2010, 6:46 AM
#9
lunarc avatar

lunarc

New Zenner

Join Date:
Sep 2009
Posts:
15
Plugin Contributions:
0

Re: Expand categories by default?

Ok figuring it out by banging my head against the wall. Looks like when the category was created it actually defaulted to creating the category as Music. Fixed that, now to some minor formatting issues!