I added customer mobile no while customer register in the registration page.

The created mobile no is attribute stored in eav_attribute table with entity_type_id 1.

I tried to add these field in the admin grid view on the customer page.

I edit the grid.php file and adding these lines to grid.php

$this->addColumn('Telephone', array(
        'header'    => Mage::helper('customer')->__('Telephone'),
        'width'     => '100',
        'index'     => 'billing_telephone'
$this->addColumn('mobile', array(
        'header'    => Mage::helper('customer')->__('Mobile'),
        'width'     => '100',
        'index'     => 'mobile'

The label is shown in the view after Telephone, but the value for the mobile no is not retrieved in the grid. How can i retrieve the value of mobile number in the grid?

1 Answer 1


Look for _prepareCollection() method in customer grid class Mage_Adminhtml_Block_Customer_Grid and add ->addAttributeToSelect('mobile')

Also, you shouldn't edit core files directly.

  • Thank you it's work, yeah i know directly edit the core file is not good practice, How can i perform this task?
    – Mujahidh
    Commented Dec 28, 2014 at 13:28
  • Google override magento block :) Commented Dec 29, 2014 at 2:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.