• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

globalweb9
#1 Posted : Friday, October 19, 2007 12:16:51 PM(UTC)
globalweb9

Rank: Member

Joined: 7/26/2004(UTC)
Posts: 155
United States

we have a project that is requiring an additional text block to display on the product page (above product name), and the obvious thing to me is to utilize the short description field for this, since data fields already exist, etc. I've tried adding the short description code-behind found on the detail list category template to the product page but no luck.

anyone know the exact code I need to add to the product page to achieve this?
---
Randy Armbrecht
RichWeb, Inc.
Global Web Solutions
http://richweb.com
http://globalweb.net
Marcus
#2 Posted : Friday, October 19, 2007 2:24:35 PM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

1) Add a label control to the page where you want the description to display:

Code:
<asp:Label id="lblShort" runat="server" />


2) In the code behind modify the PopulateProductInfo() method and insert this line:

Change this line:
Code:
Me.lblDescription.Text = Me.LocalProduct.LongDescription


To these lines:
Code:
Me.lblDescription.Text = Me.LocalProduct.LongDescription
Me.lblShort.Text = Me.LocalProduct.ShortDescription
globalweb9
#3 Posted : Friday, October 19, 2007 2:31:48 PM(UTC)
globalweb9

Rank: Member

Joined: 7/26/2004(UTC)
Posts: 155
United States

thank you Marcus!!
---
Randy Armbrecht
RichWeb, Inc.
Global Web Solutions
http://richweb.com
http://globalweb.net
globalweb9
#4 Posted : Monday, October 22, 2007 8:34:10 AM(UTC)
globalweb9

Rank: Member

Joined: 7/26/2004(UTC)
Posts: 155
United States

worked like a charm!
---
Randy Armbrecht
RichWeb, Inc.
Global Web Solutions
http://richweb.com
http://globalweb.net
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012