rafapas22 Posted October 4, 2016 Share Posted October 4, 2016 Pues eso, no consigo ver la instrucción para marcar varias opciones (ni siquiera una) en un checkbox de un helperform Como lo hago? Gracias Link to comment Share on other sites More sharing options...
ventura Posted October 4, 2016 Share Posted October 4, 2016 Ponle en type 'type' => 'swap', 'multiple' => true, e indica en el nombre que es un array 'name' => 'NOMBRE_FIELD_MULTIPLE[]', Link to comment Share on other sites More sharing options...
rafapas22 Posted October 5, 2016 Author Share Posted October 5, 2016 buenas, al poner tipo swap se queda así http://prnt.sc/cq1126 no me funciona, y además quiero un checkbox como los de toda la vida, hay alguna otra manera?, puedo ver código fuente de ejemplo en alguna web? Gracias y un saludo Link to comment Share on other sites More sharing options...
ventura Posted October 5, 2016 Share Posted October 5, 2016 buenas, al poner tipo swap se queda así http://prnt.sc/cq1126 no me funciona, y además quiero un checkbox como los de toda la vida, hay alguna otra manera?, puedo ver código fuente de ejemplo en alguna web? Gracias y un saludo Tendrá que tomarte los valores de algún array para que funcione Link to comment Share on other sites More sharing options...
rafapas22 Posted October 5, 2016 Author Share Posted October 5, 2016 si de aqui $options = array( array( 'id_option' => '1', 'name_option' => 'Awaiting check payment'), array( 'id_option' => '2', 'name_option' => 'Payment accepted'), array( 'id_option' => '3', 'name_option' => 'Processing in progress'), array( 'id_option' => '4', 'name_option' => 'Shipped'), array( 'id_option' => '5', 'name_option' => 'Delivered'), array( 'id_option' => '6', 'name_option' => 'Canceled'), array( 'id_option' => '7', 'name_option' => 'Refunded'), array( 'id_option' => '8', 'name_option' => 'Payment error'), array( 'id_option' => '9', 'name_option' => 'On backorder (paid)'), array( 'id_option' => '10', 'name_option' => 'Awaiting bank wire payment'), array( 'id_option' => '11', 'name_option' => 'Awaiting PayPal payment'), array( 'id_option' => '12', 'name_option' => 'Remote payment accepted'), array( 'id_option' => '13', 'name_option' => 'On backorder (not paid)'), array( 'id_option' => '14', 'name_option' => 'Awaiting Cash On Delivery validation'), ); pero no los ha cogido... es un checkbox para los estados de pedido, para que puedan seleccionar varios estados de pedido para descargar un csv Link to comment Share on other sites More sharing options...
ventura Posted October 5, 2016 Share Posted October 5, 2016 Mejor asi array( 'type' => 'swap', 'label' => $this->l('New multiple select'), 'desc' => $this->l('Show the multiple select'), 'name' => 'MULTIPLE_SELECT[]', 'required' => false, 'multiple' => true, 'default_value' => $this->l('Multiple select'), 'options' => array( 'query' => OrderState::getOrderStates((int)$this->context->language->id), 'id' => 'id_order_state', 'name' => 'name' ) ), 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now