Jump to content

Review rating count


Alex.1

Recommended Posts

Hi Alejandro, 

I had a look at the review count and realized that only the 1,2,3,4 and 5 values are considered. 

In my setup I have chosen the 0.5 increment but the half values aren't counted.  From what I see the .5 rating is rounding to the next value.  3.5 stars will be counted as a 4 stars rating. 

 

In the example below there are 3 reviews in the frontend from which 1 is 3.5stars, 1 is a 4.5stars and 1 is a 5stars but the count shows it like 1review of 4stars and 2 reviews of 5stars. 

"ReviewRatingCount" => array:5 [▼
    5 => array:2 [▼
      "rating_range" => 5
      "count" => "2"
    ]
    4 => array:2 [▼
      "rating_range" => 4
      "count" => "1"
    ]
    3 => array:2 [▼
      "rating_range" => 3
      "count" => 0
    ]
    2 => array:2 [▼
      "rating_range" => 2
      "count" => 0
    ]
    1 => array:2 [▼
      "rating_range" => 1
      "count" => 0
    ]

I just want to double check if there is some setting (that I missed) or a simple approach to get the .5 values somehow.  

No big deal if it's not possible for now. 

 

Thank you...

 

Link to comment
×
×
  • Create New...