Page 1 of 1

Product Rating Stars

Posted: Mon Feb 09, 2015 2:17 pm
by webmaz
I'm trying to display product review stars higher up on the product page.
I've used ProductRatingStars ConLib Utility but it displays "No Rating" for all products, even products with reviews.

I added this reference to ProductPage.ascx:

Code: Select all

<%@ Register src="~/ConLib/Utility/ProductRatingStars.ascx" tagname="ProductRatingStars" tagprefix="uc1" %>
...
<uc1:ProductRatingStars ShowRatingText="True" Product="" runat="server" />
Do I need to indicate the product? The product should be the current product page.

I'm looking for something similar to the Disney Store.
The rating is below the price and above the subtitle "Carry the fun with you".
http://www.disneystore.com/bags-totes-a ... 0/1000291/
The full reviews are listed further down on the page. A link to all reviews is preferred, but optional.

Re: Product Rating Stars

Posted: Tue Feb 10, 2015 8:17 am
by AbleMods
What version of Able Gold are you using?

Re: Product Rating Stars

Posted: Tue Feb 10, 2015 9:42 am
by webmaz
Able Gold R8

Re: Product Rating Stars

Posted: Tue Feb 10, 2015 10:43 am
by rmaweb
Hello webmaz,

I believe to do what your looking for, you would need to add the

Code: Select all

<%@ Register src="~/ConLib/Utility/ProductRatingStars.ascx" tagname="ProductRatingStars" tagprefix="uc1" %>
to the top of the ProductPage.ascx file. Then in the file where you want the stars to display add:
<uc1:ProductRatingStars ID="ProductRatingStars" runat="server" />

Then in ProductPage.ascx.cs in inside of Page_PreRender put the following code

Code: Select all

ProductRatingStars.Rating = _Product.Rating;

Re: Product Rating Stars

Posted: Tue Feb 10, 2015 1:36 pm
by webmaz
Perfect! That worked great.