Jump to content
DARKF3D3

Remove kpi-container from B.O. pages

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

ProductsBeta.png

Share this post


Link to post
Share on other sites

This "banner" is here > ...'admindir'/themes/default/theme/helpers/kpi

Try edit row.tpl

Share this post


Link to post
Share on other sites

instead of removing it will be better to use css like display:none;

 

 

<div class="panel kpi-container" style="display:none!important;">

Share this post


Link to post
Share on other sites

Thanks vekia, that line of code it's in the file that twt posted, "row.tpl" file?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

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 by jj_pt (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 by Rulian (see edit history)

Share this post


Link to post
Share on other sites

admin/themes/default/css/schemes/admin-theme-blue.css (or your theme)

 .kpi-container{display:none!important;}

Share this post


Link to post
Share on other sites

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.

 

 

 

r8Fjw.png

Edited by SilviaPimenta (see edit history)

Share this post


Link to post
Share on other sites

I removed those panels with commenting  divs with panel kpi-container in:

adminfolder\themes\default\template\controllers\orders\helpers\view\view.tpl
adminfolder\themes\default\template\helpers\kpi\row.tpl

and that's it.

 

  • Like 1

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More