If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / add one line of text to product description page -- how do we do that?

add one line of text to product description page -- how do we do that?

Locked

Started by glogo on 23 Dec 2009, 10:56 PM · Views: 1,101

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Dec 2009, 10:56 PM
#1
glogo avatar

glogo

New Zenner

Join Date:
Dec 2009
Location:
fort wayne, indiana
Posts:
11
Plugin Contributions:
0

Post #1 by glogo

using latest version of ZC.
no add-ons.
using apple_zen template, modified.

NEWBIE question.

I just want to do one thing and cannot find it anywhere I have looked in the last 2 hours.

our shoppe http://friendsofthethirdworld.org/deltacomm hosts products that are often one-of-a-kind. would like to have a message appear on certain products at the top of the product page to the effect:

Please always consider that most products offered in our craft shoppe are handmade, not mass-produced. Many are one of a kind. They have their own individual character. Quality and style will vary. A product may not resemble the picture presented here in exact detail, especially with regard to color.

easiest way I think is to define the text somewhere. I decided to put it this way

define('TEXT_PRODUCT_ARTISAN_WARNING','Please always consider that most products offered in our craft shoppe are handmade, not mass-produced. Many are one of a kind. They have their own individual character. Quality and style will vary. A product may not resemble the picture presented here in exact detail, especially with regard to color.');
and placed in the file: document_product_info.php

NOW, where do I have to call that constant? In which file?
Searching now half a day and not able to grok this, where it would go.
also,
easiest would be to have this appear on every page, but we also have books and some other things where it would best not appear.

So, could I do this on a category by category basis?

Thanks for your help in advance and sorry if this issue has already been posted somewhere. I just could not find it after multiple searches.

Gargi:unsure:

23 Dec 2009, 11:49 PM
#2
glogo avatar

glogo

New Zenner

Join Date:
Dec 2009
Location:
fort wayne, indiana
Posts:
11
Plugin Contributions:
0

Post #2 by glogo

OK, :D
was able to add text to the description of the single product by editing this page
/includes/templates/template_default/templates/tpl_product_info_display.php.

but I have 3 general product groups and would like to display the disclaimer on only one of them. Now, where to start...
:dontgetit

And I am thinking, maybe it will be better to edit the custom template file (apple-zen in this case) rather than hack the zen cart default template. right?

G

23 Dec 2009, 11:57 PM
#3
pdxdoug avatar

pdxdoug

Zen Follower

Join Date:
Jan 2008
Location:
Portland, Oregon USA
Posts:
356
Plugin Contributions:
0

Post #3 by pdxdoug

That Software Guy has an article on his website about boilerplating text that you might be able to adapt to what you're doing.

http://www.thatsoftwareguy.com/zencart_php_in_description.html

Doug