2

I followed this tutorial here: http://inchoo.net/ecommerce/magento/how-to-create-custom-attribute-source-type/

In this tutorial, there are two key settings which I want to change:

'type' => 'int', //backend_type
'input' => 'select', //frontend_input

I tried using this:

'type' => 'varchar', //backend_type
'input' => 'multiselect', //frontend_input

This works great from a UI standpoint, but I can't get Magento save any selection when I have the attribute setup this way.

How can I make a custom attribute source model that fully supports multiselect?

asked Aug 15, 2014 at 2:52

1 Answer 1

5

Add this key:

'backend'=>'eav/entity_attribute_backend_array' //backend_model 

to your attribute definition array

answered Aug 15, 2014 at 7:02
1
  • 1
    I came to the same conclusion right before falling asleep last night. So obvious. Thanks! Commented Aug 15, 2014 at 18:35

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.