Without an error, I can't go any further.
OK, thanks
Posted 14 October 2006 - 02:16 AM #21
Without an error, I can't go any further.
Posted 14 October 2006 - 02:36 AM #22
Without an error, I can't go any further.
Posted 14 October 2006 - 02:53 AM #23
Mine works perfect also and it is totally automated:just for information, i'm using also "SOFTplus GSiteCrawler" (http://gsitecrawler.com/), and them google sitemap works perfect!
You can see example:
http://www.indymart.net/sitemap.xml
Larry
SculptingStudio.com
DigitalOcean VM
Ubuntu 14.04
Nginx
Posted 14 October 2006 - 03:40 AM #24
Mine works perfect also and it is totally automated:
http://www.sculpting...=google_sitemap
Posted 16 October 2006 - 03:18 PM #25
Posted 16 October 2006 - 06:19 PM #26
Yes, your last tag shoudl be </urlset> and the text should be UTF-8 encoded. You have to submit your feed to google and based on the <changefreq> setting, this will determine the approximate time google will read your feed again.Hi, great idea, I have been working on my site www.tapetechtools.com and love the cs-cart software. This is a small part of the file produced. Is this the correct way? and or how does google read a product from this.
Larry
SculptingStudio.com
DigitalOcean VM
Ubuntu 14.04
Nginx
Posted 18 October 2006 - 12:53 AM #27
just for information, i'm using also "SOFTplus GSiteCrawler", and them google sitemap works perfect!
You can see example:
http://www.indymart.net
Posted 20 October 2006 - 08:11 AM #28
<?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('IN_CSCART') ) { die('Access denied'); } $products=$categories=array(); $categories_all=db_get_array("SELECT category_id FROM $db_tables[categories] WHERE membership_id=0 && avail='Y'"); $products_all=db_get_array("SELECT product_id FROM $db_tables[products] WHERE avail='Y'"); 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 <<<START <?xml version="1.0" encoding="UTF-8"[COLOR="Red"]?>[/COLOR] <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"> <url> <loc>$siteurl</loc>so the end of the code doesn't work, i try to change but i don't find the good solution, if someone have an idea.
Posted 02 November 2006 - 10:45 PM #29
Voulez-vous dire la pièce j'avoir accentué dans le rouge ?i see that the php tags are closed bedore the end of the file.
echo <<<START <?xml version="1.0" encoding="UTF-8"[color=red]?>[/color]Ce n'est pas une étiquette de fermeture parce qu'il est contenu dans une corde. J'ai attaché le code dans un dossier de fermeture éclair.
Larry
SculptingStudio.com
DigitalOcean VM
Ubuntu 14.04
Nginx
Posted 21 November 2006 - 09:39 AM #31
has anyone implemented this in .4?
=)
Posted 21 November 2006 - 10:18 AM #32
Posted 23 November 2006 - 08:50 PM #33
Posted 07 December 2006 - 11:15 PM #35
I use google sitemap on my cs-cart 1.3.4, and it run perfectly, but i have activate the seo module and i would like to know if it is possible to have the link in google sitemap like the name of the page rewriting ?
To have http://www.xxxxx.com/page-c168.html instead http://www.xxxxx.com...category_id=168
Posted 07 December 2006 - 11:24 PM #36
what exactly does a site map do?
www.google.com/analytics/It allows the 'googlebot' / bot to see the updated pages and will usually index pages based on the changes. Makes things more efficient.
Posted 13 December 2006 - 11:07 PM #38
Posted 13 December 2006 - 11:29 PM #39
<?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 © RENS Management, LLC. All rights reserved.
//========================================================================
if ( !defined('IN_CSCART') ) { die('Access denied'); }
$products=$categories=array();
$categories_all=db_get_array("SELECT category_id FROM $db_tables[categories] WHERE membership_id=0 && avail='Y'");
$products_all=db_get_array("SELECT product_id FROM $db_tables[products] WHERE avail='Y'");
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 <<<START
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>$siteurl</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>\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 <<<LINKS
<url>
<loc>$link</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n
LINKS;
}
// process products
foreach ($products as $product) {
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=products&product_id=$product"));
fn_convert_php_urls($link);
echo <<<LINKS
<url>
<loc>$link</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n
LINKS;
}
echo <<<END
</urlset>
END;
exit;
?>
Posted 14 December 2006 - 12:12 AM #40
//Convert manufacturer links
} elseif ($res['target'] == 'manufacturers' && !empty($res['manufacturer_id'])) {
$name = db_get_field("SELECT manufacturer FROM $db_tables[manufacturer_descriptions] WHERE manufacturer_id='$res[manufacturer_id]' AND lang_code='$cart_language'");
$link = fn_generate_name($name, 'm', $res['manufacturer_id']).'.html';
<?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 $
//
// SEO modifications by Zyles
//
// Copyright 2006 © RENS Management, LLC. All rights reserved.
//========================================================================
if ( !defined('IN_CSCART') ) { die('Access denied'); }
$products=$categories=array();
$categories_all=db_get_array("SELECT category_id FROM $db_tables[categories] WHERE membership_id=0 && avail='Y'");
$products_all=db_get_array("SELECT product_id FROM $db_tables[products] WHERE avail='Y'");
$manufacturers_all=db_get_array("SELECT manufacturer_id FROM $db_tables[manufacturers] WHERE avail='Y'");
while (list(, $cats) = each($categories_all)) $categories[]=$cats['category_id'];
while (list(, $items) = each($products_all)) $products[]=$items['product_id'];
while (list(, $manufacs) = each($manufacturers_all)) $manufacturers[]=$manufacs['manufacturer_id'];
header("Content-Type: text/xml;charset=utf-8");
$lastmod = date("Y-m-d", time());
$siteurl = utf8_encode(htmlentities("$http_location"));
echo <<<START
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>$siteurl</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>\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 <<<LINKS
<url>
<loc>$link</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n
LINKS;
}
// process products
foreach ($products as $product) {
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=products&product_id=$product"));
fn_convert_php_urls($link);
echo <<<LINKS
<url>
<loc>$link</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n
LINKS;
}
// process manufacturers
foreach ($manufacturers as $manufacturer) {
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=manufacturers&manufacturer_id=$manufacturer"));
fn_convert_php_urls($link);
echo <<<LINKS
<url>
<loc>$link</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n
LINKS;
}
echo <<<END
</urlset>
END;
exit;
?>