CRE Loaded Template Customization

February 20, 2007 by hejian

CRE Loaded use osCommerce BTS contribution as the template system.

Create a new Template

Let’s call this template ‘xxx’.

1. Make a new directory: templates/xxx
2. Copy all the files in templates/Original/ to templates/xxx/
3. Rename the templates/xxx/Original.sql to templates/xxx/xxx.sql
4. Go to Admin - Design Control - Template Management and insert the new template.

Customization

Edit these files of your tempalte to quick customize your template:

templates/xxx/header.php
This is the header for you template if you do not want to use it just include the information in the mainpage.tpl.php

templates/xxx/footer.php
This is the footer for your template. If you do not want to use it just include the information in the mainpage.tpl.php

templates/xxx/main_page.tpl.php
This is the bread and butter of your template. It sets up how your template will work and be displayed.

templates/xxx/stylesheet.css
The style sheet has the information about what fonts to use, their size and color, backgrounds for html table, rows and cells and other CSS controlled features.

templates/xxx/boxes.tpl.php
This file contains code for the php class that generates boxes. It is used to produce the look and feel of your boxes. It places the images around the borders of the boxes, side and center.

templates/content/
This is where the pages go for all templates. All templates pull there pages from here.
Note: Some pages use files in the includes/module directory.

templates/xxx/xxx.sql
This file contains the code so that if you want to reload your template you can. It should contain all of the initial settings for your template including the information about side boxes. The name of the screencapture graphic should match the name of the SQL file, and this should match the name of the template directory.

templates/xxx/mainpage_modules/
This is an optional directory

If your template requires the mainpage modules adapted so they work with your template then they will go in here. Otherwise CRE Loaded will use the Mainpages in the : includes/modules/mainpage_modules directory

By default most templates use the mainpage_modules directory for the whole store.If you need special main pages they are placed here. When you create this directory in a template then this directory will become the default for your template but only for the template where this direcotry resides.

/templates/xxx/boxes/
All of your side boxes will go here whether they are left or right boxes.

/templates/xxx/images/
Any image that is unique to your template goes here. This includes things such as logos, and the screen capture of what the template look like for the admin.

/templates/xxx/images/buttons/
This is the place where all of your buttons for the template go.

/templates/xxx/images/infobox/
Here is where the images that go around your side and center boxes should be found.

templates/xxx/extra_html_output.tpl.php
Unless you are doing an advanced template you will not need to edit this file. This file contains extra php functions for displaying images and buttons.

Leave a Reply

You must be logged in to post a comment.

Wordpress template made by HeJian