Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Having different product info display pages

Having different product info display pages

Views: 819

Results 1 to 6 of 6
8 Jun 2012, 5:43 AM
#1
baron5 avatar

baron5

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

Having different product info display pages

Hey guys, I had a search through google and the forum but could not really find anything to answer my question. I was wondering if there is an easy way to have different product info pages for different products. The reason i need this is because as you can see on my site I have shirts which include a size table under the add cart button but i do not want this on my wristbands page. Is there a way to only have some elements of the product info page on certain products?

8 Jun 2012, 7:17 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Having different product info display pages

Strictly speaking, that's what product-types are for.

But you could also customize your tpl_product_display.php template to show certain additional content based on specialized criteria for which you write the code.

9 Jun 2012, 10:37 AM
#3
baron5 avatar

baron5

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

Re: Having different product info display pages

Sorry I don't quite understand the product-types, I have two product types on my site, Shirts and Wristbands, but they seems to share the same page template, my question is, is there a way to have a tpl_product display for each product type so my shirts can have a different page template from the wristbands?

EDIT: I think i understand now, this is that drop down menu in the categories/products page. I guess i can just use the documents product for say wristbands and use general for my shirts, is the correct way of using this feature?

9 Jun 2012, 4:40 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Having different product info display pages

Not really.

You are right that you would choose the alternate product-type from the pulldown list before creating the product. So, yes, that's correct insomuch as you're understanding that concept.

But using Document-Product will trigger things in ZC that are specific to that product-type's functionality which will probably not be suitable to what you're wanting to accomplish with your products, since your products aren't "documents" and don't need the special recategorization etc.

Creating a new product-type requires some programming and setup.
That's why I also suggested you might just want to alter your template to display the needed info when certain criteria are met. Granted, that may require some minimal programming too, but isn't as far-reaching as building a product-type.

9 Jun 2012, 10:58 PM
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Having different product info display pages

If I understand the OP's question, it sounds like he could turn on all the things he wants in whatever category needs all of it, then use a category-specific stylesheet to set some of those things to "display: none;" or "visibility: hidden;" in the other categories.

Rob

9 Jun 2012, 11:18 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Having different product info display pages

Yes, that's a possibility too. Keep in mind that if the "sizing chart" is an image it would still be downloaded in those cases, even when not displayed, and if it's a large image then it will needlessly slow down other pages.