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 8607831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:27:30+00:00 2026-06-12T03:27:30+00:00

I have a few general questions about modifying Magento’s admin section and would be

  • 0

I have a few general questions about modifying Magento’s admin section and would be grateful to have them answered. I’m new to Magento so please bear with me.

My goal is to add a new column with a product attribute (e.g. “Size”) to the “Category Products” table within the Catalog -> Manage Cateories section (see screenshot below).

Having little Magento dev experience, I’m not quite sure where to start. I had a look in some of the Grid.php files under the adminhtml directory, and while I see a bunch of statements like addColumn(...), I’m not sure where I’d slot in my new attribute column.

Also, I assume that instead of modifying any core files directly, I’d copy them to the same path under the local folder and edit or somehow extend them there? Do I have to edit any config files or do anything else for the change to be reflected? Am I – by doing this – in effect creating my own module?

I also read that I should disable “Compilation” before I make any changes. Why is this? Is there anything else to consider?

Again I am very grateful for any help and appreciate that my questions must seem basic. Any supplementary resources you could point me towards would be appreciated. Thanks.

enter image description here

  • 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-06-12T03:27:31+00:00Added an answer on June 12, 2026 at 3:27 am

    Max solution was pretty spot on but missing some important steps, I’ll elaborate on his original method

    1. Create a new local override of the Product Tab by copying app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php to app/code/local/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php

    2. There are 2 functions involved in modifying the grid view. _prepareCollection and _prepareColumns

    3. _prepareColumns by adding a call to the addColumn function just like:

      $this->addColumn('size', array(
          'header'    => Mage::helper('catalog')->__('Size'),
          'width'     => '80',
          'index'     => 'size'
      ));
      
    4. _prepareCollection, by default the product collection loaded in the grid only has a few attributes(name,sku,price) what you need to do add our now attribute by ->addAttributeToSelect(‘size’) now if you are only working with a textfield attribute then this is the extend of the modifications you have to do however if your attribute is for example a dropdown you will need to do further changes to the prepare collection:

    5. (optional) dropdown attributes only store the value of the option that was select so we need to provide an options array to the addColumns call so Magento can display the values correctly, we can do that in the following maner:

    on your local copy of Products, add the following to the _prepareColumns functions

        $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'colour');
        $options = array();
        foreach( $attribute->getSource()->getAllOptions(true, true) as $option ) {
           $options[$option['value']] = $option['label'];
        }
        $this->addColumn('colour', array(
            'header'    => Mage::helper('catalog')->__('Colour'),
            'width'     => '80',
            'index'     => 'colour',
            'type'      => 'options',
            'options'   =>  $options
        ));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just have a few general questions about keeping code clean and readable. 1)
Hello i have a few questions about mvc pattern and frameworks in general. I
I have a few general questions about the iOS developer programs. Please, accept these
I have few questions about ssis transction isolation levels. consider a scenario:I have an
Im a newbie PHP programmer and I have a few questions about creating a
I have a few questions about using mysql and oracle in a PHP app.
so I have a general question about preloading. I am using a few large
i have few confusion regarding ORM(Object Relational Mapping) i am thinking about to use
I have few basic questions on session management in GWTP. Now, we create a
I have few basic questions on session management in GWTP. Client : GWTP, Server

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.