
Originally Posted by
sfuller94
Oh, and I'm just learning so I'm not sure how to create a custom template. I've been just changing the classic one. Should I save off the classic template into another folder and rename it before I go customizing it?
Thanks for the help!
No... this will probably "break" the site.
The OVER-RIDE SYSTEM is quite detailed. It involves MODULE FILES, LANGUAGE FILES and TEMPLATE FILES.
You FIRST need to do this:
1. BACKUP YOUR FILES and DATABASE !!!!!!!!!!
2. FTP your ENTIRE "includes" folder to your hard drive. You will make the following changes on your LOCAL MACHINE ONLY - NOT ON THE SERVER.
3. When the FTP is complete, on your machine, go into the INCLUDES folder and look through ALL SUB-FOLDERS in:
/includes/languages/...
/includes/modules/...
/includes/templates/...
Drill down in EACH of those sub-folders, and wherever you see a folder called "classic", change its name to "soninllc".
You will have to go to ALL SUB-LEVELS in these folders, because there are many "classic" folders in the sub-directories, and sub-sub-directories. EACH ONE must be changed to "soninllc"
4. When you have RE-NAMED ALL of the classic folders to soninllc, GO TO:
includes/templates/soninllc/template_info.php
and open it for EDITING:
The ORIGINAL code looks 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 so it looks 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 = 'Sonin LLC';
$template_version = 'Version 1.5';
$template_author = 'Sonin LLC 2012';
$template_description = 'This is the custom Sonin Template';
$template_screenshot = '';
?>
REMEMBER... ALL THIS EDITING HAPPENS ON THE COPIES THAT ARE ON YOUR HARD DRIVE - NOT THE SERVER'S FILES.
5. You now have a CUSTOM template called soninllc on your hard drive.
6. NOW... MAKING SURE YOU HAVE BACKED UP EVERYTHING ON THE SERVER...
7. FTP the "includes" folder BACK to the server. WHEN YOUR FTP ASKS IF YOU WANT TO OVERWRITE EXISTING FOLDERS/FILES, CHOOSE "NO"... (You don't want to overwrite anything... Your FTP will simply just load all the soninllc folders and their contents to the server.)
8. You will now have a soninllc template on the server, as well as the classic template (which you have partly edited, but don't worry about that yet).
9. Log into your ADMIN CONSOLE.
10. Go to TOOLS >>> TEMPLATE SELECTION and select your new soninllc template using the EDIT function.
11. After you have selected this new template, go to TOOLS >>> LAYOUT BOXES CONTROLLER and scroll to the bottom where you see a RE-SET BUTTON. Click that button.
Your template is now installed, and should be identical to the changes you originally made in the classic template.
Ideally, you should remove changes you originally made to classic by restoring it to its ORIGINAL state.
Bookmarks