Forums / Setting Up Categories, Products, Attributes / Show all products in subcategories in Main Category page?

Show all products in subcategories in Main Category page?

Locked

Started by woodlandsprite on 20 Jul 2006, 6:00 PM · Views: 18,183

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
20 Jul 2006, 6:00 PM
#1
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Show all products in subcategories in Main Category page?

Is it possible to do the above?

Right now, if I click on a parent category, I get a description of the category and then links to the subcategories.

I would love to have my customers click on a parent category and have all products in that category appear on the main category page

Then if they want to drill down further, they can click on the subcategory in the categories box and that would only display products in the subcategory.

Does that make sense?

Is it possible? I had originally linked my products to the parent category, but Ajeh pointed out that that might break my cart down the line...

TIA!

Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

25 Jul 2006, 7:28 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Show all products in subcategories in Main Category page?

Can be done, but will require custom coding to build retrieval functions, display-building module, and template for output. Much of it can be built from cloning existing components here and there.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Jul 2006, 7:09 PM
#3
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Re: Show all products in subcategories in Main Category page?

Thanks Dr.Byte. That's what I feared. I suspect it's a bit over my head with my rather basic knowledge :sigh:

Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

4 Mar 2008, 2:02 AM
#4
focus360 avatar

focus360

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Re: Show all products in subcategories in Main Category page?

DrByte:

Can be done, but will require custom coding to build retrieval functions, display-building module, and template for output. Much of it can be built from cloning existing components here and there.

Any you give any pointers to which components you would suggest could help?

19 May 2008, 12:04 AM
#5
davemehta avatar

davemehta

Zen Follower

Join Date:
Aug 2005
Posts:
130
Plugin Contributions:
0

Re: Show all products in subcategories in Main Category page?

So I really need to do this and would you guru's mind pointing me in the right direction to start?

  1. What are the template/module file names to edit the main subcategory page?

  2. Can you let me know what files I should look at grabbing/cloning the code from?

If I get that info then I think I could code this up.

Surprising no one has asked for this earlier, I would have thought this would be a features others would have wanted/built-in?

Thanks!

23 May 2008, 12:35 AM
#6
cold_turkey avatar

cold_turkey

New Zenner

Join Date:
Apr 2008
Posts:
5
Plugin Contributions:
0

Re: Show all products in subcategories in Main Category page?

Has anyone had any further luck getting this to work?

I asked a similar question twice already (although not quite so well explained) and haven't had any replies. :frusty:

The method I tried to use was to create a new table in the ZC database to handle the extra "tags" for the items that would be used to "drill down" the search. The reason I wanted to use a new table is because apparently if you just add the new fields to the products table in the ZC database and ZC code changes, it can stuff everything up.

My thinking was that all items would be displayed in one category and then users would use links or populated drop boxes in a side box to perform a look up on the extra table. This would change the products displayed so that only items with matching information in the selected fields would display. I managed to create the table and the extra fields I needed but am too useless to link it to the products table via the products_id primary key. I also have no idea how to custom code the files - collect_info.php, preview_info.php and update_product.php to store and retrieve the info from the second table for adding the products.

I hope that some of you guys with coding and or ZC experience can tell me if I'm on the right track or indeed help me out with what I'm trying to achieve.

Thanks to anyone working on this and good luck.

23 May 2008, 12:53 AM
#7
focus360 avatar

focus360

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Re: Show all products in subcategories in Main Category page?

Yes thanks to yellow 1912.

It is discussed in his simple category tree thread.

http://www.zen-cart.com/forum/showthread.php?t=88215

Its working without error on my site. I have hunderds of categories, sub-categories and products. The products always show on category pages and the sub-caegories act as a filter.:yes:

23 May 2008, 1:11 AM
#8
cold_turkey avatar

cold_turkey

New Zenner

Join Date:
Apr 2008
Posts:
5
Plugin Contributions:
0

Re: Show all products in subcategories in Main Category page?

Thanks a bunch. Hopefully my dramas have come to an end.

Maybe this open source stuff isn't so bad after all.

13 Oct 2008, 11:02 PM
#9
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: Show all products in subcategories in Main Category page?

Focus360 can we see your site, to see if this is what we are looking for. If it is, Ill be thrilled.

Thanks

22 stores and counting! Ive been zenned.

3 Dec 2009, 7:33 PM
#10
wolfderby avatar

wolfderby

Zen Follower

Join Date:
Dec 2008
Location:
Pittsburgh, PA
Posts:
241
Plugin Contributions:
0

Re: Show all products in subcategories in Main Category page?

A possible work around is to do an easy populate export.

Sort in excel by cat1 then by cat2 (make sure to expand your selection)

rename all your cat2's to "All Products of Cat 1"

save and re-import

easy populate will update your products which will duplicate/link them.

They'll be in 2 different cat2's (the all one and the specific one) then but when one sells they'll both disappear.

The only draw back is having to delete the duplicates when trying to update bulk products in excel.

I've done this as a work around for size filters too. But I have a lot of products.