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

  • Home
  • SEARCH
  • 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 7681047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:15:12+00:00 2026-05-31T18:15:12+00:00

I can not really find a satisfying answer to the following question: What would

  • 0

I can not really find a satisfying answer to the following question:

What would be the best practice for a module to add a new product attribute to all attribute_sets (and possibly at a certain location).

All approaches I can find seem to refer to adding a new attribute to just one attribute set.

  • 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-31T18:15:14+00:00Added an answer on May 31, 2026 at 6:15 pm

    There is a magento way for it
    Example:

    $installer->addAttribute('catalog_product', 'test_me', array(
    'label'         => 'test Me',
    'input'         => 'textarea',
    'type'          => 'text',
    'class'         => '',
    'global'        => true,
    'visible'       => true,
    'required'      => false,
    'user_defined'  => true,
    'default'       => '',
    'apply_to'      => 'simple,configurable',
    'visible_on_front' => true,
    'is_configurable' => false,
    'wysiwyg_enabled' => true,
    'used_in_product_listing' => true,
    'is_html_allowed_on_front' => true,
    'group'         => 'Config',
    'sort_order'    => 25
    

    ));

    To add attribute to every attribute_set you need to set 'user_defined' = true and set 'group' = 'your_group_name'. If needed magento will add your group to every attribute set, and attach attribute to it.

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

Sidebar

Related Questions

ok, I'm going to ask this because I really can not find an answer,
I'm sorry if my question is not really programming problem,but I can't find any
Where can I find good agile classes for developers? Not really talking about scrum
I'm not too familiar with Linux/Bash, so I can't really find the right terms
The question below is not really a programming question, but more of how can
For some reason I can't find this through searches, not really sure what keywords
It really annoys me already now... I can not find the setting to have
I think that my issue should be really simple, yet I can not find
It seems this subject is recurring, but sorry, I can't really find any answer
I've faced with a strange problem in ASP.net/SQL Server and really can not find

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.