Zen Cart Logo
Forums / All Other Contributions/Addons / Display all categories+products on one page

Display all categories+products on one page

Views: 30,657

Results 1 to 20 of 105
15 Dec 2007, 7:35 AM
#1
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Display all categories+products on one page

This mini module will let you display all categories and their products on a single page (the default is the main page)

You can notice that the tpl_modules_all_cats_all_products.php uses a rather messy table template. The reason for that is: this mod was originally coded for a specific site that uses a template like this. Of course you can make any change you want on the template file.

Potential: this mod can be changed to displayed only N number of products per cat, and sort them by date/name/ or randomly. The limit of its application is your imagination.

Special note: Listing all Cats and Products on a single page is NOT recommended for sites with many categories and products, it can seriously slow down the site (because of the amount of images have to be displayed)

You can always find the new version here:
svn.rubikintegration.com/zencart_mods/all_products_on_main/

Please report all bugs or any suggestion for new features in this topic.
PS: if someone can edit the template file to use tabless css instead, please send me the code and I'll update it here. (I'm too lazy now)

19 Dec 2007, 7:53 AM
#3
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Display all categories+products on one page

Links for this mod, at svn.rubikintegration.com, are incorrect
and produce errors..can you correct please?

19 Dec 2007, 12:23 PM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Display all categories+products on one page

The link is already posted on the 2nd post.

23 Dec 2007, 6:53 AM
#5
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

Re: Display all categories+products on one page

For some reason category names are not appearing. I do see codes for the categories_name in the loop but still it isn't displaying? Maybe instead of "title=", it should be "echo"?

Please let me know...

Thanks..

23 Dec 2007, 6:55 AM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Display all categories+products on one page

A link to your page would be helpful

23 Dec 2007, 7:27 AM
#7
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

Re: Display all categories+products on one page

I know but its on local testing server. But anyways I figured out how to get the names out. Now I am trying to find out how to display the category in rows rather 1 category/next row, another category/next row. Since I have 4 categories currently, I want to display 2 per row....

23 Dec 2007, 7:32 AM
#8
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Display all categories+products on one page

That is what the template file is for. Play with it however you want ^^.

23 Dec 2007, 7:35 AM
#9
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

Re: Display all categories+products on one page

On a side note, how do you control the image size for the products in your template? I know categories can be controlled but what about products?

23 Dec 2007, 7:37 AM
#10
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Display all categories+products on one page

Currently it's using the same height + width with the normal product listing, which can be set via admin.

23 Dec 2007, 8:14 AM
#11
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

Re: Display all categories+products on one page

Right, but if I wanted it to be different?

23 Dec 2007, 3:25 PM
#12
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Display all categories+products on one page

Thne you have to change the code, it's right there in the template file.> nrg77:

Right, but if I wanted it to be different?

4 Mar 2008, 11:03 PM
#13
fightthefourwalls avatar

fightthefourwalls

New Zenner

Join Date:
Nov 2007
Posts:
57
Plugin Contributions:
0

Re: Display all categories+products on one page

Hi there,

I just tried installing this mod but all it would do is show my first category & its subcategory products normally (as if the mod was not installed) and not show any of the other category's products... is there something I am missing?
What version of Zen Cart was this written for?

15 Jun 2008, 2:25 PM
#14
qingtianyu9 avatar

qingtianyu9

New Zenner

Join Date:
Jan 2007
Posts:
25
Plugin Contributions:
0

Re: Display all categories+products on one page

all products in a category, show in a page,order by sub-categories ,how to modify?

15 Jun 2008, 5:15 PM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: Display all categories+products on one page

You might want to look at yellow1912's "all categories & products on one page" mod for pointers. See his signature for a link.

16 Jun 2008, 2:11 AM
#16
qingtianyu9 avatar

qingtianyu9

New Zenner

Join Date:
Jan 2007
Posts:
25
Plugin Contributions:
0

Re: Display all categories+products on one page

gjh42:

You might want to look at yellow1912's "all categories & products on one page" mod for pointers. See his signature for a link.

thanks very much!:D

10 Jul 2008, 4:14 PM
#17
brf123 avatar

brf123

New Zenner

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

Re: Display all categories+products on one page

Once the files have been uploaded and filenames.php edited is there an admin setting that needs to be enabled? I can't seem to get this to work.

I am trying to list all of the products in sub cats on the category main page.

Thanks!

10 Jul 2008, 8:59 PM
#18
brf123 avatar

brf123

New Zenner

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

Re: Display all categories+products on one page

How difficult would it be to modify this enhancement to list the products in subcats on the main product page by hard coding that request. I only have 4 or so categories where this will be necessary. I don't mind modifying the tpl_main_page to conditionally display this information based on the main category but I am not sure how to change the new file to accommodate this.

Any ideas?

1 Aug 2008, 3:04 AM
#19
sped1530 avatar

sped1530

New Zenner

Join Date:
Nov 2007
Posts:
37
Plugin Contributions:
0

Re: Display all categories+products on one page

I think I'm missing something thing wrong. Do you put any of these files in the admin section and also how do you change the number of categories and products per page.

Dave

13 Nov 2008, 7:00 AM
#20
milkyway avatar

milkyway

Inactive

Join Date:
Aug 2006
Location:
Singapore
Posts:
167
Plugin Contributions:
1

Re: Display all categories+products on one page

I checked yellow site but this mod no longer there, anyone has a copy of this? I really need this, thanks so much!