JazZ7 Posted May 28, 2016 Share Posted May 28, 2016 Hello, I need some help to store customers ids from my module using multiple checkboxes and helperForm. I followed the Doc from PrestaShop (http://doc.prestashop.com/display/PS15/HelperForm#HelperForm-Checkbox) but when the form is submit, the value of the $_POST is always False. The point is to store selected customers ids in 'MY_MODULE_CUSTOMERS'. Here is the code : Array : $custs = Customer::getCustomers();foreach ($custs as $key => $value) { $options[] = array( 'id_customer' => (int)$value['id_customer'], 'infos' => $value['firstname'].' '.$value['lastname'].' | '.$value['email'] );} Input : 'input' => array( array( 'type' => 'checkbox', 'label' => $this->l('Customers'), 'desc' => $this->l('Select the Customers.'), 'name' => 'MY_MODULE_CUSTOMERS', 'values' => array( 'query' => $options, 'id' => 'id_customer', 'name' => 'infos', ), ),) Thank you for your help. 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