We have a storelocator module on our Magento store, it works well but it is not being added to the Magento google sitemap.
Is there a way to add to our sitemap which Magento automatically generates?
sitemaps
We have a storelocator module on our Magento store, it works well but it is not being added to the Magento google sitemap.
Is there a way to add to our sitemap which Magento automatically generates?
Best Answer
You need to override the method
Mage_Sitemap_Model_Sitemap::generateXml
because Magento does not offer an event you can use for that.Insert your code after the cms pages are added
This is the code that adds the cms pages to the sitemap:
You have to do a similar thing with your page.
You need to loop through your custom pages and do this: