magento-如何添加-刪除add to wishlist 和add to compare

打開

app\design\frontend\default\moncler\template\catalog\product\list.phtml

這個文件是進行產品展示的。有兩種模式,一種爲Grid,另一種爲List。

在文件中加入或者註釋掉這段:

<?php if ($this->helper('wishlist')->isAllow()&& $this->getAddToCompareUrl($_product)) : ?>

<ul class="add-to-links">

<?php if ($this->helper('wishlist')->isAllow()): ?>

<!--<li><a href="<?phpecho $this->helper('wishlist')->getAddUrl($_product) ?>"class="link-wishlist"><?php echo $this->__('Add toWishlist') ?></a></li> -->

<?php endif;?>

<?php if($_compareUrl=$this->getAddToCompareUrl($_product)):?>

<!--<li><spanclass="separator">|</span> <a href="<?php echo$_compareUrl ?>" class="link-compare"><?php echo$this->__('Add to Compare') ?></a></li> -->

<?php endif; ?>

</ul>

<?php endif; ?>

首頁科技福州
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章