Generate Additional Sitemap | Prestashop | CodeEshop

CodeEshop
2 min readAug 31, 2020

--

Hey there folks, how it’s going with the module development. I know some of us find it hard to develop modules in Prestashop and it become even harder when you don’t know the most important feature in Prestashop. So if you don’t know about Hooks please go ahead and know about Hook’s first from the Prestashop website as today we are going to talk about how you can easily add new url’s in sitemap which google sitemap doesn’t generate itself.

So are you ready now to know about how to add sitemap in Prestashop.

  1. First you can open the gsitemap module and open file gsitemap.php where you can find the hook “gSitemapAppendUrls” which we will use to add new sitemap file and urls.

2. Open your module files and register the hook “gSitemapAppendUrls”.

3. Define about the hook “gSitemapAppendUrlsand acreateSitemapmethod is used to generate sitemap data.

4. After adding all the url and code you can test with generating sitemap from the “gsitemap”.

Hope it helps you speed up your module development and made sitemap development easy and without using any override for generating sitemaps.

Thanks, for more blogs on development or you want to purchase some awesome modules/plugin you can check our Facebook page and website CodeEshop.

--

--

CodeEshop
CodeEshop

Written by CodeEshop

CodeEshop is Add-on for your need and helps enterprises to grow easily with a large range of ready to use and highly customisable eCommerce products.

No responses yet