Author Topic: Rating display error on productdetails page  (Read 657 times)


  • Jr. Member
  • **
  • Posts: 365
Rating display error on productdetails page
« 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? :)


  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10273
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Rating display error on productdetails page
« Reply #1 on: April 19, 2016, 09:03:15 am »
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: