Jump to content

Recommended Posts

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 by ecommdev (see edit history)
Link to comment
Share on other sites

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:

45cde012-f988-11e4-9006-4b62b51a999f.png

Link to comment
Share on other sites

×
×
  • Create New...