Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Listing sub category products in the main cat

Listing sub category products in the main cat

Locked

Views: 2,158

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
8 Dec 2009, 2:42 PM
#1
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Listing sub category products in the main cat

Nevermind!

8 Dec 2009, 3:42 PM
#2
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: Listing sub category products in the main cat

Well actually I could mind since no one deleted this yet..

The thing is that I'd like to list ALL subcategories in the main category too..

So basically I'd have

  1. maincategory
    1.1. submenu cat1
    1.1.1. subcat 1.1.
    1.1.2. subcat 1.2.
    1.1.2.1. subsubcat

So I'd like the main category list all products from the subcategories... And submenu cat1 to list all categories and their products below it and so on... BUT HOW?

10 Dec 2009, 11:03 AM
#3
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: Listing sub category products in the main cat

Ok I'll still try to clarify since this is quite important and there MUST be a way for this..

I have following categories and subcats:
FW09-> (7)

|_ Boys-> (6)

|_ T-Shirts (2)
|_ Shirts (1)
|_ Hoodies (1)
|_ Jackets (1)
|_ Jeans, pants & shorts (1)

|_ Girls->

|_ Accessories (1)

If I click the FW09 I'd like to list ALL products in its subfolders since FW09 does not have any products

If I click boys I'd like to list all products in its subfolders as well..

I think this is a major loss for zen cart if there isn't a functionality allowing this..

So is there any other route for this besides category linking in the admin?

10 Dec 2009, 11:12 AM
#4
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: Listing sub category products in the main cat

I wouldn't either mind doing this with new product listing module... However if I click fex FW09 folder now it lists only products from category Accessories since folders Boys and Girls are empty (however their subfolders are not..)

Could I somehow make the new products module to dig deeper?

29 Dec 2009, 6:25 AM
#5
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Listing sub category products in the main cat

I am looking for a way to do this to.

29 Dec 2009, 3:04 PM
#6
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: Listing sub category products in the main cat

I've been seriously trying to figure this out for a while now without any luck. Please let me know if you find something useful!

30 Dec 2009, 5:59 PM
#7
weber avatar

weber

Zen Follower

Join Date:
Nov 2005
Posts:
157
Plugin Contributions:
0

Re: Listing sub category products in the main cat

um. there is a module here but i forgot the link, try search yellow1912's post

30 Dec 2009, 6:28 PM
#8
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Listing sub category products in the main cat

http://www.zen-cart.com/forum/showthread.php?t=88215
Is this the one?
It says;
"5. A number of users wanted to list all products in all sub-categories of a specific category, they can take advantage of this mod as well, since it stores all sub-cats of a specific cat in $tree['cat_id']['sub_cats'] array, however, it currently stores the first sub-level, so you have to write a small function to go thru the tree and gather the deepest cats (assuming you understand what I mean ^^)"

Also I have seen in other post that people have used this modification to list all sub category products under the main category ok, but the post is filled with bits and pieces of code. I am looking for a section of the post or files to uploade that does the job without having to search through 50 pages to figure it out.

31 Dec 2009, 2:04 AM
#9
weber avatar

weber

Zen Follower

Join Date:
Nov 2005
Posts:
157
Plugin Contributions:
0

Re: Listing sub category products in the main cat

well. there is a post which yellow1912 provide a download links. the post was not initaite by yellow. but the download link is in 1st page.

the original settings was to list all products plus it's categories images under main pages. well you can change it to show under top categories within a minute.

I think yellow is trying to css in accordion. but that lack of css/jquery stlyes.