0
protected function _prepareCollection()
{
$collection = Mage::getResourceModel($this->_getCollectionClass());
$collection->getSelect()->join('sales_flat_order_address', 'main_table.entity_id = sales_flat_order_address.parent_id',array('company'));
$this->setCollection($collection);
}
我使用上面的代碼在訂單列表網格上添加公司字段。 但它顯示「項目(Mage_Sales_Model_Order)具有相同的ID‘1038’已經存在」Magento Grid添加新列
其工作正常,但現在我有一個與發票網格小問題,我已經在下面的答案中提到的細節。 – p4pravin 2012-04-20 04:10:50