Sometimes, prestashop turns very slow due to ads, and module recomendations. Here are some modifications to version 1.6 removing these things and speed up the admin panels. Enjoy and share your tricks about how optimize prestashop.
[https://github.com/PrestaShop/PrestaShop/blob/1.6.1.x/classes/Tools.php#L3351-L3356]
Find the file /public/classes/Tools.php and modify as next:
public static function addonsRequest($request, $params = array())
{
return false; /*<==== ADD THIS LINE */
if (!self::$is_addons_up)
return false;
$postData = http_build_query(...Go to ./public/config/xml/ and remove or rename the files:\
- must_have_modules_list.xml
- default_country_modules_list.xml
Don't touch
trusted modulesornative addonsfiles.
[https://github.com/PrestaShop/PrestaShop/blob/develop/controllers/admin/AdminThemesController.php#L201-L211]
Go to file ./public/controllers/admin/AdminThemesController.php and modify:
public function ajaxProcessGetAddonsThemes()
{
die();// <=== ADD THIS LINE
$parent_domain = Tools::getHttpHost(true)...[https://github.com/PrestaShop/PrestaShop/blob/develop/classes/controller/AdminController.php#L2142-L2152]
Go to ./public/classes/controller/AdminController.php and then comment the lines as next:
protected function addPageHeaderToolBarModulesListButton()
{
$this->filterTabModuleList();
// Start the comment from here
// if (is_array($this->tab_modules_list['slider_list']) && count($this->tab_modules_list['slider_list']))
// $this->page_header_toolbar_btn['modules-list'] = array(
// 'href' => '#',
// 'desc' => $this->l('Recommended Modules')
// );
// to here...
}file ./public/admin/themes/default/template/controllers/dashboards/helpers/views/view.tpl and comment the block:
</div>
<div class="col-md-12 col-lg-2">
<!-- <section class="dash_news panel">
<h3><i class="icon-rss"></i> PrestaShop News</h3>
<div class="dash_news_content"></div>
<div class="text-center"><h4><a href="http://www.prestashop.com/blog/" onclick="return !window.open(this.href);">{l s='Find more news'}</a></h4></div>
</section> -->
<section id="dash_version" class="visible-lg">