type="catalog/product_list" catalog/product/list.phtml //得到当前分类下的产品集合 $_productCollection=$this->getLoadedProductCollection(); //得到帮助类 $_helper = $this->helper('catalog/output'); //得到分页导航栏目 $this->getToolbarHtml() //得到详细页面地址。 $_product->getProductUrl() //得到压缩图片。 $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); //得到产品价格 $this->getPriceHtml($_product, true) //进入购物车页面。 //得到short评论 $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') //加入收藏 wishlist <?php if ($this->helper('wishlist')->isAllow()) : ?>
<?php echo $this->__('Add to Wishlist') ?> <?php endif; ?> //加入比较 compareUrl <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
<?php echo $this->__('Add to Compare') ?> <?php endif; ?> *************************************************************************************************************** //出现的$_product->语句 //得到产品的详细信息地址 $_product->getProductUrl() //判断是否有评分信息 $_product->getRatingSummary() //判断是否可以卖 $_product->isSaleable() //得到该产品的short评论 $_product->getShortDescription()
产品列表页面函数的整理!
最新推荐文章于 2019-04-22 16:33:31 发布