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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:47:55+00:00 2026-06-06T22:47:55+00:00

I have a custom attribute which is multi select type and I want to

  • 0

I have a custom attribute which is multi select type and I want to assign the value for it programatically but it doesn’t work like “text field” attribute.

At the moment, I use the product.update in Magento’s SOAP API to update the additional attribute.

I’ve tried and searched and tried but unluckily they didn’t seem to work. I think this should work normally by default and we need some hack?

Is there any official document from magento about these kind of work ?

  • 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-06T22:47:56+00:00Added an answer on June 6, 2026 at 10:47 pm

    It is possible to write a setup script to add value to the multiselect attribute. Considering your attribute is color and you are trying to add value ‘Red’,’Green’,’Blue’ to the attribute, then you add like this

    $oInstaller = new Mage_Eav_Model_Entity_Setup('core_setup');
    $iAttribId = $oInstaller->getAttributeId('catalog_product', 'color');
    $oInstaller->addAttributeOption(array(
            'attribute_id' => $iAttribId, 
            'value' => array(
                array(
                    0 => 'Red',
                    1 => 'Blue',
                    2=> 'Green'
                )
            ),
        ));
    

    Hope this works.

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

Sidebar

Related Questions

I have a class which is marked with a custom attribute, like this: public
I have a custom attribute which I set in the AssemblyInfo.cs . I want
How do i select elements that have my custom data attribute data-validate with jQuery
I have the following custom attribute, which can be applied on properties: [AttributeUsage(AttributeTargets.Property, AllowMultiple
I have added custom attribute with the code my_price with Catalog Input Type for
I have a custom attribute which is applied to class properties and the class
I have a custom Attribute called AuthoriseAttribute whose constructor looks like this: public AuthoriseAttribute(int
I have a custom attribute which can be assigned to a class, [FooAttribute] .
So, I have a custom attribute called CompressAttribute which is set up as a
I have the need to put a custom attribute on an anchor which I

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.