My website uses version 1.7 and in fact I would like to add a column in the view of commandes.my config file:
<?xml version="1.0"?>
<config>
<modules>
<Digitgold_AddColumnInfoPaiement>
<version>1.0.0</version>
</Digitgold_AddColumnInfoPaiement>
</modules>
<global>
<blocks>
<adminhtml>
<rewrite>
<sales_order_grid>Digitgold_AddColumnInfoPaiement_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
</rewrite>
</adminhtml>
</blocks>
</global>
</config>
and this is my class :
class Digitgold_AddColumnInfoPaiement_Adminhtml_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid
{
public function __construct()
{
parent::__construct();
$this->setId('sales_order_grid');
$this->setUseAjax(true);
$this->setDefaultSort('created_at');
$this->setDefaultDir('DESC');
$this->setSaveParametersInSession(true);
}
protected function _prepareColumns()
{
$this->addColumn('payement', array(
'header'=> Mage::helper('sales')->__('Mode de Paiement'),
'width' => '120px',
'index' => 'payement',
));
}
}
the problem is header appears only of the admin and below is all white.