Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Page that displays all categories

Page that displays all categories

Locked

Views: 3,469

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
5 Dec 2007, 7:00 PM
#1
sccr410 avatar

sccr410

New Zenner

Join Date:
Mar 2005
Posts:
13
Plugin Contributions:
0

Page that displays all categories

Does Zen Cart have a page that can list all the categories with their category graphic? I just have a few top-level categories and want to link to a page that displays them all.

5 Dec 2007, 7:20 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Page that displays all categories

Admin > Configuration > Layout Settings >
Categories - Always Show on Main Page 1
and
Main Page - Opens with Category 0 (0 = all categories)

5 Dec 2007, 7:33 PM
#3
sccr410 avatar

sccr410

New Zenner

Join Date:
Mar 2005
Posts:
13
Plugin Contributions:
0

Re: Page that displays all categories

Unfortunately that isn't what I wanted. I have a page in my main navigation called "Products". When a user clicks on that they should be given a list of all the product categories. I don't want them listed on the home page.

5 Dec 2007, 7:40 PM
#4
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Page that displays all categories

You may want to twist navigation tab for that purpose.

5 Dec 2007, 7:46 PM
#5
sccr410 avatar

sccr410

New Zenner

Join Date:
Mar 2005
Posts:
13
Plugin Contributions:
0

Re: Page that displays all categories

May want to who? Sorry, that made no sense to me.

5 Dec 2007, 8:11 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Page that displays all categories

So this was really about the same question as your other thread?

5 Dec 2007, 8:13 PM
#7
sccr410 avatar

sccr410

New Zenner

Join Date:
Mar 2005
Posts:
13
Plugin Contributions:
0

Re: Page that displays all categories

No, I was able to figure out the other question. I listed the names of all the categories on the side of the page.

This is a new question: In the main navigation I have a page called "Products". When you click on it, it should list all the categories with their category image. Is this redundant to listing all the categories on the side of every page? YES. But this is how it has to be.

I take it there is no simple way to do this and Zen Cart doesn't offer it by default?

5 Dec 2007, 8:15 PM
#8
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Page that displays all categories

Easy? yet, if you know a bit about php
by default? probably no

5 Dec 2007, 8:25 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Page that displays all categories

It is exactly the function that is built into the home page, but you want it to happen on another page. There is probably a way to activate the function on your page, but I can't help you find it.

5 Dec 2007, 8:35 PM
#10
sccr410 avatar

sccr410

New Zenner

Join Date:
Mar 2005
Posts:
13
Plugin Contributions:
0

Re: Page that displays all categories

It will be easier to make an EZ Page instead - so nevermind.

5 Dec 2007, 9:10 PM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: Page that displays all categories

Yep, an ez-page sounds like a good idea, especially as with a small number of cats you probably won't be changing them often.

14 Dec 2007, 3:44 PM
#12
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Page that displays all categories

