Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Different product info display page for each category

Different product info display page for each category

Locked

Views: 2,349

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Sep 2008, 7:32 PM
#1
pjb923 avatar

pjb923

Zen Follower

Join Date:
Jan 2005
Location:
NY
Posts:
135
Plugin Contributions:
0

Different product info display page for each category

I need to add a link to a size chart popup to my site and I thought the best place to do that was in tpl_product_info_display.php.

Depending on what category the product is in, the size chart will be different. There is one for clothing and another for shoes. I thought the best way to accomplish this would be to modify the product info display based on the product category.

Does anyone know if this is possible?

Or if anyone has another simpler method, I am open to suggestions.

15 Sep 2008, 8:16 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Different product info display page for each category

You can add the link to your product descriptions, so each product can link to whatever chart you want.

15 Sep 2008, 8:32 PM
#3
pjb923 avatar

pjb923

Zen Follower

Join Date:
Jan 2005
Location:
NY
Posts:
135
Plugin Contributions:
0

Re: Different product info display page for each category

gjh42:

You can add the link to your product descriptions, so each product can link to whatever chart you want.

I was leaving that option as a last resort because I don't want to edit over 100 product descriptions.

15 Sep 2008, 8:58 PM
#4
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Different product info display page for each category

You can use product-type, remember each product type uses a different template.

16 Sep 2008, 2:52 AM
#5
pjb923 avatar

pjb923

Zen Follower

Join Date:
Jan 2005
Location:
NY
Posts:
135
Plugin Contributions:
0

Re: Different product info display page for each category

Thanks yellow, that did the trick.

I have set up over a dozen carts and have never used different product types. It's amazing how much I still have to learn about Zen.

17 Sep 2008, 4:45 AM
#6
alma1 avatar

alma1

New Zenner

Join Date:
Mar 2008
Location:
California
Posts:
81
Plugin Contributions:
0

Re: Different product info display page for each category

gjh42:

You can add the link to your product descriptions, so each product can link to whatever chart you want. hi - I have a Zen Cart 101 question. I need to do the same thing but I'm as green as they get. I think I can create the link in the product description but where is the size chart created to link to?? thank you.

17 Sep 2008, 6:33 AM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Different product info display page for each category

Wherever you put it.

You ccould make a standalone HTML page if you wanted to, or you can use EZ-Pages (see the tutorials) to make the HTML chart inside Zen Cart's file structure. Just make the link point to wherever the chart is.