我正在研究一个模块,我想知道如何添加多个下拉字段fields_options。Prestashop模块:添加多选择下拉列表
$this->fields_options = array(
'Test' => array(
'title' => $this->l('Test'),
'icon' => 'delivery',
'fields' => array(
'IXY_GALLERY_CREATION_OCCASION' => array(
'title' => $this->l('DropdownList'),
'type' => 'select',
'multiple' => true , // not working
'identifier' => 'value',
'list' => array(
1 => array('value' => 1, 'name' => $this->l('Test 1 ')),
2 => array('value' => 2, 'name' => $this->l('Test 2)'))
)
),
),
'description' =>'',
'submit' => array('title' => $this->l('Save'))
)
);
我刚才在这里找到答案相似(或相同)的问题:HTTP: //stackoverflow.com/questions/27731117/prestashop-set-multiple-select-from-the-module-and-get-them-in-the-input请使用此作为指导,以满足形式助手的要求,并建立你的表单正确的方式! – Jamol 2015-11-02 10:03:07