Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7163267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:52:29+00:00 2026-05-28T13:52:29+00:00

can anybody help me with this ? I have added some custom fields to

  • 0

can anybody help me with this ? I have added some custom fields to the customer grid in the magento backend admin page which are select fields , but I cant seem to find a way of showing the “label” in the grid as opposed to the “value” I have tried to find the renderer for this page but have had no luck…

They render ok in the customer information page (please see screenshots)

Customer Grid Sreenshot

enter image description here

I have found this post which is very helpful but do not know what i need to write to get the label content to dispay ? http://inchoo.net/ecommerce/magento/how-to-add-custom-renderer-for-a-custom-column-in-magento-grid/

Many thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:52:30+00:00Added an answer on May 28, 2026 at 1:52 pm

    You don’t need any renderer for displaying such values. Here is what you should do:

    $boyGirlOptions = array(
        array('value' => 1, 'label' => 'Boy'),
        array('value' => 2, 'label' => 'Girl'),
    ); // or you can fetch dynamically
    $this->addColumn('boy_or_girl', array(
        'header'    => Mage::helper('your-module')->__('Boy or Girl'),
        'index'     => 'boy_or_girl',
        'type'      => 'options',
        'options'   => $boyGirlOptions,
        'align'     => 'left',
    ));
    
    $sourceOptions = array(
        array('value' => 1, 'value' => 'Google'),
        array('value' => 2, 'value' => 'Yahoo'),
        //... 
    ); //or you can fetch dynamically
    $this->addColumn('where_did', array(
        'header'    => Mage::helper('your-module')->__('Where Did?'),
        'index'     => 'where_did',
        'type'      => 'options',
        'options'   => $sourceOptions,
        'align'     => 'left',
    ));
    

    Yes, you need to use dropdown type options and grid values will automatically get the label instead of value(id).
    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anybody please help me with this as I have no idea why public
Can anybody help me with this simple code?? #include <iostream> using namespace std; void
can anybody help me solve this : i got $filename= index 198.php; i use
Console dogs me. Can anybody help? The sad story starts like this. My OS
hi i am new to android. can anybody help me to solve this. i
I have dynamicaly added input fields like this one: <input id=person__1_badge_number class=number type=text size=12
can any body help me on separating this example of data that i need
Can anybody help me to build an XSD file to validate XMLs like these:
Can anybody help me out to know the possible reasons for which Apple store
Can anybody help me in finding out how to verify that _tmkdir succeeded. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.