Forums / Templates, Stylesheets, Page Layout / Listing all Categories and all products on home page

Listing all Categories and all products on home page

Locked

Started by dgeere on 4 Dec 2007, 2:37 PM · Views: 1,496

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
4 Dec 2007, 2:37 PM
#1
dgeere avatar

dgeere

New Zenner

Join Date:
Dec 2007
Posts:
24
Plugin Contributions:
0

Listing all Categories and all products on home page

This may sound like an odd request, but please if anyone can help as I am desperate! :)

Anywho, I want to do the following. I wish to make the main content area of my homepage have

CATEGORY ONE NAME
Product1, product 2, product3, product4, product5, product6 <BR>
product7, product8, product9, product10, product 11, product 12 etc

CATEGORY TWO NAME
Product1, product 2, product3, product4, product5, product6 <BR>
product7, product8, product9, product10, product 11, product 12 etc

CATEGORY THREE NAME
Product1, product 2, product3, product4, product5, product6 <BR>
product7, product8, product9, product10, product 11, product 12 etc

etc etc

Is it possible to list out everything like this at all and what code would I need to do this?

The products would be the thumbnails of each one and would be linked to the products page.

Any help would be REALLY REALLY appreciated as I have been stuck on this for ages now.! :)

Kind Regards,
David

New Hacked Up Zen : YumBadges.com

4 Dec 2007, 3:00 PM
#2
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: Listing all Categories and all products on home page

I'm sure you can have the categories show on the homepage via the Configuration ~ Layout settings. There's an option in there to show categories on the homepage.

If you feature all the products they will all show in the featured box which you can set to show in the middle column

John Patrick
A Zen Cart Advocate!

4 Dec 2007, 3:03 PM
#3
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: Listing all Categories and all products on home page

you can also use some php code to display everything using the define pages for the homepage.

I'm not sure about the code, but it may be fun to figure that out.

One thing you need to consider. Having all of your products and categories will increase the pageload time and search engine spiders will not wait for it to load.

John Patrick
A Zen Cart Advocate!

4 Dec 2007, 3:19 PM
#4
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Listing all Categories and all products on home page

He/ she may not have too many products and cats.

Anyway, if ZC does not have this built-in, and if there is no mod for it yet, you can do it pretty simple:

You will need to write a module file to query all the cats and products:

  1. Get all cats from database
  2. Loop thru each cat, get all products

You will also need a template file to display it

And finally, you need to include this template file in includes/templates/your_template/common/tpl_main_page.php (I don't remember the exact name here)

Anyhow, it's just the basic idea, I don't want to go into too much details here before we know if you are familiar with PHP and ZC or not.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

4 Dec 2007, 4:36 PM
#5
dgeere avatar

dgeere

New Zenner

Join Date:
Dec 2007
Posts:
24
Plugin Contributions:
0

Re: Listing all Categories and all products on home page

This is not something that I would be able to code, but I can edit it once it is done as I have a rough understanding of php.

I would appreciate any help on constructing this code that can be offered, and am happy to pay if required. :)

Kind Regards,
David

New Hacked Up Zen : YumBadges.com

4 Dec 2007, 4:37 PM
#6
dgeere avatar

dgeere

New Zenner

Join Date:
Dec 2007
Posts:
24
Plugin Contributions:
0

Re: Listing all Categories and all products on home page

Also, I am a search engine specialist as my day job ;) There will not be too many products and the individual product pages will remain along with sitemap xml files etc :)

Thank you all for the advice, already many times the support I have had from "other" shopping cart scripts that you need to pay for :)

New Hacked Up Zen : YumBadges.com

5 Dec 2007, 5:32 PM
#7
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Listing all Categories and all products on home page

I have coded a small mod for dgeere to list all categories and their products on a single page. As I don't have much time to properly pack the files into a package, I won't release this on download section any time soon. PM me with your email if you want it.
Warning: listing all cats and prods on a single page can be real slow if you have lots of cats and prods.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me