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
Showing posts with label customer Grid. Show all posts
Showing posts with label customer Grid. Show all posts

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.

 

Copyright @ 2017 HKBlog.