Jump to content

modification site maps


Recommended Posts

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

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.

 

site_map.png

Link to comment
Share on other sites

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 :rolleyes:

 

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

×
×
  • Create New...