1

I want to show customer reviews of product on category page.How can i do? please help

5
  • Hi Muhammad, welcome to Magento SE, Do you need avg review rating on category page for every product? where you will show all reviews on category page? Commented Nov 15, 2018 at 13:29
  • i just want reviews to of product related that are in category and show there reviews on category page Commented Nov 15, 2018 at 13:31
  • well this is bit confusing, I mean where you will show all the reviews of all products on category page. Commented Nov 15, 2018 at 13:37
  • webkul.com/blog/get-product-reviews-product-sku-magento-2 check this link you will get all reviews of a product Commented Nov 15, 2018 at 13:39
  • can you please guide me how i create module for this. Commented Nov 15, 2018 at 13:54

1 Answer 1

1

Try to add this block in your category template :

// .yourThemePath./templates/product/list.phtml
<div class="product details product-item-details">
    [...]
    // Reviews Stars
    <div class="product-list-rating-stars">
        <?php echo $block->getReviewsSummaryHtml($_product, false, true); ?>
    </div>
</div>

If the stars are showing and it looks fine from your part , do some css styling .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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