Product Rating Stars

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
webmaz
Lieutenant (LT)
Lieutenant (LT)
Posts: 52
Joined: Wed Apr 14, 2010 3:57 pm

Product Rating Stars

Post by webmaz » Mon Feb 09, 2015 2:17 pm

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.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Product Rating Stars

Post by AbleMods » Tue Feb 10, 2015 8:17 am

What version of Able Gold are you using?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

webmaz
Lieutenant (LT)
Lieutenant (LT)
Posts: 52
Joined: Wed Apr 14, 2010 3:57 pm

Re: Product Rating Stars

Post by webmaz » Tue Feb 10, 2015 9:42 am

Able Gold R8

rmaweb
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Fri Sep 10, 2010 9:41 am

Re: Product Rating Stars

Post by rmaweb » Tue Feb 10, 2015 10:43 am

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;
Ryan A.
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3

webmaz
Lieutenant (LT)
Lieutenant (LT)
Posts: 52
Joined: Wed Apr 14, 2010 3:57 pm

Re: Product Rating Stars

Post by webmaz » Tue Feb 10, 2015 1:36 pm

Perfect! That worked great.

Post Reply