Jump to content

How to find BO Orders List Twig template?


grsinternet

Recommended Posts

i don't know where order twig templates are.

all BO-order templates you can find in the dir

admin/themes/default/template/controllers/orders/

for the order list they use standard list.tpl  (imho)

admin/themes/default/template/helpers/list/list.tpl

where

{$header} = fetched list_header.tpl  (

admin/themes/default/template/controllers/orders/helpers/list/list_header.tpl

)

{$content}= fetched list_content.tpl  (

admin/themes/default/template/helpers/list/list_content.tpl

)

{$footer}= fetched list_footer.tpl  (

admin/themes/default/template/helpers/list/list_footer.tpl

)

thus is enough to override AdminOrdersController  (controllers/admin/AdminOrdersController.php) (f.e. using public function initContent() )

and add your column into $this->fields_list and into $this-> _select  (if your column is not a field of ps_orders table)

this way you has to do no modification of  template

 

 

 

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...