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

This page shows you how to install the Rating Control on your search results and category pages.   This will place a 1 to 5 star icon next to the product for products with reviews.

Open your controls/searchtemplatex.ascx file where x is the number of the search template that you use.

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

Then at the point on the page where you want the stars icon to show, insert this code (all one line):
  
<StokesWeb:ReviewRating id="reviewrating" ProductID='<%# DataBinder.Eval(Container.DataItem,"ProductID") %>' runat="server" />


Save the file.

 
 
 Next Step: Detail Page

 See Also: Customization - Review Rating Control


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