Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php if($_product->getRatingSummary()): ?>
  2. <?php echo $this->getReviewsSummaryHtml($_product) ?>
  3. <?php endif; ?>
  4.  
  5. <?php if($_product->getRatingSummary()) {
  6. $reviewCount++;
  7. echo $this->getReviewsSummaryHtml($_product) ?>
  8. }?>
  9.  
  10. <?php
  11. $reviews = array(); // this will be populated with the output for products with reviews
  12.  
  13. foreach ($_productCollection as $_product) {
  14. if($_product->getRatingSummary())
  15. $reviews[] = $this->getReviewsSummaryHtml($_product, 'short');
  16. }
  17. $reviewCount = count($reviews);
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement