Creating the template_info.php file

Zen Cart template_info.php file

Activating your template so that you can use your overrides files requires two final steps (the first is one time only, of course).

a. Create includes/templates/YOURTEMPLATE/template_info.php

In order for the system to “see” your template, the template_info.php file must exist inside the includes/templates/YOURTEMPLATE folder.

Create it as follows:

$template_name = 'Your Template Name'

b. Login to your Admin panel and go to Tools > Template Selection. You should see your new custom template(s) in the dropdown list. Select your template.

You are now using your new template.

Full specification for template_info file

If you are going to distribute your template, you should build out the template_info.php file more completely. Use this

$template_name = 'YOURTEMPLATE';  
$template_version = 'Version 1.0';  
$template_author = '<enter your name>';  
$template_description = 'describe your template'; 
$template_screenshot = 'screenshot.jpg';  

Notice there is no closing PHP tag.

Create a screenshot of your template, and save it as includes/templates/YOURTEMPLATE/images/screenshot.jpg. This way people will be able to “preview” your template.

Still have questions? No problem! Just head over to the Zen Cart support forum and ask there.
In your post, please include your Zen Cart and PHP versions, and a link to your site.

Last modified July 8, 2020 by Scott C Wilson (a7ac9e6).