logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Wednesday, May 4, 2022 9:49:52 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
The product reviews panel listing existing reviews does not properly render the review rating for each review. While star-count is accurate, every review still says 'No Rating' after the stars.

The problem is the reference to the partial view _ProductRatingStars only passes the Model.ReviewRating and does not also pass Model.TotalReviews.

In \Views\Product\_ProductReviewsPanel.cshtml change:
Code:

@Html.Action("_ProductRatingStars", "Product", new { Rating = review.ReviewRating })


to

Code:

@Html.Action("_ProductRatingStars", "Product", new { Rating = review.ReviewRating, TotalReviews = Model.TotalReviews })


This will resolve the issue

Capture.JPG (32kb) downloaded 0 time(s).
thanks 1 user thanked Joe Payne2 for this useful post.
nadeem on 5/5/2022(UTC)

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

nadeem  
#2 Posted : Thursday, May 5, 2022 9:29:18 AM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 109

Thanks: 17 times
Was thanked: 18 time(s) in 18 post(s)
Hi Joe,

The bug is confirmed and reported. Thanks for letting us know!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.