How to display product description with featuredproductsgrid

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
gio50000
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Mon Feb 18, 2008 12:51 pm
Location: Orlando, FL
Contact:

How to display product description with featuredproductsgrid

Post by gio50000 » Thu Jun 25, 2009 9:52 am

I would like to add the product description to the featured products listing on my home page. With featuredprodctsgrid.aspx what Eval field do I use and how can I limit the content it to 150 characters? Visit http://www.airshowshop.com for a reference if needed.

Thank you,
Gio
Thank you,
Gio

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How to display product description with featuredproductsgrid

Post by mazhar » Thu Jun 25, 2009 10:06 am

You need to make use of Eval("Description"). Read following thread all you need is to replace Summary with Description in that thread
viewtopic.php?f=44&t=8704

User avatar
gio50000
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Mon Feb 18, 2008 12:51 pm
Location: Orlando, FL
Contact:

Re: How to display product description with featuredproductsgrid

Post by gio50000 » Thu Jun 25, 2009 11:51 am

@mazhr - that works but how can I only display the first 100 characters?

Gio
Thank you,
Gio

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How to display product description with featuredproductsgrid

Post by mazhar » Fri Jun 26, 2009 8:50 am

Try following

Code: Select all

Eval("Description").ToString().Substring(0,100)
instead of

Code: Select all

Eval("Description")

Post Reply