爲什麼我的評分有重複值?下面是什麼導致我在Magento中的評分重複?
是我view.phtml樣子。我使用的Magento「版1.6.0.0」
<?php if($this->getRating() && $this->getRating()->getSize()): ?>
<h3><?php echo $this->__('Product Rating:') ?></h3>
<table class="ratings-table">
<?php foreach ($this->getRating() as $_rating): ?>
<?php if($_rating->getPercent()): ?>
<tr>
<th><?php echo $this->__($this->escapeHtml($_rating->getRatingCode())) ?></th>
<td>
<div class="rating-box">
<div class="rating" style="width:<?php echo ceil($_rating->getPercent()) ?>%;"></div>
</div>
</td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</table>
</dl>
<?php endif; ?>
感謝您的回覆。但我認爲它沒有任何重複配置http://i42.tinypic.com/29y03ue.jpg – Pennf0lio 2012-03-12 19:48:56