The image: the first product seems to have zero reviews yet it still shows up as gray icons. I want it like that. If idon't get support then I think I'll have to spend more time and figure it out, I've spent like two days already

rating-review.png (63.23 KiB) Viewed 1165 times
Code: Select all
<?php if ($product['rating']) { ?>
<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
<?php } ?>
Code: Select all
<?php if ($product['rating']) { ?>
<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
<?php }else{ ?>
<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="0 reviews." /></div>
<?php } ?>
Code: Select all
<?php if ($product['rating']) { ?>
<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
<?php } ?>
Code: Select all
<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
kaos jersey, jersey bola, baju bola, baju bola terbaru, baju bola murah
Users browsing this forum: Google [Bot] and 13 guests