How to remove pages of suppliers and manufacturers in PrestaShop

You can hide your suppliers and manufacturers data from your site. Maybe you do not want to show them to everyone, maybe you just don’t use these features – so let’s hide them.

1) First of all you need to turn off appropriate modules: “Suppliers block” and “Manufacturers block”. You can find them in the Back Office:

3
4

It will remove unnecessary data from sidebar.

2) Next, in your Back Office go to Preferences -> General.
There you can turn off displaying suppliers and manufacturers:

5

3) Also, you can disable some pages in robots.txt. So, search engines will not show these pages.

1
2
3
4
5
User-agent: *
Disallow: */manufacturer
Disallow: *?controller=manufacturer
Disallow: */supplier
Disallow: *?controller=supplier

Be careful and don’t disable other pages, for example if they contain “/manufacturer” in their urls.

4) If you want to disable only one page, you can do it with overrides. By this method you can disable any page.
For example, let’s disable manufacturers page.
Create file /override/controllers/front/ManufacturerController.php and copy this code there:

1
2
3
4
5
6
7
8
9
10
11
12
<?php

class ManufacturerController extends ManufacturerControllerCore
{
    public function init()
    {
        parent::init();

        // Disable page
        Tools::redirect('pagenotfound');
    }
}

3 thoughts on “How to remove pages of suppliers and manufacturers in PrestaShop”

  1. How to remove Suppliers but Leave Manufacturers on the sites SITEMAP page.

    Remove the Suppliers from the Stores Sitemap page using Prestashop 1.7
    – if you want to also remove Manufacturers, comment out the Manufacturers code just above the below.

    Find /controllers/front/SitemapController.php

    Comment out
    // $suppliers = Supplier::getLiteSuppliersList($this->context->language->id, ‘sitemap’);
    // $links[] = array(
    // ‘id’ => ‘supplier-page’,
    // ‘label’ => $this->trans(‘Suppliers’, array(), ‘Shop.Theme.Catalog’),
    // ‘url’ => $this->context->link->getPageLink(‘supplier’),
    // ‘children’ => $suppliers,
    // );

  2. If this can be useful for someone:

    I just edited .htaccess file and put this:

    Redirect 301 /en/supplier https://www.mysite/en/page-not-found

    So when someone try to access supplier page it goes redirected to 404 page.

    This way I can have manufacturers and suppliers active, but visitors can not access that URL. Because the default Prestashop option at config menu, it just hide both manufacturers and suppliers.

  3. Hi! Nice guide!

    I just want to disable just supplier page. I’m using Prestashop 1.7 and the point 4 of your guide is not working for me. Is there any other way?

    Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *