Pour ceux que cela pourrait intéresser, ci dessous le code à mettre dans le fichier que vous créez dans /catalogue/includes/modules/ExU/googlesitemap.php
CODE
<?php
/*
$Id: export.php, version 1.3 Mardi 18 Mars 2008 Vaisonet Exp $
Contribution Export universel
http://www.vaisonet.com
Copyright © 2008 Vaisonet
Released under the GNU General Public License
*/
$comp = array("Google Sitemap");
$header = 'Content-Type: text/xml';
$head = '<?xml version="1.0" encoding="UTF-8"?>' .chr(10) . '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'.chr(10).
'<url>
<loc>http://www.votresite.com/</loc>
<priority>0.9</priority>
</url> ';
$output .= '<url><loc>'. tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id']) . $libre .'</loc>'.chr(10).'</url>';
$foot = '</urlset>';
?>
/*
$Id: export.php, version 1.3 Mardi 18 Mars 2008 Vaisonet Exp $
Contribution Export universel
http://www.vaisonet.com
Copyright © 2008 Vaisonet
Released under the GNU General Public License
*/
$comp = array("Google Sitemap");
$header = 'Content-Type: text/xml';
$head = '<?xml version="1.0" encoding="UTF-8"?>' .chr(10) . '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'.chr(10).
'<url>
<loc>http://www.votresite.com/</loc>
<priority>0.9</priority>
</url> ';
$output .= '<url><loc>'. tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id']) . $libre .'</loc>'.chr(10).'</url>';
$foot = '</urlset>';
?>
N'oubliez pas de changer www.votresite.com!!!
Ce petit add sur cette superbe contrib ne tiens pas compte des catégories, uniquement votre page d'accueil et les produits, pour le reste a vous de jouer...