N@D33M Posted September 24, 2013 Share Posted September 24, 2013 (edited) Hi, I'm overriding attribute and values form at Admin area, I need multiple selection menu which is working fine now the thing is array( 'type' => 'select', 'label' => $this->l('Disable the following services:'), 'name' => 'attribute_disable[]', 'required' => false, 'size' => 25, 'multiple' => true, 'options' => array( 'query' => Attribute::getAttributes($this->context->language->id), 'id' => 'id_attribute', 'name' => 'name', 'selected' =>'selected', 'default' => array( 'value' => '', 'label' => $this->l(' ') ), ), 'desc' => $this->l(' Use CTRL+CLICK to select several, selected services will be disabled'), ), Now everything is working fine, I'm saving data in DB like: 11,21,23,34,35 for that "attribute_disable" but thing is how could I select the DB saved values in Admin panel controller? I can get the attribute_disable = 11,21,23,34,35 in a string format but don't know how to check that element that is saved in DB to be selected once I go to edit page in admin area. like: if($attibute_disable = $multiple_select_loop_value) //111,222,333 { <option value='111' selected='selected'>abc1 xyz</option> <option value='222' selected='selected'>abc2 xyz</option> <option value='333' selected='selected'>abc3 xyz</option> } I'm using PS 1.5.5 there's no documentation about that, please help as it's urgent. Thanks, Edited September 24, 2013 by N@D33M (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts