1

Ok So I've managed to add a custom attribute to my customers currently only view-able on the admin panel side. Its listing out all the options from another module into the multi selects options as well as the default options at the top of multi select.

Now after I made this I decided that it wasn't quite as user friendly as I would like, so I'm wondering about changing this into a checkbox.

I made an update and changed the attribute as follows:

$installer->addAttribute("customer", "brands", array( "type" => "text", "backend" => "", "label" => "Brands", "input" => "checkbox", "source" => "registration/eav_entity_attribute_source_customeroptions13632635690", "visible" => true, "required" => false, "default" => "", "frontend" => "", "unique" => false, "note" => "" )); 

This however did not work, So I was wondering if check-box is actually a option for making magento attributes (for customers specifically).

If checkboxes aren't an option, would it be possible to customize the front end to display a check-box list instead of the multi select or would this create problems?

2
  • Instead of "input" => "checkbox", try "input" => "checkboxes" Commented Mar 14, 2013 at 12:42
  • I just tried deleting the nodule and re-implementing it with checkbox and checkboxes but it just displayed a single unlabeled checkbox :( Commented Mar 14, 2013 at 14:15

1 Answer 1

1

You are right, there is no support for multiple checkboxes as an attribute display in Magento. While you cold go the painful way of doing a full implementation on this one, I recommend http://www.1stwebdesigns.com/blog/development/multiple-select-with-checkboxes-and-jquery . This plugin will transform a multiple select list into multiple checkboxes via javascript.

1
  • Has anyone actually used this in a Magento installation? Looks to me like it transforms checkboxes into a multi select, not the other way around Commented Mar 17, 2013 at 22:48

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.