SHARE
TWEET

Untitled

a guest Jun 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top