bluecarbon Posted May 15, 2014 Share Posted May 15, 2014 (edited) I need to find this code:onclick="checkDelBoxes(this.form, 'supply_orderBox[]', this.checked)I need to change "'supply_orderBox[]' to 'supply_order_detailBox[]'but I can't find it.Please, any suggestion? Edited May 15, 2014 by bluecarbon (see edit history) Link to comment Share on other sites More sharing options...
bluecarbon Posted May 16, 2014 Author Share Posted May 16, 2014 I forget to tell you that this is to multi check all receipt because don't work well Link to comment Share on other sites More sharing options...
NemoPS Posted May 16, 2014 Share Posted May 16, 2014 Might not be as easy as it seems. That code comes from the helper tpl file, so it's shared among many different parts of the back office. THis is the file: admin\themes\default\template\helpers\list/list_header.tpl. The point is, to edit one directly you should better use an override. Try copying this file to override\controllers\admin\templates\orders\helpers\list Create the path if doesn't exist, if that's the order list of course. As far as I could understand, it is. Then, modify it directly by changing around line 140 (1.5.6.2) Link to comment Share on other sites More sharing options...
bluecarbon Posted May 16, 2014 Author Share Posted May 16, 2014 Thanks, I can edit the .tpl and now work fine, but I know that this is not the correct form to do it because I changed: {$list_id} to supply_order_detail So I don't know if all work fine. Thanks again Link to comment Share on other sites More sharing options...
NemoPS Posted May 17, 2014 Share Posted May 17, 2014 yeah you don't have to edit the core one of course, otherwise all pages will have that instead of the right variable! Link to comment Share on other sites More sharing options...
bluecarbon Posted May 17, 2014 Author Share Posted May 17, 2014 Are you right, Now I have problem in others pages. So, can I fix it? Link to comment Share on other sites More sharing options...
NemoPS Posted May 19, 2014 Share Posted May 19, 2014 Yeah, as I said you must use an override in the location I mentioned Link to comment Share on other sites More sharing options...
bluecarbon Posted May 19, 2014 Author Share Posted May 19, 2014 Hi again, I tried to created a path "override\controllers\admin\templates\orders\helpers\list" and put in it the new list_header.tpl but nothing happend... Maybe I need other path? Link to comment Share on other sites More sharing options...
Mariusz Mielnik Posted August 5, 2014 Share Posted August 5, 2014 class: AdminSupplyOrdersControllerCore in method: public function initUpdateReceiptContent() find code: $this->table = 'supply_order_detail'; $this->identifier = 'id_supply_order_detail'; $this->className = 'SupplyOrderDetail'; and replace: $this->table = 'supply_order_detail'; //lutek - fix for checkbox $this->list_id = 'supply_order_detail'; $this->identifier = 'id_supply_order_detail'; $this->className = 'SupplyOrderDetail'; Link to comment Share on other sites More sharing options...
Recommended Posts