Template Files - What are they and how are they used?

The template files used in Zen Cart® provide the structure and layout of the various pages
of your cart. They make use of the definitions from your LANGUAGE FILES.

These files are located in includes/templates/template_default.
Template files are of three types; common, specific pages and sideboxes. The files can be identified by
a "tpl" prefix (i.e. tpl_filename.php.) Essentially, these files contain all the information necessary to construct the pages used by your shop.

Common Template Files are located in: includes/templates/template_default/common
These files are "common" to every page used throughout Zen Cart®.
These files consist of the Main Page, the Header, the Footer and the Box files used for the sideboxes.

Page Specific Template Files are located in: includes/templates/template_default/templates
These files represent the pages of your cart and include the Index pagethe Log in page and the Product Display pages.
You can change the layout of each page in your shop by editing these "page" files. Doing this is fairly easy since sections of the files are clearly marked by "<!-- bof whatever section -->" and "<!-- eof whatever section -->".

Sidebox Template Files are located in: includes/templates/template_default/sideboxes 
These files contain the instructions for placing content into the sideboxes you are using.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I find out what version of Zen Cart or PHP or MySQL I'm using?

To find out what version of Zen Cart or PHP or MySQL you are currently using, you can simply go...

Getting a BLANK PAGE? Here's the answer ...

If you're getting a blank page when trying to browse to a certain page on your store, or after...

What's New in the Upcoming v2.0 release?

Database Abstraction Layer and Sql CacheThe abstraction layer has been re-factored to include a...

Image Preparation - How-to

I've seen several posts where people obviously aren't quite sure about the best way to set up...

Some tips to modify stylesheet

1. Download Web Developer extension for FireFox here2. Install & restart FireFox. You should...