我有这个代码从Magento选择最畅销的产品:
$productCollection = Mage::getResourceModel('reports/product_collection')
->addOrderedQty($startTime, $currentTime)
->addAttributeToSelect('*')
->setStoreId($storeId)
->addStoreFilter($storeId)
->setOrder('ordered_qty', 'desc')
->setPageSize($this->limit());
}
Run Code Online (Sandbox Code Playgroud)
它工作正常,直到我在后端设置"使用平面目录产品"为是.有没有办法告诉magento不使用平台,而是使用EAV?
谁能帮我这个.