{"id":212,"date":"2016-03-03T19:38:21","date_gmt":"2016-03-03T16:38:21","guid":{"rendered":"http:\/\/presta.site\/blog\/?p=212"},"modified":"2016-03-03T19:39:36","modified_gmt":"2016-03-03T16:39:36","slug":"how-to-remove-pages-of-suppliers-and-manufacturers-in-prestashop","status":"publish","type":"post","link":"https:\/\/presta.site\/blog\/en\/how-to-remove-pages-of-suppliers-and-manufacturers-in-prestashop\/","title":{"rendered":"How to remove pages of suppliers and manufacturers in PrestaShop"},"content":{"rendered":"<p>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&#8217;t use these features &#8212; so let&#8217;s hide them.<\/p>\n<p><!--more--><\/p>\n<p>1) First of all you need to turn off appropriate modules: &#171;Suppliers block&#187; and &#171;Manufacturers block&#187;. You can find them in the Back Office:<\/p>\n<p><a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/3.png\"><img decoding=\"async\" style=\"margin: 0;\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/3.png\" alt=\"3\" width=\"745\" class=\"aligncenter size-full wp-image-213\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/3.png 747w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/3-300x29.png 300w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/a><br \/>\n<a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/4.png\"><img decoding=\"async\" style=\"margin: 0;\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/4.png\" alt=\"4\" width=\"745\" class=\"aligncenter size-large wp-image-214\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/4.png 744w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/4-300x28.png 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/a><\/p>\n<p>It will remove unnecessary data from sidebar.<\/p>\n<p>2) Next, in your Back Office go to <span style=\"font-weight:bold;\">Preferences -&gt; General<\/span>.<br \/>\nThere you can turn off displaying suppliers and manufacturers:<\/p>\n<p><a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/5.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/5.png\" alt=\"5\" width=\"983\" height=\"82\" class=\"aligncenter size-full wp-image-215\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/5.png 983w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/5-300x25.png 300w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/5-768x64.png 768w\" sizes=\"(max-width: 983px) 100vw, 983px\" \/><\/a><\/p>\n<p>3) Also, you can disable some pages in robots.txt. So, search engines will not show these pages.<\/p>\n<div class=\"codecolorer-container text blackboard\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/><\/div><\/td><td><div class=\"text codecolorer\">User-agent: *<br \/>\nDisallow: *\/manufacturer<br \/>\nDisallow: *?controller=manufacturer<br \/>\nDisallow: *\/supplier<br \/>\nDisallow: *?controller=supplier<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Be careful and don&#8217;t disable other pages, for example if they contain &#171;\/manufacturer&#187; in their urls.<\/p>\n<p>4) If you want to disable only one page, you can do it with overrides. By this method you can disable any page.<br \/>\nFor example, let&#8217;s disable manufacturers page.<br \/>\nCreate file <span style=\"font-weight:bold;\">\/override\/controllers\/front\/ManufacturerController.php<\/span> and copy this code there:<\/p>\n<div class=\"codecolorer-container php blackboard\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/><\/div><\/td><td><div class=\"php codecolorer\"><span class=\"kw2\">&lt;?php<\/span><br \/>\n<br \/>\n<span class=\"kw2\">class<\/span> ManufacturerController <span class=\"kw2\">extends<\/span> ManufacturerControllerCore<br \/>\n<span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"kw2\">public<\/span> <span class=\"kw2\">function<\/span> init<span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; parent<span class=\"sy0\">::<\/span><span class=\"me2\">init<\/span><span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; <span class=\"co1\">\/\/ Disable page<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; Tools<span class=\"sy0\">::<\/span><span class=\"me2\">redirect<\/span><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'pagenotfound'<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"br0\">&#125;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;t use these features &#8212; so let&#8217;s hide them.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/212"}],"collection":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":12,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/212\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}