Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Simple question about building a new template

Simple question about building a new template

Locked

Views: 1,112

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 Mar 2007, 10:02 AM
#1
shade avatar

shade

Zen Follower

Join Date:
Feb 2004
Location:
The Netherlands
Posts:
93
Plugin Contributions:
0

Simple question about building a new template

Hi,

It's been a while since I build a new template for Zen-Cart. Now I'm doing an upgrade from 1.25 to 1.37 and I'm a bit confused.

To build a new template I copied the default_template directory and based my new template on it, but the instructions in the FAQ says different. In the instruction I'm supposed to build the directory structure and only copy a few files.

I realize that copying the default directory should always work, but could someone shine some light on this?

Kind Regards,
Shade

12 Mar 2007, 1:59 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Simple question about building a new template

You only need to have copies of the files that you make changes to in your custom template.

12 Mar 2007, 2:14 PM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Simple question about building a new template

As Kim pointed out, you only need to copy the files you're actually going to change. If you copy everything, it'll be confusing when you have to upgrade/update again because you won't know what you changed and what is just there because you copied it.

To create a very basic custom template (you can build from there), you need:
includes/languages/YOUR_TEMPLATE/english.php
includes/languages/english/YOUR_TEMPLATE/index.php
includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
includes/templates/YOUR_TEMPLATE/template_info.php
includes/templates/YOUR_TEMPLATE/common/tpl_header.php
includes/templates/YOUR_TEMPLATE/images/logo.gif
includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Any where you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder or the /template_default/ folder.

12 Mar 2007, 3:53 PM
#4
shade avatar

shade

Zen Follower

Join Date:
Feb 2004
Location:
The Netherlands
Posts:
93
Plugin Contributions:
0

Re: Simple question about building a new template

Kim & Afo,
thanks, I understand things better now. I will follow the instructions given, I agree that's the best way, specially regarding upgrades.

Kind Regards, Shade