saad89 Posted May 17, 2013 Share Posted May 17, 2013 (edited) [sOLVED] Hello, i want to add another field into the table orders view at backend admin, i suppose to add it to fields_list But when i add it table view diappear $this->fields_list = array( 'select' => array( 'title' => 'Selectbox', 'align' => 'center', 'width' => 25 ), 'id_order' => array( 'title' => $this->l('ID'), 'align' => 'center', 'width' => 25 )); This edit suppose to be in AdminOrdersController.php constructor thanks in advance. Edited May 19, 2013 by saad89 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 17, 2013 Share Posted May 17, 2013 hello i added your code to the controller and it works well, take a look: what prestashop version you use? 1 Link to comment Share on other sites More sharing options...
saad89 Posted May 17, 2013 Author Share Posted May 17, 2013 (edited) hello i added your code to the controller and it works well, take a look: what prestashop version you use? Thanks Vekia version 1.5.3, ok now i could add the input like in your image, but i need it checkbox i added this as in tuts: $this->fields_list = array( 'select' => array( 'type' => 'checkbox', 'title' => 'Selectbox', 'align' => 'center', 'width' => 25 ), but it still not check boxed, i need this to make multiselect. Edited May 17, 2013 by saad89 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 17, 2013 Share Posted May 17, 2013 hello I modified AdminOrdersController.php i added new array to the: $this->fields_list can you check php error log, maybe some errors appear there? Link to comment Share on other sites More sharing options...
vekia Posted May 17, 2013 Share Posted May 17, 2013 here is a result from 1.5.3.1: the same as before, works fine Link to comment Share on other sites More sharing options...
saad89 Posted May 17, 2013 Author Share Posted May 17, 2013 here is a result from 1.5.3.1: the same as before, works fine yes you are right, it works, but ineed it checkbox to add my jquery, i don't know wh they add html like this, i need to edit like tpl in the module, but now with this way i have to stick with the way they show it. Link to comment Share on other sites More sharing options...
vekia Posted May 17, 2013 Share Posted May 17, 2013 what you exactly expect? Sorry but i don't understand it well, if it is possible - can you explain it? Link to comment Share on other sites More sharing options...
saad89 Posted May 18, 2013 Author Share Posted May 18, 2013 1-I need checkbox so as i can select many records. 2-i need to sign to each record like order id....so as i can call jquery post with this selected records Link to comment Share on other sites More sharing options...
saad89 Posted May 19, 2013 Author Share Posted May 19, 2013 1-I need checkbox so as i can select many records. 2-i need to sign to each record like order id....so as i can call jquery post with this selected records i fix itby adding field into global object $this ->bulk_actions Link to comment Share on other sites More sharing options...
Recommended Posts