0
我有一些麻煩讓尋呼機工作,因爲我想在Magento。PHP - Magento - pager.phtml - addAttributeToFilter
的問題是:
我得到一個產品集合,其中我過濾產品只圖像。
但分頁仍顯示沒有應用過濾的產品總數,我該如何解決?
例如: 我有38個產品,其中只有23個產品有圖像關聯,如果我定義顯示9個產品,應該顯示1 | 2 | 3。但它仍顯示1 | 2 | 3 | 4 | 5。
在此先感謝,波紋管是我用於過濾產品的代碼片段。
$_productCollection = clone $this->getLoadedProductCollection()
->clear()
->addAttributeToFilter('small_image', array('neq' => 'no_selection'))
->load();
謝謝,但沒有解決問題。任何其他建議? –
你是我的救星!!!非常感謝你! –
當然,歡迎:) –