Add Company column in customer Grid Magento Backend
Add Company column in customer Grid Magento Backend
Go to /app/code/core/Mage/Adminhtml/Block/Customer/Grid.php
in _prepareCollection() add following file
->joinAttribute('billing_company', 'customer_address/company', 'default_billing', null, 'left')
and in _prepareColumns() add following code,
$this->addColumn('company', array(
'header' => Mage::helper('customer')->__('Company'),
'index' => 'billing_company'
));
Note: its the best practise that dont make any changes in your core file. overwrite your php file in local and then make any changes.
Please support us, Like us on Facebook.
Subscribe to:
Post Comments (Atom)
Wow! The best and easiest solution I have found. Thank you for sharing your knowledge.
ReplyDelete