Studyon Minte9.com
Magento




Admin add columns grid



# app/code/local/Mage/Adminhtml/Block/Customer/Edit/Tab/Orders.php

	protected function _prepareCollection()
	{
		...
		
		$collection->addAttributeToSelect('status')
		
		...
	}

	protected function _prepareColumns()
	{
		...
		
		$this->addColumn('status', array(
		    'header' => Mage::helper('sales')->__('Status'),
		    'index' => 'status',
		    'type'  => 'options',
		    'width' => '100px',
		    'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
		));

		...
	}


http://www.atwix.com/magento/customize-orders-grid