Jump to content

edit tpl view


Recommended Posts

[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.

post-507579-0-60800900-1368806473_thumb.png

Edited by saad89 (see edit history)
Link to comment
Share on other sites

hello

 

i added your code to the controller and it works well, take a look:

 

RGNc5T5.png

 

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 by saad89 (see edit history)
Link to comment
Share on other sites

here is a result from 1.5.3.1:

 

HHqzZB9.png

 

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

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

×
×
  • Create New...