我正在使用malowo网格排序选项,如bellow
我想像bellow
一样修改它Designer,Price是属性,因此可以添加列表但是如何使其升序和降序排序。
我试过这个
$this->getOrderUrl('mywishlist', 'asc')
但不行。
$tbl_wishlist_item = Mage::getSingleton('core/resource')->getTableName('wishlist_item');
$tbl_wishlist = Mage::getSingleton('core/resource')->getTableName('wishlist');
$tbl_catindex = Mage::getSingleton('core/resource')->getTableName('catalog_category_product_index');
$tbl_price_index = Mage::getSingleton('core/resource')->getTableName('catalog_product_index_price');
$collection = Mage::getResourceModel('catalog/product_collection');
$collection->getSelect()
->join(array('t2' => $tbl_wishlist_item),'e.entity_id = t2.product_id','*')
->join(array('t3' => $tbl_wishlist),'t2.wishlist_id = t3.wishlist_id','*')
->join(array('t4' => $tbl_catindex),'e.entity_id = t4.product_id','*')
->where('t4.category_id = 3 AND t3.customer_id='.$customer_id);
我尝试了这个系列,它对产品的正确数量进行了排序。但是没有显示任何产品对象,如名称,图像,价格等。问题是什么。