How to Hide Notifications About Modules’ Updates in Prestashop

Apr 22, 2016223Alex Simonchik
How to Hide Notifications About Modules’ Updates in Prestashop

Quite often when customizing your Prestashop you may need to modify the code of the default modules. Prestashop has recently opened the possibility to override modules. But unfortunately this feature still leaves much to be desired, that is why most of the developers still prefer to make changes in the code of the default modules. This article would be also useful for those, who are still using the old version of Prestashop and are using some custom modules.

How to hide notifications about modules' updates in Prestashop

This is how your admin panel looks like when there are modules which need to be updated.

The code, related to updates for modules is located in the following files:

  • administration/themes/default/template/controllers/modules/list.tpl
  • classes/controller/AdminController.php
  • controllers/admin/AdminModulesController.php

If you wish to remove the Update button:

How to hide notifications about modules' updates in Prestashop

you need to edit the file: administration/themes/default/template/controllers/modules/list.tpl

How to hide notifications about modules' updates in Prestashop

by commenting these lines:

Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Vlad

also override AdminController::isplayModuleOptions($module, $output_type = ‘link’, $back = null)

and comment the lines:

How to hide notifications about modules' updates in Prestashop

If you wish to hide the list with the modules that require updates, then you need to override the file and clear the array $upgrade_available in the method initContent():

How to hide notifications about modules' updates in Prestashop

This is all, now it is impossible to update the module in the admin panel.


Partner With Us Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Vlad

Post a new comment

top
BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *