I have upgrade Magento version from 2.3.1 to 2.3.3 and now I am getting an error on the product

Fatal error: Uncaught Error: Call to a member function getReviewsCount()

My code for getting review count

$_product = $block->getProduct();
$reviewCount = $_product->getRatingSummary()->getReviewsCount();

in one custom module, I have got product review and now it's said that getReviewsCount() function is not found anyone has an idea how to get product review count in 2.3.3


Check this file /vendor/magento/module-review/Block/Product/ReviewRenderer.php Line no. 131

Try This :-


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.