2012-05-12 76 views
1

我使用Magento的1.6 並希望CUTOMER電子郵件,優惠券代碼和航運detials添加到銷售訂單電網如何添加客戶的電子郵件在Magento訂購電網1.6

你們可以請告訴我該怎麼做

它試圖利用這個

copy 
app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php 
to 
app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php 

then under the following line 

$collection = Mage::getResourceModel($this->_getCollectionClass()); 

add 

$collection->getSelect()->joinLeft(array('sfo'=>'sales_flat_order'),'sfo.entity_id=main_table.entity_id',array('sfo.customer_email')); 

then in the _prepareColumns() method add 

    $this->addColumn('customer_email', array(
     'header' => Mage::helper('sales')->__('Customer Email'), 
     'index' => 'customer_email', 
     'filter_index' => 'sfo.customer_email', 
    )); 
note. you will need to add a 'filter_index' to all calls to addColumn pointing to main_table.field_name 

,但它不工作

+0

您是否正在使用教程?你可以給它鏈接嗎? –

+0

謝謝我已經這麼做了:D –

回答

相關問題