Google sitemap CS Cart 2.0.8 with SEO

I have a google sitemap who run perfectly under 1.3.5 CS cart Version.

Today I try to modify it to the 2.0.8 version and even if i have doing modification, i have allways syntax error. Do you know if the functions fn_convert_php_urls have allways the same name or not and where is it ?

Thanks for your help.

```php
//=======================================================================

// File: GOOGLE_SITEMAP.PHP

// Description: Google Sitemap Generator.

// Created: 2006-10-12

// Ver: $Id: google_sitemap.php 2 2006-10-12 00:0:00Z lsb $

//

// Copyright 2006 (c) RENS Management, LLC. All rights reserved.

//========================================================================



if ( !defined(‘AREA’) ) { die(‘Access denied’); }



$products=$categories=array();

$categories_all=db_get_array(“category_id SELECT FROM $db_tables[categories] WHERE membership_id=0 && status=‘A’”);

$products_all=db_get_array(“SELECT product_id FROM $db_tables[products] WHERE avail=‘A’”);

while (list(, $cats) = each($categories_all)) $categories[]=$cats[‘category_id’];

while (list(, $items) = each($products_all)) $products[]=$items[‘product_id’];

header(“Content-Type: text/xml;charset=utf-8”);

$lastmod = date(“Y-m-d”, time());

$siteurl = utf8_encode(htmlentities(“$http_location”));

echo <<


http://www.w3.org/2001/XMLSchema-instance”

xsi:schemaLocation=“www.sitemaps.org - /schemas/sitemap/0.9/

http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd

xmlns=“www.sitemaps.org - /schemas/sitemap/0.9/”>



$siteurl

$lastmod

daily

1.0

\n

START;



// process categories

foreach ($categories as $category) {

$link = utf8_encode(htmlentities(“$http_location/$index_script?$target_name=categories&category_id=$category”));fn_convert_php_urls($link);

echo <<


$siteurl/$link

$lastmod

daily

0.5

\n

LINKS;

}

echo <<




END;

exit;

?> ```

the 2.08+ version is available free here:

[url]http://www.snorocket.com/forums/showthread.php?t=222[/url]

Thanks and congratulation for this very good addon.