ecommdev Posted May 13, 2015 Share Posted May 13, 2015 (edited) 1.6.0.9 with multistore enabled. I have not noticed this until recently, within various pages in the back office of prestashop toward the bottom of various pages, customers, catalogs, are advertisements for prestashop module addons. I have received many complaints from users about this topic. I am not speaking about within the modules page itself, I am referring to other pages within the back office usually towards the bottom of the page. Example, Back office > Carriers, Add New Carrier. Screen shot: http://gyazo.com/54cf8a9e47349da783af7c1dc9457b88 You will notice Prestashop is recommending three different modules, this is very troubling for the merchant. How or Where can I edit to prevent these advertisements for prestashop module addons from appearing in the prestashop back office? I welcome any feedback or guidance to clear up the issue. Thank you for your time. Edited May 13, 2015 by ecommdev (see edit history) Link to comment Share on other sites More sharing options...
Tung at RockPOS.com Posted May 13, 2015 Share Posted May 13, 2015 I totally can imagine your concerns. Many of our Australia Post Pro users were complaining about that too. Unfortunately, there is no obvious way to disable that. But of course, we can that. Here are some approaches: 1. Override class "AdminController" to always return an empty module list. <?php class AdminController extends AdminControllerCore { public function renderModulesList() { return ''; } } Put the php code above into a file called AdminController.php and put it under /override/classes/controller/ . Then, don't forget to delete the following file: /cache/class_index.php 2. Override class "AdminCarrierController" to always return an empty module list. PHP code: <?php class AdminCarriersController extends AdminCarriersControllerCore { public function renderModulesList() { return ''; } } File name: /override/controllers/admin/AdminCarriersController.php 3. Remove this part from the template or override it. The original template is: /[admin foloder]/themes/default/templates/controllers/carriers/helpers/view/view.tpl Here is the code to be deleted: Link to comment Share on other sites More sharing options...
ecommdev Posted May 14, 2015 Author Share Posted May 14, 2015 Thanks for providing feedback. Besides the carriers which display the modules, I have seen the modules in other places in the back office. Any idea where to edit out other files using Option 3? Link to comment Share on other sites More sharing options...
Tung at RockPOS.com Posted May 18, 2015 Share Posted May 18, 2015 I don't know Anyway, that's fairly easy. Whenever you find out those advertising modules, just search for the text in your admin folder, you will be able to locate to the right files to edit. Hope that helps! Tung Link to comment Share on other sites More sharing options...
Recommended Posts