Jump to content

sitemap.php doesn't respect Group category access - Shows everything


Recommended Posts

Hi all,

I've done a bit of searching in the Forums here and haven't come across this issue mentioned before. I notice that sitemap.php builds a category tree from the database, as it should - HOWEVER, I have some categories that are hidden from certain customer groups that I don't want listed in the tree when those groups view the sitemap.

At present, regardless of the customer's group access designation, they can see all my categories in the sitemap tree. If they click on one, an error message is displayed saying "you do not have access to this category", however, it would be better if they do not see these at all.

Does anyone have any code suggestions for having the sitemap.php only display the categories that customer is allowed access to?

Link to comment
Share on other sites

  • 3 weeks later...

I have a related problem/issue. The sitemap shows the pages for Manufacturers and Suppliers even though I have both these blocks uninstalled. So now if a vistor click any of those links in the sitemap they get the 404 error page.

Is there any way to fix this?

(PS. 1.2.5)

Link to comment
Share on other sites

Just edit sitemap.tpl in your theme's directory and {* comment out *} lines 21-22 (in Prestashop v1.2.5):

{l s='Manufacturers'}
{l s='Suppliers'}



Thank you kindly! You're the best!
Link to comment
Share on other sites

×
×
  • Create New...