Creating the template_info.php file

Why doesn’t my template show up in Tools > Template Selection?

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:

<?php 
$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

<?php  
$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? 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 January 1, 0001