Search the Community
Showing results for tags 'multiselect'.
-
Hi, It would be very usefull to have a multiselect dropdown selection for orders in some certain status like in this image : I mean would be very usefull ability to select a list of statuses for orders !
- 3 replies
-
- checkbox
- multiselect
-
(and 3 more)
Tagged with:
-
Hola a todos. Estoy haciendo un modulo el cual se debe poder seleccionar de un select multiple, las caracteristicas asociadas array ( 'type' => 'select', 'label' => $this->l('Features:'), 'desc' => $this->l('Elije la caracteristica para mostrar la barra'), 'name' => 'PROGRESSBARFEATURE_IDS_FEATURE', 'id' => 'PROGRESSBARFEATURE_IDS_FEATURE', 'required' => false, 'multiple' => true, 'options' => array( 'query' => self::feats(), 'id' => 'optionValue', 'name' => 'optionDisplay' ) ), Consigo que se guarde la informacion en la base de datos usando el $str = implode(';',Tools::getValue('PROGRESSBARFEATURE_IDS_FEATURE')); Configuration::updateValue('PROGRESSBARFEATURE_IDS_FEATURE', $str); El problema que tengo es que me da error al recuperar la información y volverla a añadir al selector Puedo hacerlo por javascript , y que se queden seleccionados , $features = Configuration::get('PROGRESSBARFEATURE_IDS_FEATURE'); $this->context->smarty->assign('features', $features); features = '{$features}'; splitValues = features.split(';'); multi = document.getElementById('PROGRESSBARFEATURE_IDS_FEATURE'); multi.value = null; multiLen = multi.options.length; for (var i = 0; i < multiLen; i++) { if (splitValues.indexOf(multi.options[i].value) >= 0) { multi.options[i].selected = true; } } }); pero el propio sistema de prestashop, no me selecciona y por lo tanto da un error Undefined index: PROGRESSBARFEATURE_IDS_FEATURE[] Alguna ayuda??? He mirado otros modulos que lo hacen, pero en versiones de PS 1.6 No me sirve el controlador de adminwharehouse porque en el 1.7 no existe he probado a poner en el nombre del campo [] , tampoco
-
I am doing a small module in Prestashop. In that module I have used multiselect with helperform. So my code is like this array( 'type' => 'select', 'cols' => 8, 'class' => 'chosen-product-selct selected_products ', 'multiple' => true, 'label' => $this->l('Selected Products'), 'name' => 'selected_products[]', 'options' => array( 'query' => $product_query, 'id' => 'id', 'name' => 'product_name' ), 'desc' => $this->l('Select products from products list.'), ), Here I am saving those multiselected values to the database. But when I am doing edit no saved values has been selected in the box. The box is totally empty. for getting the result I am doing this public function getConfigFieldsValues() { 'selected_products[]' => Tools::getValue('selected_products', Configuration::get('selected_products')), } Its not showing the values that has been entered.So can someone tell me how to solve this issue? Any help and suggestions will be really appreciable. Thanks
- 8 replies
-
- multiselect
- helperclass
-
(and 1 more)
Tagged with: