Try the Demo

Magento Forum

   
Get User name using user_id from cutom admin area grid
 
Hyder Ali
Jr. Member
 
Total Posts:  1
Joined:  2013-02-19
 

Need to get username using user_id from admin grid.

$this->addColumn(’user_id’, array(
‘header’ => Mage::helper(’affiliate’)->__(’Name’),
‘align’ =>’left’,
‘index’ => ‘user_id’,
));

Please help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Guru
 
Avatar
Total Posts:  620
Joined:  2011-07-03
 

In which grid exactly do you want to add this column? When you have the user_id in this column but want the name, you have to add a own renderer which gets the id and returns the name.

example: http://inchoo.net/ecommerce/magento/how-to-add-custom-renderer-for-a-custom-column-in-magento-grid/

 Signature 

Magento Freelancer.

Need an extension? Feel free to contact me!

Web: http://www.sig-tec.de
E-Mail:
Skype: sig-tec
Xing: https://www.xing.com/profile/Siegfried_Schmitz2
Profil auf freelance.de
Profil auf freelancermap.de

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top