I kinda wanted to know the same thing.. I want to put a link to a page which displays all my Zen Cart categories on another webpage. (A link to "All Products" won't work for what I really want) I would prefer not to build a page on the other site with links to the individual category links adding new products would not dynamically update a page like that.. However, if there is a "categories page" that I could link to it would be dynamically updated if new product categories were added..

14 Dec 2007, 4:17 PM
#13
gjh42 avatar

gjh42

Black Belt

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

Re: Page that displays all categories

If you want a "categories page" that is not your home page, you will have to build it. This will take some good PHP skills, but the functionality could be replicated from the home page.

14 Dec 2007, 4:29 PM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: Page that displays all categories

Actually, I got a display of all of my top cats on a regular index page (not my home page) by changing the address bar to read "&cPath=0":

http://www..../index.php?main_page=index&cPath=0

If you can make that call in a link, you may get what you want. I got the breadcrumbs saying "Home", but not my define_main_page formatting.
This kind of call may cause session problems or have other side effects - use with caution.

17 Dec 2007, 9:29 AM
#15
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Page that displays all categories

Browsing through the ZenCart contributions, I ran across this little guy:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=782

Now I had to download WinRar to even open the contribution because it is in a **bz2 **format (sigh). The file is a slightly jumbled mess with lots of strange characters in it. So after looking it over and doing some cleanup, I managed to make sense of the instructions and replacement code. I'm gonna give it a whirl on my test ZenCart.. If this works, I think this might get me EXACTLY what I want..

In case anyone else is interested, I am including my "cleansed" version of the contribution file. All I did was to get rid of the strange characters, and rearranged/edited the contribution instructions for clarity.

The question I have is this.. When I do this, am I correct in assuming that I should follow the override system when replacing the init_sanitize.php file??

17 Dec 2007, 9:46 AM
#16
gjh42 avatar

gjh42

Black Belt

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

Re: Page that displays all categories

Yellow1912 has recently posted a mod to Display all categories+products on one page which may be of interest to you.

17 Dec 2007, 11:14 AM
#17
ox_team avatar

ox_team

New Zenner

Join Date:
Feb 2005
Location:
Belarus
Posts:
52
Plugin Contributions:
1

Re: Page that displays all categories

DivaVocals:

Browsing through the ZenCart contributions, I ran across this little guy:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=782

Now I had to download WinRar to even open the contribution because it is in a **bz2 **format (sigh). The file is a slightly jumbled mess with lots of strange characters in it. So after looking it over and doing some cleanup, I managed to make sense of the instructions and replacement code. I'm gonna give it a whirl on my test ZenCart.. If this works, I think this might get me EXACTLY what I want..

In case anyone else is interested, I am including my "cleansed" version of the contribution file. All I did was to get rid of the strange characters, and rearranged/edited the contribution instructions for clarity.

The question I have is this.. When I do this, am I correct in assuming that I should follow the override system when replacing the init_sanitize.php file??

I wrote this small contribution. Actually it was .tar.bz2 file, but zen-cart site removed second extension, you were reading .tar archive. I reuploaded it as .zip, it will appear after validation.

(Un)installation instructions should be read as they are. You need just copy/delete included files, you shouldn't have overrides/init_sanitize.php file before installing contribution, unless your zen-cart is heavily modified.

It can help you if you set "Default main page URL" to "index" and "Default main page URL parameters" to "cPath=0". But you'll need another zen-cart installation for this, it works only with index page... I'm not sure it is what you are looking for.

btw, bzip2 can be read with free 7-zip archiver.

17 Dec 2007, 4:15 PM
#18
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Page that displays all categories

gjh42:

Yellow1912 has recently posted a mod to Display all categories+products on one page which may be of interest to you.Thanks!!:smile: I took a look at this too.. One of these guys is gonna do the trick.. Just gotta figure out which one will make mama happy!:laugh:

======================================================

ox.team:

I wrote this small contribution. Actually it was .tar.bz2 file, but zen-cart site removed second extension, you were reading .tar archive. I reuploaded it as .zip, it will appear after validation.

(Un)installation instructions should be read as they are. You need just copy/delete included files, you shouldn't have overrides/init_sanitize.php file before installing contribution, unless your zen-cart is heavily modified.

It can help you if you set "Default main page URL" to "index" and "Default main page URL parameters" to "cPath=0". But you'll need another zen-cart installation for this, it works only with index page... I'm not sure it is what you are looking for.

btw, bzip2 can be read with free 7-zip archiver.Thank you SOOOOO much for your response! I only have one small question.. I'm not sure what you mean by "But you'll need another zen-cart installation for this, it works only with index page..." :blink:

17 Dec 2007, 5:33 PM
#19
ox_team avatar

ox_team

New Zenner

Join Date:
Feb 2005
Location:
Belarus
Posts:
52
Plugin Contributions:
1

Re: Page that displays all categories

DivaVocals:

I'm not sure what you mean by "But you'll need another zen-cart installation for this, it works only with index page..." :blink:

I mean it doesn't create any new page, it just forces zen-cart to open specific page instead of standard index.

17 Dec 2007, 6:22 PM
#20
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Page that displays all categories

ox.team:

I mean it doesn't create any new page, it just forces zen-cart to open specific page instead of standard index.Perfect!!:clap: That is exactly what I was looking for.. Thanks again for your response..

Looks like I now have two options that I am gonna evaluate and test.. I am thinking that your solution might be my better bet.. Dunno.. Gonna test both and see.. You are a doll to respond! Thanks again for your help!