DARKF3D3 Posted January 10, 2015 Share Posted January 10, 2015 It's possible to remove the div that show statistic at the top of every B.O. page? For example on order page: conversion rate, abandoned cart... Link to comment Share on other sites More sharing options...
Paulito Posted January 10, 2015 Share Posted January 10, 2015 Hello If you mean these: http://screencast.com/t/NkSdW3ba7r Then go to: Back office > Administration > Preferences > (scroll down to) Notifications > click No http://screencast.com/t/53Gd9aMdxE Then go to: Back office > Modules > Administration > Merchant Expertise > Disable Before http://screencast.com/t/tzuFUD2e9mYC After http://screencast.com/t/IiB3gQG1M32 Paul Link to comment Share on other sites More sharing options...
DARKF3D3 Posted January 10, 2015 Author Share Posted January 10, 2015 No, I mean the icon jus tbelow the green bar (item in stock, average gross margin...): I don't use them so i would like to remove them from every page of the website. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted January 16, 2015 Author Share Posted January 16, 2015 Any help? Link to comment Share on other sites More sharing options...
twt Posted January 18, 2015 Share Posted January 18, 2015 This "banner" is here > ...'admindir'/themes/default/theme/helpers/kpi Try edit row.tpl Link to comment Share on other sites More sharing options...
vekia Posted January 18, 2015 Share Posted January 18, 2015 instead of removing it will be better to use css like display:none; <div class="panel kpi-container" style="display:none!important;"> Link to comment Share on other sites More sharing options...
DARKF3D3 Posted January 19, 2015 Author Share Posted January 19, 2015 Thanks vekia, that line of code it's in the file that twt posted, "row.tpl" file? Link to comment Share on other sites More sharing options...
Calatravo Posted July 10, 2015 Share Posted July 10, 2015 Hi, I have a problem with this too. But i need to disable it not just hide. When displaying a category in the backoffice this module does a query that overloads the mysql server. I found the file where the query is but i prefer a method to disable this module instead of hardcode comment the query. Any help would be appreciated. Thanks. Link to comment Share on other sites More sharing options...
Rulian Posted November 23, 2015 Share Posted November 23, 2015 Hi, I have a problem with this too. But i need to disable it not just hide. When displaying a category in the backoffice this module does a query that overloads the mysql server. I found the file where the query is but i prefer a method to disable this module instead of hardcode comment the query. Any help would be appreciated. Thanks. Hey, I won't even talk about the "hide it, but let it run" solution, that's just f*ckin' insane from a performance or even logical point of view. If you don't want this (forced by default) unnecessary eye candy, the best way (in my opinion) to get rid of it, is to override AdminController.php and comment this line: $this->content .= $this->renderKpis() in the initComment() function. Have a nice day. 1 Link to comment Share on other sites More sharing options...
jj_pt Posted January 27, 2016 Share Posted January 27, 2016 (edited) hi, what about if we need to have the KPI container only for certain user profiles. For instance the logistian does not need to see KPI's. thanks jj Edited January 27, 2016 by jj_pt (see edit history) 1 Link to comment Share on other sites More sharing options...
Trips380 Posted August 9, 2016 Share Posted August 9, 2016 hi, what about if we need to have the KPI container only for certain user profiles. For instance the logistian does not need to see KPI's. thanks jj Up please! It have a solution for do this? tanks Link to comment Share on other sites More sharing options...
Rulian Posted August 9, 2016 Share Posted August 9, 2016 (edited) Up please! It have a solution for do this? tanks Well, thanks God, I'm not into this Prestashop super-bullshit anymore. But I still receive emails when someone answers to a thread I'm involved with. So basically, since we're in a PHP class, the best way would be, from my point of view: 1) To change your eCommerce solution from PS to a decent one ASAP. 2) if it's not possible, just use the Customer class to get the profile (https://www.prestashop.com/forums/topic/280108-check-if-current-user-is-in-a-certain-group/) ,cross your fingers and hope for the best since it might not work in the BO. Then, get the profile and do a PHP switch/case statement in order to render the KPIs just for the profiles you need. Edited August 9, 2016 by Rulian (see edit history) Link to comment Share on other sites More sharing options...
Kuba104 Posted April 4, 2017 Share Posted April 4, 2017 admin/themes/default/css/schemes/admin-theme-blue.css (or your theme) .kpi-container{display:none!important;} Link to comment Share on other sites More sharing options...
SilviaPimenta Posted April 10, 2017 Share Posted April 10, 2017 (edited) Good Morning, At this point I am looking to implement Kpis in a module in prestashop 1.6 that I am developing. My goal is to use "renderKpis ()", similar to what exists in the backoffice on the products page. Can someone tell me how to use it? I am posting on this post because someone from you may know how I can implement it in the module as desire. Thanks. Edited April 10, 2017 by SilviaPimenta (see edit history) Link to comment Share on other sites More sharing options...
hakeryk2 Posted June 14, 2017 Share Posted June 14, 2017 I removed those panels with commenting divs with panel kpi-container in:adminfolder\themes\default\template\controllers\orders\helpers\view\view.tpladminfolder\themes\default\template\helpers\kpi\row.tpland that's it. 1 Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 1, 2021 Author Share Posted September 1, 2021 On PS1.7.7 this can be done commenting or removing the following codes from file: /httpdocs/src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/index.html.twig {% 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...
Chisla Posted May 26, 2023 Share Posted May 26, 2023 For Prestashop 8.* commenting or removing: \src\PrestaShopBundle\Resources\views\Admin\Common\Kpi\kpi_row.html.twig {% block kpi_row %} <div class="card card-kpis"> <div class="kpi-row"> {% for kpi in kpiRow.kpis %} {{ kpi|raw }} {% endfor %} </div> {% if kpiRow.allowRefresh %} <div class="kpi-refresh"> <button class="refresh-kpis btn btn-primary" type="button"> <i class="material-icons">refresh</i> </button> </div> {% endif %} </div> {% endblock %} 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