View Full Version : Dynamic SiteMap V 1.0

09-23-2009, 05:01 PM
Many changes have been made for version 4.1:

Automatic compatiblity with the following contributions has been added (these contributions are NOT requried to use this contribution):

Multiple Sales Per Product (http://addons.oscommerce.com/info/6944)
Activate & Inactive Categories of Catalog (http://addons.oscommerce.com/info/6462)
Hide Categories & Products (http://addons.oscommerce.com/info/5907)
Enable & Disable Categories (http://addons.oscommerce.com/info/326)

If a category status field from one of these contributions is used then this contribution will automatically use it to hide categories (and products) that are marked as hidden otherwise it will function normally and list all categories that contain at least one active product somewhere down the line.

Added manufacturer listing of all manufacturers with active products to the catalog side dynamic sitemap. NOTE: Because our site uses so many categories I placed this under the list of main files, but I have included a comment in the dynamic_sitemap.php file showing what code to move where if you prefer this list to appear underneath the categories.

If the configuration variable to show counts of products has been set to true in admin then the dynamic sitemap will automatically display product counts for the categories and manufacturers in the site map.

The create_xml_sitemaps.php file has been updated to use the osCommerce function tep_catalog_href_link throughout so that it can use Search Engine Safe URLs if this has been set to true in admin.

Added the new Microsoft Bing search engine to the list of those notified when a new XML site map is created.

Added a new XML site map for the products_new.php file.

Revised the XML site maps so that products are listed with the most recently revised first, categories and manufacturers containing no products are no longer listed in the XML site maps, fixed logic errors where an assignment operator was used insted of the equivalence operator, corrected the system variable used to determine the number of pages of specials, revised the order of files listed in sitemaps.xml so that the most frequently changed site maps are listed first.

Use this version not the one posted just a bit earlier since I just found and fixed and SQL bug in the manufacturers listing of the dynamic sitemap for the catalog. Complete install is attached with upgrade instructions.

More... (http://addons.oscommerce.com/info/3306)