checkbox - prestashop multiple checkboxes do not save values -
i can't figure out why checkbox values not saved in database using helpers.
trying save customers ids module's setting :
the array :
$custs = customer::getcustomers(); foreach ($custs $key => $value) { $options[] = array( 'id_customer' => (int)$value['id_customer'], 'infos' => $value['firstname'].' '.$value['lastname'].' | '.$value['email'] ); }
the checkboxes :
'input' => array( array( 'type' => 'checkbox', 'label' => $this->l('customers'), 'desc' => $this->l('select customers.'), 'name' => 'my_module_customers', 'values' => array( 'query' => $options, 'id' => 'id_customer', 'name' => 'infos', ), ), )
the $_post empty works input. appreciated.
thank you.
your code correct, tried , result http://screencast.com/t/wfsw86ijj
- you have click @ least 1 checkbox.
show data on server :
print_r($_post); die();
Comments
Post a Comment