lat9 / sitemapxml

This Script generates an Sitemap as described sitemaps.org
Other
1 stars 2 forks source link

SitemapXML

Version

v4.0.2 21.Jun.2024

Authors

Andrew Berezin http://eCommerce-Service.com, @mc12345678 https://github.com/mc12345678, @lat9 https://github.com/lat9

Thanks Special thanks to DivaVocals for the quality of the readme.

Description

This Script generates a Sitemap as described here:

It can be downloaded from the Zen Cart Plugins repository here: https://www.zen-cart.com/downloads.php?do=file&id=367

Note: Version 3.9.9 and later require that the store have a CHARSET that specifies utf-8 encoding and a database using a DB_CHARSET of either utf8 or utf8mb4.

Zen-Cart Versions Supported

1.5.8[a], 2.0.x

Support thread

https://www.zen-cart.com/showthread.php?126810-SitemapXML-v-2

Affected files

None

Affects DB

Yes (creates new records into configuration_group, configuration and admin_pages tables).

DISCLAIMER

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

Features:

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.

$_GET parameters:

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. BACK UP your database & store.
  2. Unzip the SitemapXML package to your local hard drive, retaining the folder structure.
  3. Rename the YOUR_Admin folder in the sitemapXMLolder to match the name of your admin folder.
  4. Upload the files from sitemapXML to the root of your store. Do not upload the sitemapXML folder, just the contents of this folder and be sure to copy all of the files to your store!! Most issues are caused by store owners who decide to not load all of the module files).
  5. Set permissions on the directory /sitemap/ to 777.
  6. Go to Admin :: Configuration :: Sitemap XML and setup all parameters.
  7. Go to Admin :: Tools :: Sitemap XML (If error messages occur, change permissions on the XML files to 777).
  8. To have the site's sitemap files automatically update, you will need to set up a Cron job via your host's control panel. Refer to the admin tool's tips for additional information.

Upgrade:

Note: If you are upgrading from a version prior to v4.0.0 to v4.0.0 or later, there are files to be removed from your site. See this Wiki article for additional information.

  1. BACK UP your database & store.
  2. Unzip the SitemapXML package to your local hard drive, retaining the folder structure.
  3. Rename the YOUR_Admin folder in the sitemapXML folder to match the name of your admin folder.
  4. Upload the files from sitemapXML to the root of your store. Do not upload the sitemapXML folder, just the contents of this folder and be sure to copy all of the files to your store!! Most issues are caused by store owners who decide to not load all of the module files).

Un-Install:

See this Wiki article for additional information.

History