Site Map Page

The store site map

Since Zen Cart 1.3.0, a storefront sitemap has been automatically produced. The purpose of this sitemap is to provide visitors with a single place to see all the categories in the store. It’s just another mechanism for your customers to discover what’s in your store.

Other pages are also included in the Site Map, such the Define Pages, Advanced Search Page and EZ-Pages.

Site Map

This site map is produced for the benefit of human visitors, and should not be confused with an XML sitemap, which is produced for the benefit of search engines.

The site map may be accessed at the URL index.php?main_page=site_map. There is frequently a link to the site map in a store’s footer, header or a sidebox.

Extending the Site Map

You may wish to extend your sitemap if you have customized your site in the following ways:

The easiest way to do this is to

  • Copy the file includes/templates/template_default/templates/tpl_site_map_default.php to your template (i.e. includes/templates/YOURTEMPLATE/templates/tpl_site_map_default.php)
  • Either add specific references to files (the way FILENAME_SPECIALS is handled) or add PHP code that creates a list dynamically (either using a database query or a filesystem operation).

If you want to list all the files in the folder, these StackOverflow posts might help:




Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified June 15, 2023 by Scott C Wilson (1565774).