2013-02-25 54 views

回答

1

這應該工作:

/** @var $orderCollection Mage_Sales_Model_Resource_Order_Collection */ 
$orderCollection = Mage::getResourceModel('sales/order_collection'); 
$orderCollection->join(array('p' => 'sales/order_payment'), 'main_table.entity_id=p.parent_id') 
       ->addFieldToFilter('p.method', 'some method') 
       ->addFieldToFilter('main_table.status', 'some status'); 
+0

這給了我一個例外:無法檢索實體配置:銷售/陣列」在app \ Mage.php:550個 任何想法? – user1856596 2013-02-26 09:40:06

+0

我正在使用Magento 1.4,也許這有助於? – user1856596 2013-02-26 09:46:12

+0

我解決了,謝謝! – user1856596 2013-02-26 10:33:31