Download Latest Version test2.zip (133 Bytes)
Email in envelope

Get an email when there's a new version of Zen Cart Building Products

Home / wwwroot / building_products
Name Modified Size InfoDownloads / Week
Parent folder
tempEP 2017-06-27
temp 2017-06-27
pub 2017-06-27
numinix_version 2017-06-27
media 2017-06-27
javascript 2017-06-27
includes 2017-06-27
images 2017-06-27
feed 2017-06-27
extras 2017-06-27
email 2017-06-27
editors 2017-06-27
download 2017-06-27
docs 2017-06-27
data 2017-06-27
cgi-bin 2017-06-27
cache 2017-06-27
admin 2017-06-27
__zc_install 2017-06-27
uninstall.sql 2017-06-27 411 Bytes
sitemapproducts.xml 2017-06-27 65.8 kB
sitemapcategories.xml 2017-06-27 13.5 kB
sitemapindex.xml 2017-06-27 698 Bytes
readme.txt 2017-06-27 4.6 kB
page_not_found.php 2017-06-27 675 Bytes
nddbc.html 2017-06-27 2.2 kB
nochex_apc_handler.php 2017-06-27 4.1 kB
old.htaccess 2017-06-27 1.9 kB
license.txt 2017-06-27 15.1 kB
LiveSearchSiteAuth.xml 2017-06-27 81 Bytes
mcalpin_tartan.htm 2017-06-27 301 Bytes
install.txt 2017-06-27 1.5 kB
ipn_main_handler.php 2017-06-27 16.7 kB
index.php 2017-06-27 4.7 kB
install.sql 2017-06-27 7.7 kB
googlefroogle.sql 2017-06-27 10.2 kB
googlesitemap.php.txt 2017-06-27 508 Bytes
htaccess_sample 2017-06-27 2.0 kB
documentation.html 2017-06-27 4.6 kB
googlefroogle.php 2017-06-27 33.6 kB
Totals: 40 Items   190.7 kB 3
Name
====
Google Sitemap

Version Date
==============
v 2.1.0 30.04.2009 10:35

Author
======
Andrew Berezin http://eCommerce-Service.com

Description
===========
This Script generates an Sitemap as described here:
http://www.sitemaps.org/

Support thread
==============
http://www.zen-cart.com/forum/showthread.php?p=725347

Affected files
==============
None

Affects DB
==========
Yes (creates new records into configuration_group and configuration tables)

DISCLAIMER
==========
Installation of this contribution is done at your own risk.
Backup your ZenCart database and any and all applicable files before proceeding.

Features:
=========
- supports multilangual categories and products
- supports Search-Engine Safe URLs
- could be accessed by http or command line
- autogenerates multiple sitemaps for sites with over 50.000 URLs
- autogenerates multiple sitemaps if filesize exceeded 10MB
- writes files compressed or uncompressed
- using index.php wrapper - http://domain.com/index.php?main_page=sitemapxml
- using languages file and etc.
- auto-notify Google, Yahoo!, Ask.com and Microsoft (both live.com and msn.com)
You can use the gzip feature or compress your Sitemap files using gzip.
Please note that your uncompressed Sitemap file may not be larger than 10MB.
- generation of a sitemap index file
- generation of xml-sitemaps for (separate files):
1. Products (support hideCategories),
2. Categories (support hideCategories),
3. Reviews,
4. EZ-pages
- multi-language support,
- 'EZ pages rel=nofollow attribute' support (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=944),
- 'date_added'/'last_modified' support,
- check internal links ('alt_url') by "noindex" rule (main_page in ROBOTS_PAGES_TO_SKIP),
- toc_chapter proccessing
5. Testimonials,

If the products, categories, reviews have not changed since the last generation (time creation corresponding xml-sitemap file), a new xml-sitemap file not created (using existing xml-sitemap).

Priority is calculated on the basis of the positions in the selection from the database, ie the operator ORDER BY in the sql query. First item have priority=1.00, last=0.10. So can no longer be situations where all items in the file have the same priority.
Products - ORDER BY p.products_sort_order ASC, last_date DESC
Categories - ORDER BY c.sort_order ASC, last_date DESC
Reviews - ORDER BY r.reviews_rating ASC, last_date DESC
EZ-pages - ORDER BY p.sidebox_sort_order ASC, last_date DESC
Testimonials - ORDER BY last_date DESC

Support 3 $_GET parameters:
ping=yes - Pinging Google, Yahoo!, Ask.com and Microsoft.

inline=yes - output file sitemapindex.xml. In Google Webmaster Tools you can define your "Sitemap URL":
http://<your shop>/googlesitemap.php?inline=yes
And every time Google will get googlesitemap.php he will receive a fresh sitemapindex.xml.

genxml=no - don't generate xml-files.

rebuild=yes - force rebuild all sitemap*.xml files.

Comments and suggestions are welcome.
If you need any more sitemaps (faq, news, etc) you may ask me, but I will do only if it matches with my interests.

Install:
========
1. Unzip and upload all files to your store directory;
2. Go to Admin->Tools->Install SQL Patches and install install.sql.
3. Go to Admin->Configuration->Google Sitemap Configuration and setup all parameters
4. Go to Admin->Tools>Google XML Sitemap (If error messages occur, change permissions on the XML files to 777);
5. To have this update and automatically notify Google, you will need to set up a Cron
job via your host's control panel.

Tips
====

To run it as a cron job (at 5:0am like you wanted), put something in your crontab like the following:
0 5 * * * GET 'http://your_domain/index.php?main_page=sitemapxml'
or
0 5 * * * wget -q 'http://your_domain/index.php?main_page=sitemapxml' -O/dev/null
or
0 5 * * * curl -s 'http://your_domain/index.php?main_page=sitemapxml'
or
0 5 * * * php -f <path to shop>/cgi-bin/sitemapxml.php rebuild=yes

You can specify the location of the Sitemap using a robots.txt file. To do this, simply add the following line:
Sitemap: http://<your shop>/sitemapindex.xml
This directive is independent of the user-agent line, so it doesn't matter where you place it in your file.
If you have a Sitemap index file, you can include the location of just that file. You don't need to list
each individual Sitemap listed in the index file.

History
=======
v 2.0.0 02.02.2009 19:21 - Initial version
v 2.1.0 30.04.2009 10:35 - Lot of changes and bug fixed
Source: readme.txt, updated 2017-06-27