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

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