| 
	如何获得magento用户对指定产品wishlist收藏产品的数量呢, 
	如果能显示在产品页上,可以增加用户对产品的信心。 
	在template/catalog/product/view/addto.phtml中在合适的位置中插入以下代码: 
	$wishlist = Mage::getModel('wishlist/item')->getCollection(); 
	  $wishlist->getSelect() 
	                  ->join(array('t2' => 'wishlist'), 
	                   'main_table.wishlist_id = t2.wishlist_id', 
	                   array('wishlist_id')) 
	                   ->where('main_table.product_id = '.$_product->getId()); 
	$tempwishlist=""; 
	if($wishlist->count()>0)   $tempwishlist='('.$wishlist->count().')'; 
	其中$tempwishlist就是收藏数 
	<?php echo $this->__('Add to Wishlist').$tempwishlist ?> 
	即可以Add to Wishlist文字旁显示出用户的收藏情况。 
	这个语法,也是找了很长时间,经验证后正常的。(责任编辑:最模板) | 



 ecshop仿凡客颜色选择功能
							人气:762
							ecshop仿凡客颜色选择功能
							人气:762
						 ecshop仿聚美优品加团购网
							人气:576
							ecshop仿聚美优品加团购网
							人气:576
						 shopex新蛋模板
							人气:449
							shopex新蛋模板
							人气:449
						 织梦dedecms绿色节能科技公
							人气:1349
							织梦dedecms绿色节能科技公
							人气:1349
						 zencart羽绒服服装模板
							人气:2116
							zencart羽绒服服装模板
							人气:2116
						 ecshop仿好乐买模板|ecshop鞋
							人气:712
							ecshop仿好乐买模板|ecshop鞋
							人气:712