News:

Support the VirtueMart project and become a member

Main Menu

Rating display error on productdetails page

Started by sandomatyas, April 18, 2016, 09:40:12 AM

Previous topic - Next topic

sandomatyas

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? :)

Milbo

Already fixed in the membership version (4 weeks ago), but very good observated.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/