0
我嘗試理清產品的名稱與created_at和集團上市的工作,這就是爲什麼我在功能上添加Magento的工具欄不具有自定義排序代碼
$this->_productCollection->addAttributeToSort('created_at', 'desc')
->getSelect()->group('name');;
return $this->_productCollection;
前_getProductCollection()
//app/code/local/Mage/Catalog/Block/Product/list.php
排序工作正常,但分頁和項目數量顯示錯誤。
它看起來只有1個產品,但我有很多產品在這裏,我沒有改變任何工具欄頁面。