In Magento 2 product view page I want to do following things...
- Check if product has 0 or more rating.
- Get an average rating of product rating wise
For e.g.
Price : 2.5/5.0
Quality : 4.5/ 5.0
Rating : 4.9/5.0
So far I got following
echo $block->getReviewsSummaryHtml($_product,"sort",true);
From above I'm getting average rating but I want to extract more information from it like ratingValue and want more details...so how can I achieve that?