grsinternet Posted October 9, 2020 Share Posted October 9, 2020 I have a problem - Debug Bar is not working on PS 1.7 Orders List page, so I can't see what Twig template is used here. I want to add one additional column in Back-office Orders List, so looking for a template. Thanks!! Link to comment Share on other sites More sharing options...
EvaF Posted October 9, 2020 Share Posted October 9, 2020 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 1 Link to comment Share on other sites More sharing options...
grsinternet Posted October 14, 2020 Author Share Posted October 14, 2020 (edited) Thank you for very detailed answer! Respect! 😎 Edited October 14, 2020 by grsinternet (see edit history) 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