Add the About Us Page to the Sitemap

All of our free template packages come with the About Us page module installed. This module adds a page called “About Us” to the zen cart define pages which can be edited in the zen cart admin define pages editor. Adding the About Us page to the
your site map (and any other site pages) is important because it increases the caching and indexing of your websites’ pages.

Step One is to follow the tutorial here to add the About Us page to your Admin -> Configuration -> Define Pages Status menu. The status must be set to “1” for the page to show on your sitemap:

Easy Help Zen Cart Tutorial: How To Add About Us Page to Configuration – Define Page Status

Next, in your favorite plain text editor, open includes/templates/override-directory/templates/tpl_site_map_default.php file. If the file is not there, create an override for it by copying the includes/templates/template_default/templates/tpl_site_map_default.php to includes/templates/override-directory/templates/tpl_site_map_default.php.

At the end of the file, just before the last tag, add the following code:


<?php if (DEFINE_ABOUT_US_STATUS <= ‘1’) { ?>
<li><?php echo ‘<a href=”‘ . zen_href_link(FILENAME_ABOUT_US) . ‘”>’ . BOX_INFORMATION_ABOUT_US . ‘</a>’; ?></li>
<?php } ?>

***This is a php file and MUST be edited in a plain text editor. If you try to edit this file in any type of wysiwyg editor, the code will be corrupted and when you insert the file back into your zen cart it will break your entire site.***

Save the file.

Navigate to your sitemap page and hit the “refresh” button to see the page added.

If you need help customizing your zen cart web site, or would like a great custom design, please contact us for a quote.