Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的代码有问题,目前它正在加载产品但不接受订单过滤器。这就是我所拥有的。将不胜感激任何帮助。
$_productCollection->clear() ->setOrder('entity_id', 'DESC') ->setPage($_GET['pageNo'],12) ->load() ;
你好检查下面的代码
$collection = Mage::getModel('目录/产品')->getCollection();
$collection->setOrder('entity_id', 'DESC');
$products = $collection->load();