0
我的代碼存在問題,目前它正在加載產品但未接受訂單過濾器。這是我的。將不勝感激任何幫助。檢索產品和排序Magento
$_productCollection->clear()
->setOrder('entity_id', 'DESC')
->setPage($_GET['pageNo'],12)
->load()
;
我的代碼存在問題,目前它正在加載產品但未接受訂單過濾器。這是我的。將不勝感激任何幫助。檢索產品和排序Magento
$_productCollection->clear()
->setOrder('entity_id', 'DESC')
->setPage($_GET['pageNo'],12)
->load()
;
你好檢查以下代碼
$集合=法師:: getModel( '目錄/產品') - > getCollection();
$ collection-> setOrder('entity_id','DESC');
$ products = $ collection-> load();