Jump to content

Modify shop sitemap (not google) in 1.7


Recommended Posts

[sOLVED ?]





So I am setting up a shop and don't like that some things shop up on the Sitemap (I have disabled them in the other blocks). Like "Suppliers" or "Our stores"..


I've been digging through the template files (as read on comments for 1.6) but apparently things have changed a lot.


Where can one get rid off those links?




Edited by ThomasF (see edit history)
Link to comment
Share on other sites

So I found the place.. ./controllers/front/SitemapController.php for now I commented out the respective parts and put it in the overrides. Hopefully over time I can come up with a solution that does not include messing with the core (what happens on next update?)

Edited by ThomasF (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 3 years later...

A bit late (3+ years ago), but still this thread helped me find what I was looking for.

I overrided the template /themes/my_theme/templates/cms/sitemap.tpl and removed the links that were not needed.

Better than changing controllers.

* Prestashop 1.7

  • Like 1
Link to comment
Share on other sites

  • 7 months later...

Is there a way to exclude certain pages in 1.7? I used to have this in sitemap.tpl for version 1.6 but not working in 1.7 :(

                {foreach from=$categoriescmsTree.cms item=cms name=cmsTree}
              <!-- EXCLUDE SPECIFIC PAGES -->
        {if $cms.id_cms==20 || $cms.id_cms==24 || $cms.id_cms==31 || $cms.id_cms==33 || $cms.id_cms==41 || $cms.id_cms==17 || $cms.id_cms==42 || $cms.id_cms==15 || $cms.id_cms==16 || $cms.id_cms==18 || $cms.id_cms==32 || $cms.id_cms==65 || $cms.id_cms==66}
                        <a href="{$cms.link|escape:'html':'UTF-8'}" title="{$cms.meta_title|escape:'html':'UTF-8'}">


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...