VirtueMart Forum

VirtueMart 2 + 3 => 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.