2013-08-04 39 views

回答

4

使用下面的代碼是從我結束工作得到所有客戶添加的願望清單的總數爲特定prodduct

$wishlist = Mage::getModel('wishlist/item')->getCollection(); 
    $wishlist->getSelect()     
        ->where('main_table.product_id = '.$_product->getId()); 
    echo $count = $wishlist->count(); 

    exit; 
+0

運行完美!非常感謝你!! – Luis

相關問題