Jump to content

DIsable/hide kpi-container from order admin page


Recommended Posts

  • 10 months later...
  • 8 months later...
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

  • 1 year later...

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

  • 2 years later...

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

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

Posted (edited)

Hi.

1.7.6.7 Hide KPI in order details:

./admin folder/themes/default/template/controllers/orders/helpers/view/view.tpl

image.thumb.png.033f8e469385498c8b29881df0459e99.png

Added at the beginning of the block I want to hide {*
Added at the end of the block I want to hide *}

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

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:

image.png.d2977d6d5008374e963f16a0f635e96b.png

 

 

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