Zen Cart Logo
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 / I want to add text under the attributes on the product detail page.

I want to add text under the attributes on the product detail page.

Locked
This thread is locked. New replies are disabled.
31 Jan 2008, 11:10 PM
#1
illum avatar

illum

New Zenner

Join Date:
Jan 2008
Posts:
25
Plugin Contributions:
0

Post #1 by illum

I basically want to explain the upload attribute with a text explanation underneath it. Which page would I have to edit the code in order to do that?

This is my first store with zencart, so I am still learning. Familiar with Joomla.

Example page here:

http://www.godlikeprinting.com/printshop/index.php?main_page=product_info&cPath=1_3&products_id=2

31 Jan 2008, 11:26 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

I did something similar for a client recently. It was slightly different in that she needed an explanation for each value rather than for the option as a whole. But the approach should still work.

I added a new text field to the product_options_values table, you'd add it to the product_options table. I then edited the modules/attributes.php file to read the database and output the new description.

The trickiest bit for me was entering and maintaining the data. For me the new field was too big to fit on the existing Admin page without blowing the layout apart, so I had to create a new Admin page to maintain it. But for what you want, it should be possible to add it to the existing admin/options_name_manager.php page by extending the form where option names are currently added and maintained.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)