morepork Posted April 20, 2010 Share Posted April 20, 2010 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 More sharing options...
rocky Posted April 21, 2010 Share Posted April 21, 2010 This bug has been fixed in v1.3. Unfortunately, the fix was not provided. I had a quick look at the code, but I can't figure how they fixed the bug. I guess you'll have to wait for v1.3 final to be released and upgrade to it. Link to comment Share on other sites More sharing options...
morepork Posted April 21, 2010 Author Share Posted April 21, 2010 Oh well, bummer, thanks Rocky. Anyone from the Prestashop team able to shed light on this? Link to comment Share on other sites More sharing options...
minh Posted May 8, 2010 Share Posted May 8, 2010 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 More sharing options...
rocky Posted May 8, 2010 Share Posted May 8, 2010 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'} Link to comment Share on other sites More sharing options...
minh Posted May 9, 2010 Share Posted May 9, 2010 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 More sharing options...
Recommended Posts