DARKF3D3 Posted March 4, 2017 Share Posted March 4, 2017 I'm using manufactured and supplier into back office, but i don't want to show them on my shop. Ho can i disable them only of F.O.? Link to comment Share on other sites More sharing options...
shokinro Posted March 4, 2017 Share Posted March 4, 2017 you can uninstall related modules that shows manufacture block and supplier block. manufacturer block supplier block Link to comment Share on other sites More sharing options...
DARKF3D3 Posted March 4, 2017 Author Share Posted March 4, 2017 I disabled and uninstalled both the module, but the page are still available, in fact they can be opened typing the url in the browser, and teh're also indexed on search engine. Link to comment Share on other sites More sharing options...
shokinro Posted March 4, 2017 Share Posted March 4, 2017 The page is always there as long as the page controller is there. If you want complete; remove this page, you need rename or remove the page controller /controllers/front/ManufacturerController.php /controllers/front/SupplierController.php Link to comment Share on other sites More sharing options...
DARKF3D3 Posted March 4, 2017 Author Share Posted March 4, 2017 You mean renaming that I have to rename that 2 files? Link to comment Share on other sites More sharing options...
shokinro Posted March 4, 2017 Share Posted March 4, 2017 yes the 2 files to something else, for example /controllers/front/ManufacturerController.php ==> ManufacturerController.php.disabled /controllers/front/SupplierController.php ==> SupplierContoller.php.disabled Link to comment Share on other sites More sharing options...
rocky Posted March 5, 2017 Share Posted March 5, 2017 There's actually a setting available for this in the Back Office. Go to the Preferences > General tab and change "Display suppliers and manufacturers" to "No" and then click the "Save" button at the bottom. 2 Link to comment Share on other sites More sharing options...
DARKF3D3 Posted March 5, 2017 Author Share Posted March 5, 2017 Hello rocky, I looked at that setting but it was already disable on both my website, but the manufacturer pages are still visible. Link to comment Share on other sites More sharing options...
rocky Posted March 6, 2017 Share Posted March 6, 2017 Weird. I guess you must be using a third-party theme that doesn't support that option. Link to comment Share on other sites More sharing options...
shokinro Posted March 6, 2017 Share Posted March 6, 2017 I think the configuration option will only hide or remove option for manufacturer or suppliers on product related pages. but if you manually enter the URL of the page ( can be opened typing the url in the browser), it will still shows because the pages are always there unless you rename/remove the page controller. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted May 23, 2017 Author Share Posted May 23, 2017 Following the shokinro tip I renamed supplier and manufacturer controller, and now that pages are no more visible. The only annoying thing it's that now my server error log it's full of warns like this one: mod_fcgid: stderr: PHP Fatal error: Class 'ManufacturerControllerCore' not found in /var/www/vhosts/my-domain.com/httpdocs/override/controllers/front/ManufacturerController.php on line 11 Do you know if there's an alternative method to avoid this? Link to comment Share on other sites More sharing options...
slamvape Posted October 24, 2020 Share Posted October 24, 2020 I don't understand why have both Manufacturer and supplier are together. Do you really want your customers to know who your suppliers are? 1 Link to comment Share on other sites More sharing options...
Ben Rich Posted December 25, 2020 Share Posted December 25, 2020 I don't know if my solution is the best way of doing it but it's better than anything here. Hope it helps Add an override file here: ./overrides/controllers/front/ManufacturerController.php <?php class ManufacturerController extends ManufacturerControllerCore { public function initContent() { parent::initContent(); // set 404 headers header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); // load 404 template $this->setTemplate(_PS_THEME_DIR_.'404.tpl'); } } The same will no doubt be true for the Supplier Controller. Also remember to remove manufacturer & supplier from our robots.txt file Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now