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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:00:38+00:00 2026-05-23T11:00:38+00:00

How can i add a attribute to a category in magento ? I have

  • 0

How can i add a attribute to a category in magento ?

I have read some tutorials and they said just insert two records but that doesn’t work
Already changed a lot and playing with the values but still no result

After each change i have cleared the cache so that is nog the problem

I am working with magento 1.5 and flat tables

inserted the next querys and testing with the values

INSERT INTO `eav_attribute` 
(
    `attribute_id`, 
    `entity_type_id`, 
    `attribute_code`, 
    `attribute_model`, 
    `backend_model`, 
    `backend_type`, 
    `backend_table`, 
    `frontend_model`, 
    `frontend_input`, 
    `frontend_label`, 
    `frontend_class`, 
    `source_model`, 
    `is_required`, 
    `is_user_defined`, 
    `default_value`, 
    `is_unique`, 
    `note`
) 
VALUES
(
    158, 
    3, 
    'uitslag', 
    NULL, 
    '', 
    'varchar', 
    '', 
    '', 
    'text', 
    'Uitslag', 
    '', 
    '', 
    1, 
    0, 
    '', 
    0, 
    ''
);

And

INSERT INTO `eav_entity_attribute` 
(
    `entity_attribute_id`, 
    `entity_type_id`, 
    `attribute_set_id`, 
    `attribute_group_id`, 
    `attribute_id`, 
    `sort_order`
) 
VALUES
(
    158, 
    3, 
    3, 
    3, 
    158, 
    61
);

Anyone a idea ?

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-23T11:00:38+00:00Added an answer on May 23, 2026 at 11:00 am

    Try something like this:

    $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
    $setup->addAttribute('category', 'uitslag', array(
                         'label'     => 'Uitslag',
                         'type'  => 'varchar',
                         'input'     => 'text',
                         'visible'  => true,
                         'required' => false,
                         'position' => 1,
    ));
    

    The simply add values to categories either through the Magento admin, or directly into the catalog_category_entity_varchar table.

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

Sidebar

Related Questions

can I add BehaviorID attribute for asp.net textbox and use it to be recognize
I can use TypeDescriptor.AddAttributes to add an attribute to a type in runtime. How
Using a code activity (i.e. activity built out of C#) we can add category
I have two models, Story and Category. Using the form for Story#new , I'd
I can add an attribute to items in a RadioButtonList item like so: PaymentMethodDropDownList.Items[0].Attributes.Add(onclick,
I have the following HtmlLink: HtmlLink htmlLink = new HtmlLink(); htmlLink.Attributes.Add(href, /style/ + category
Is there a way that I can add non-static data to dataannotation attributes (either
I would like to add custom attributes to a MySQL table which I can
I can add and remove the last line in my dynamic form and calculate
I can add a normal rightBarButton to my navigation without a problem but now

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.