Jump to content

helperform marcar varias opciones en checkbos


Recommended Posts

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

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'
)
),
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...