kevin78 Posted March 19, 2014 Share Posted March 19, 2014 Hello I would like to not allow to visit the suppliers page Anybody has a solution please ? Link to comment Share on other sites More sharing options...
kevin78 Posted March 21, 2014 Author Share Posted March 21, 2014 nobody Link to comment Share on other sites More sharing options...
vekia Posted March 21, 2014 Share Posted March 21, 2014 hello just remove links to suppliers page from your tpl files or just disable all supplier modules ( like supplier block etc. ) Link to comment Share on other sites More sharing options...
inweb Posted March 23, 2014 Share Posted March 23, 2014 Put the following to your .htaccess file (applies to PS 1.5 and later): RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{QUERY_STRING} ^(.*)controller=supplier(.*)$ RewriteRule ^(.*)$ http://www.yourdomain.com [R=301,L] 1 Link to comment Share on other sites More sharing options...
kevin78 Posted March 25, 2014 Author Share Posted March 25, 2014 Thank you inweb I will test it tomorrow, but i think it is the good solution Link to comment Share on other sites More sharing options...
Mister Denial Posted August 19, 2014 Share Posted August 19, 2014 (edited) Disabling the suppliers block in the BO does not remove it from the sitemap, nor does disabling all suppliers, there still is an empty suppliers page, accessible to customers. You could redirect your suppliers page to the manufacturers page, and / or remove it from the sitemap.tpl of your theme. Edited August 19, 2014 by Mister Denial (see edit history) Link to comment Share on other sites More sharing options...
me-and-prestashop Posted November 17, 2014 Share Posted November 17, 2014 I am trying to give one customer group access to suppliers, but not visitors and other groups. For each customer group I can authorize modules from the (admin) group edit page. If "Suppliers block" is set to "NO", visitors and other groups are still authorized to see suppliers page (/supplier) and the site map suppliers link. The logic of restricting some customer groups from seeing suppliers should apply to these places as well. How can one do a if-test to see if the person is authorized for "Suppliers block" (in e.g. theme sitemap.tpl, supplier-list.tpl, supplier.tpl ) Link to comment Share on other sites More sharing options...
Recommended Posts