When you have read through:
https://www.zen-cart.com/tutorials/i...hp?article=142
You should be better able to construct your first CUSTOM template.
Let's say you decide to call your CUSTOM template: jeremy1
The first thing you do is make a folder called jeremy1 at the following level
includes/templates/
so you have
includes/templates/jeremy1
Now, inside includes/templates/classic
you will see a PHP file called: template_info.php
Make a COPY of it, and put that copy in:
includes/templates/jeremy1
so you have:
includes/templates/jeremy1/template_info.php
Then, using a plain text editor, open it for editing. The code will look like this:-
PHP Code:
<?php
/**
* Template Information File
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: template_info.php 4226 2006-08-24 02:23:25Z drbyte $
*/
$template_name = 'Classic Contemporary Green';
$template_version = 'Version 1.3.5';
$template_author = 'Zen Cart Team (c) 2006';
$template_description = 'This template set is designed to be easily modified using only the style sheet to change colors, fonts, and the store logo. Three images are required; logo.jpg, header_bg.jpg, and tile_back.gif.';
$template_screenshot = 'scr_template_default.jpg';
?>
Change it to look like this:
PHP Code:
<?php
/**
* Template Information File
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: template_info.php 4226 2006-08-24 02:23:25Z drbyte $
*/
$template_name = 'Jeremy1';
$template_version = 'Version 1.3.8a';
$template_author = 'Jeremy 2009';
$template_description = 'This is Jeremys first custom template.';
$template_screenshot = '';
?>
SAVE the file.
The next step is to get the basics into your new template, so you will need to "mirror" what is going on in the classic folders.
This means you will need (at this point) at least the css folder and the images folder in your new custom template directory. (see inside includes/templates/classic/ and you can even "clone" or copy the css and images folders for now, to put into your custom folder.
Then... navigtate through ALL the folders in:-
includes/languages
includes/modules
... and WHEREVER you see a folder called classic, create a NEW folder at the same level, called jeremy1
This is the first stage of your custom template now complete.
Bookmarks