{"id":1063,"date":"2016-03-03T19:39:36","date_gmt":"2016-03-03T16:39:36","guid":{"rendered":"https:\/\/presta.site\/blog\/jak-usunac-strony-dostawcow-i-producentow-w-prestashop\/"},"modified":"2026-06-30T09:12:25","modified_gmt":"2026-06-30T06:12:25","slug":"jak-usunac-strony-dostawcow-i-producentow-w-prestashop","status":"publish","type":"post","link":"https:\/\/presta.site\/blog\/pl\/jak-usunac-strony-dostawcow-i-producentow-w-prestashop\/","title":{"rendered":"Jak usun\u0105\u0107 strony dostawc\u00f3w i producent\u00f3w w PrestaShop"},"content":{"rendered":"<p>Mo\u017cesz ukry\u0107 dane swoich dostawc\u00f3w i producent\u00f3w ze swojej witryny. By\u0107 mo\u017ce nie chcesz ich pokazywa\u0107 wszystkim, a mo\u017ce po prostu nie korzystasz z tych funkcji &#8211; wi\u0119c ukryjmy je.<\/p>\n<p><!--more--><\/p>\n<p>1) Przede wszystkim musisz wy\u0142\u0105czy\u0107 odpowiednie modu\u0142y: &#8220;Blok dostawc\u00f3w&#8221; i &#8220;Blok producent\u00f3w&#8221;. Mo\u017cesz je znale\u017a\u0107 w 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>Usunie to niepotrzebne dane z paska bocznego.<\/p>\n<p>2) Nast\u0119pnie w swoim back office przejd\u017a do <span style=\"font-weight:bold;\">Preferencje -&gt; Og\u00f3lne<\/span>.<br \/>\nTam mo\u017cesz wy\u0142\u0105czy\u0107 wy\u015bwietlanie dostawc\u00f3w i producent\u00f3w:<\/p>\n<p><a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2016\/03\/5.png\"><img loading=\"lazy\" decoding=\"async\" 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=\"auto, (max-width: 983px) 100vw, 983px\" \/><\/a><\/p>\n<p>3) Mo\u017cesz tak\u017ce wy\u0142\u0105czy\u0107 niekt\u00f3re strony w pliku robots.txt. Dzi\u0119ki temu wyszukiwarki nie b\u0119d\u0105 pokazywa\u0107 tych stron.<\/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>B\u0105d\u017a ostro\u017cny i nie wy\u0142\u0105czaj innych stron, na przyk\u0142ad je\u015bli zawieraj\u0105 &#8220;\/manufacturer&#8221; w swoich adresach URL.<\/p>\n<p>4) Je\u015bli chcesz wy\u0142\u0105czy\u0107 tylko jedn\u0105 stron\u0119, mo\u017cesz to zrobi\u0107 za pomoc\u0105 nadpisa\u0144 (overrides). T\u0105 metod\u0105 mo\u017cesz wy\u0142\u0105czy\u0107 dowoln\u0105 stron\u0119.<br \/>\nNa przyk\u0142ad, wy\u0142\u0105czmy stron\u0119 producent\u00f3w.<br \/>\nUtw\u00f3rz plik <span style=\"font-weight:bold;\">\/override\/controllers\/front\/ManufacturerController.php<\/span> i skopiuj tam ten kod:<\/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>Mo\u017cesz ukry\u0107 dane swoich dostawc\u00f3w i producent\u00f3w ze swojej witryny. By\u0107 mo\u017ce nie chcesz ich pokazywa\u0107 wszystkim, a mo\u017ce po prostu nie korzystasz z tych funkcji &#8211; wi\u0119c ukryjmy je.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149],"tags":[],"class_list":["post-1063","post","type-post","status-publish","format-standard","hentry","category-rozwoj"],"_links":{"self":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/1063","targetHints":{"allow":["GET"]}}],"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=1063"}],"version-history":[{"count":0,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/1063\/revisions"}],"wp:attachment":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media?parent=1063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/categories?post=1063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/tags?post=1063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}