Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

Add Company column in customer Grid Magento Backend

Add Company column in customer Grid Magento Backend
Add Company column in customer Grid Magento

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.

0 comments:

Post a Comment

 

Copyright @ 2016 HKblog.