Jump to content

How to change the default sitemap file name?


uvip

Recommended Posts

We are using google sitemap v1.8, we are wondering how to change the generated default sitemap file name? I mean everytime it is generated, it can be used the desired name, not from ftp everytime to manually do the change.

 

Anyone had an experience? Please help advise.

 

THANKS

Link to comment
Share on other sites

  • 2 weeks later...

Why? Well of course everyone is mean and likes ignoring people asking for help :)
...Or maybe no-one knows? :D

In any case, you must change it here:

		file_put_contents(dirname(__FILE__).'/../../'.$this->context->shop->id.'_index_sitemap.xml', $xml_feed->asXML());

modules/gsitemap/gsitemap.php

Link to comment
Share on other sites

  On 1/31/2015 at 9:25 AM, Nemo1 said:

Why? Well of course everyone is mean and likes ignoring people asking for help :)

...Or maybe no-one knows? :D

 

In any case, you must change it here:

		file_put_contents(dirname(__FILE__).'/../../'.$this->context->shop->id.'_index_sitemap.xml', $xml_feed->asXML());

modules/gsitemap/gsitemap.php

 

Thanks for your information. However, I cannot locate the string you mentioned as below file_put_contents(dirname(__FILE__).'/../../'.$this->context->shop->id.'_index_sitemap.xml', $xml_feed->asXML()); in the file modules/gsitemap/gsitemap.php, are you talking about google sitemap v1.8 for prestashop 1.4? Could you please help specify the string for google sitemap v1.8 for prestashop 1.4? Thanks a lot for your help! :)

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