Customer Reviews Add-on by Stokes Web Development
Detail Page
Previous Top Next

This page shows you how to install the Summary Control and List Control on your product detail page.   The summary control is placed at the top of the page near the product image.  It shows the products rating and has a link to the review list and write a review sections.  The list control is the main part of the application and shows the actual reviews as well as handles writing new ones.

To install both controls, open your controls/productdetailx.ascx file where x is the number of the detail template that you use.

At the very top of the page before any text add the following 2 lines:
  
<%@ Register TagPrefix="StokesWeb" TagName="ReviewSummary" Src="ReviewSummary.ascx" %>
<%@ Register TagPrefix="StokesWeb" TagName="ReviewList" Src="ReviewList.ascx" %>

Then at the point on the page where you want the Review Summary control to show, insert this code (all one line):
  
<StokesWeb:ReviewSummary id="reviewsummary" ProductID='<%# DataBinder.Eval(Product,"ProductID") %>' runat="server" />

Then at the point on the page where you want the Review List control to show, insert this code (all one line):
  
<StokesWeb:ReviewList id="reviewlist" PageSize="5" ProductID='<%# DataBinder.Eval(Product,"ProductID") %>' runat="server" />


Save the file.

 
 
 Next Step: Product Bot Pages

 See Also:  Customization - Review Summary Control, Customization - Review List Control


Copyright © 2008 by Stokes Web Development.  All Rights Reserved.