在magento网店中,如果一个产品没有客户评论信息,那么产品列表页面是不显示产品的评论信息的,也就不会显示add to review

我们现在要的是把这个给调出来

首先找到文件template/catalog/product/list.phtml

找到代码:

 <?php if($_product->getRatingSummary()): ?>

把这个if语句去掉,list和grid,都去掉

然后到template/review/helper/summary.phtml文件,找到代码:

<?php if ($this->getReviewsCount()): ?>

<?php elseif ($this->getDisplayIfEmpty()): ?>
    <p class="no-rating"><a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
<?php endif; ?>

都去掉

然后刷新缓存,保存,产品列表页面就会出现review toolbar!