JaroslavH Posted July 11, 2013 Share Posted July 11, 2013 Hi, I have create one manufacturer and one supplier. Both are inactive. When I view the site map, manufacturer and supplier there is. If I click on Supplier (manufacturer) I get the message: There are no suppliers. How can I remove a manufacturer and supplier of site maps? Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted July 12, 2013 Share Posted July 12, 2013 uhm! That's weird, are you using a custom theme? In the default one, manufacturers/suppliers are not displayed in the sitemap Link to comment Share on other sites More sharing options...
JaroslavH Posted July 12, 2013 Author Share Posted July 12, 2013 I have only default theme. In gsitemap.php is: // Don't show suppliers and manufacturers if they are disallowed if (!Module::getInstanceByName('blockmanufacturer')->id && !Configuration::get('PS_DISPLAY_SUPPLIERS')) unset($pages['manufacturer']); Suppliers and manufacturers I have got disabled. I think I described it wrong. This is me on the following. Link to comment Share on other sites More sharing options...
NemoPS Posted July 12, 2013 Share Posted July 12, 2013 Oh! I got what you meant now. Well you mean in sitemapcontroller.php right? Otherwise I assume you are using 1.4? Link to comment Share on other sites More sharing options...
JaroslavH Posted July 12, 2013 Author Share Posted July 12, 2013 I have PrestaShop™ 1.5.4.0 Yes, I need to modify sitemapcontroller.php Thanks for the tip. If I delete this $this->context->smarty->assign('PS_DISPLAY_SUPPLIERS', Configuration::get('PS_DISPLAY_SUPPLIERS')); It is OK Can I make a condition, I do not want to delete it? I'll later suppliers use. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts