Copiez le fichier : /app/code/core/Mage/Adminhtml/Block/Sales/Grid.php dans le répertoire local.
Modifier la méthode _prepareCollection() de la manière suivante :
$collection = Mage::getResourceModel($this->_getCollectionClass());
$collection->getSelect()
->join(
‘mag_customer_entity’,
‘main_table.customer_id = mag_customer_entity.entity_id’, array(‘customer_mail’ => ‘email’));
$this->setCollection($collection);
return parent::_prepareCollection();
Puis ajoutez la colonne dans la fonction _prepareColumns()
$this->addColumn(‘thumbnail’, array(
‘header’ => Mage::helper(‘Sales’)->__(‘Email’),
‘width’ => ’100px’,
‘index’ => ‘customer_name’,
‘type’ => ‘text’,
));
