VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandomatyas on April 18, 2016, 09:40:12 AM

Title: Rating display error on productdetails page
Post by: sandomatyas on April 18, 2016, 09:40:12 AM
I have a product which has two reviews with rating. The first one is unpublished so only the second one is visible in the reviews template. That's fine.
But there is a 'rating' sublayout which displays a dummy rating box above the addtocart area.
I checked the product model and there are few lines whitch get the rating in getProduct() function. I think it should be the average of all the published ratings but it gets only one record from the db. In my case this is the unpublished one so it thinks that my product doesn't have any published rating. I also checked the getRatingByProduct() function in VirtueMartModelRatings class and it also loads only one row from the #__virtuemart_ratings table.
Could you fix this please? :)
Title: Re: Rating display error on productdetails page
Post by: Milbo on April 19, 2016, 09:03:15 AM
Already fixed in the membership version (4 weeks ago), but very good observated.