HomeHome Product Discus... Product Discus...SmithCartSmithCartHow to show the product summary field on the product listing pageHow to show the product summary field on the product listing page
Previous
 
Next
New Post
7/1/2010 2:34 PM
 

To show the product summary field on the product listing page do the following:

  1. Open up the productslist.ascx page located in \desktopmodules\smith.buynow folder
  2. On line 62 of the productslist.ascx change the visible property from false to true as highlighted in yellow below
  3. Save your changes

<tr runat="server" visible="false">

<td>

<asp:Label runat="server" ID="lblSummary" Text='<%# DataBinder.Eval(Container.DataItem, "Summary") %>' style="float:left; text-align:left;"/>

</td>

</tr>

In the next version we are going to add a check in the cart settings to show/hide the product summary field on the product listing page to make it easier to do this. Fyi, on the product details page there is already a checkbox to show/hide the product summary field.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
7/8/2010 3:32 AM
 

Thanks Scott. I have an additional question regarding this - is it possible to truncate the text to a set number of characters?

 
New Post
7/8/2010 10:44 AM
 

Add a left function around the databinder.eval and specify the number of characters like this:

<asp:Label runat="server" ID="lblSummary" Text='<%# LEFT(DataBinder.Eval(Container.DataItem, "Summary"),15) %>' style="float:left; text-align:left;"/>


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
7/9/2010 1:42 AM
 

Hi

When I do this, I get a module load warning when I try and access the page?

Here is my code :

<asp:Label runat="server" ID="lblSummary" Text='<%# LEFT(DataBinder.Eval(Container.DataItem, "Summary"),150)%>' style="float:left; text-align:left;"/>

Thanks.

 
New Post
7/9/2010 11:06 AM
 

Try something like this:

DataBinder.Eval(Container.DataItem, "VoucherNote").ToString().Substring(0,20) :


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartHow to show the product summary field on the product listing pageHow to show the product summary field on the product listing page