Jump to content

How to remove link Our Store from sitemap? prestashop 1.7.2.2


vigel

Recommended Posts

solution:

 

 

/controllers/front/SitemapController.php

 

function:

 protected function getPagesLinks()

/*
$links[] = array(
            'id' => 'stores-page',
            'label' => $this->trans('Our stores', array(), 'Shop.Theme.Global'),
            'url' => $this->context->link->getPageLink('stores'),
        );
*/
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Once Stores is removed from Our Company block, it will be removed from Site Map.

To remove Stores from Our Company block,Go to back office, Design > Link Widget, edit "Our Company", and then remove the "Stores" link from the "Our company" block.

Are you sure this removes the link "our stores" from SITEMAP SITE ? Cannot see it is working after deletion of all stores and cache cleared. The are still as link there.

 

The tip you are giving, is for how to remove them form "company block", but not from sitemap site.

Link to comment
Share on other sites

  • 3 years later...
On 9/14/2017 at 7:06 AM, selectshop.at said:

Yeah, but you should make this via override. Otherwise, when you upgrade the software your solution will over written and the link again there. Better is to delete the link from template. So create an own template clone and remove it from there.

How can i delete the link from template?

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...