DARKF3D3 Posted January 22, 2020 Share Posted January 22, 2020 Do you know how this block can be removed on PS 1.7.4.2? Link to comment Share on other sites More sharing options...
HAKO Posted December 4, 2020 Share Posted December 4, 2020 have you found a solution ? I need it too on 1.7.7 Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 1, 2021 Author Share Posted September 1, 2021 On 4/12/2020 at 9:03 AM, HAKO dice: have you found a solution ? I need it too on 1.7.7 To do that on PS1.7.7 you can edit this file: /httpdocs/src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/index.html.twig Comment (or remove) this code: {% block orders_kpi %} <div class="row"> <div class="col-md-12"> <div class="card"> <div class="row orders-kpi"> {{ render(controller( 'PrestaShopBundle:Admin\\Common:renderKpiRow', { 'kpiRow': orderKpi } )) }} </div> </div> </div> </div> {% endblock %} Link to comment Share on other sites More sharing options...
DARKF3D3 Posted February 24, 2023 Author Share Posted February 24, 2023 In case you need to do it on PS8 the file it's the same: /httpdocs/src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/index.html.twig But you have to comment (or delete) these lines: {% block orders_kpi %} {{ render(controller( 'PrestaShopBundle:Admin\\Common:renderKpiRow', { 'kpiRow': orderKpi } )) }} {% endblock %} Comments into twig file are made with {# and #}, so: {# {% block orders_kpi %} {{ render(controller( 'PrestaShopBundle:Admin\\Common:renderKpiRow', { 'kpiRow': orderKpi } )) }} {% endblock %} #} Link to comment Share on other sites More sharing options...
albertcd Posted May 6 Share Posted May 6 Hi. how i can disable the kpi container from order admin page in 1.7.6.7? @DARKF3D3 I cannot found the block you said. Thanks you Link to comment Share on other sites More sharing options...
DARKF3D3 Posted May 7 Author Share Posted May 7 Have you checked the correct file? /httpdocs/src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/index.html.twig You should have an "orders_kpi" block Link to comment Share on other sites More sharing options...
albertcd Posted May 7 Share Posted May 7 1 minute ago, DARKF3D3 said: Have you checked the correct file? /httpdocs/src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/index.html.twig You should have an "orders_kpi" block There isn’t “Order” subfolder in “Order” folder. thanks Link to comment Share on other sites More sharing options...
DARKF3D3 Posted May 7 Author Share Posted May 7 (edited) In that case then I don't know, in my PS installations (both 1.7 and 8 ) that file is present. Edited May 7 by DARKF3D3 (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted May 7 Share Posted May 7 (edited) Hi. 1.7.6.7 Hide KPI in order details: ./admin folder/themes/default/template/controllers/orders/helpers/view/view.tpl Added at the beginning of the block I want to hide {* Added at the end of the block I want to hide *} Edited May 7 by ps8modules (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted May 7 Share Posted May 7 1.7.6.7 Hide KPI in order list: ./controllers/admin/AdminOrdersController.php find function: public function renderKpis() modify: Link to comment Share on other sites More sharing options...
albertcd Posted May 7 Share Posted May 7 Perfect!!! Thanks you!!! 6 minutes ago, ps8modules said: 1.7.6.7 Hide KPI in order list: ./controllers/admin/AdminOrdersController.php find function: public function renderKpis() modify: 1 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