Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can't get custom template to display - keeps using default

Can't get custom template to display - keeps using default

Locked

Views: 749

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
27 Jan 2010, 12:49 PM
#1
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

Can't get custom template to display - keeps using default

Hi,

New here, so TIA for any help!

I'm setting up a store for a florist, and I've read the tutorials about using custom templates, but can't seem to get them to work.

Within my includes/languages/ENGLISH folder, I've created a folder called FLOWERS. I copied the index.php file that I found in the /ENGLISH folder to my FLOWERS folder, replaced the 'Congratulations... etc' text with my own message, and saved the new folder and file to the server.

However it is still using the original index.php file from the ENGLISH folder... what am I doing wrong?? :wacko:

Thanks,
J.

27 Jan 2010, 1:30 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Can't get custom template to display - keeps using default

Did you actually create the FLOWERS template (including the template_info.php file) and select it in Admin - Tools - Template Selection ?

Basic idea here:

https://www.zen-cart.com/tutorials/index.php?article=142

27 Jan 2010, 1:34 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Can't get custom template to display - keeps using default

You need to follow the protocols of creating a custom template...

  1. Open each of these folders in turn, and DRILL down into all sub folders...

includes/templates

includes/languages

includes/modules

  1. Now, you say you want a template called flowers ...

  2. As you drill down (step 1) wherever you see a folder called classic, create a folder called flowers - so that they exist at the same "level" as each other...

NB: do not use UPPERCASE when naming your template...
**
FLOWERS** .... no
flowers .... yes

When you have done that, come back here to read my next post...

27 Jan 2010, 1:36 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Can't get custom template to display - keeps using default

Steve got there first :D... read that tut...

... however, I did promise to spell it out a bit more, so here we go.

27 Jan 2010, 1:53 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Can't get custom template to display - keeps using default

It will help a lot if you have a local copy of the unzipped zencart software, so I am assuming you have a copy of the zencart software on your home (local) computer...

Use your FTP program...

In the left FTP frame (local machine), navigate to:

includes/templates/classic/

In there you will see:

|_ css (folder)
|_ images (folder)
|_ template_info.php

In the right ftp frame (remote server), navigate to:

includes/templates/flowers/ (currently empty)

Now from the LEFT FTP frame, select all these

|_ css (folder)
|_ images (folder)
|_ template_info.php

... and send them to the right frame...

When done, you will have:

includes/templates/flowers/
|_ css
|_ images
|_ template_info.php

From the right ftp frame, open template_info.php for editing.

As this is an exact copy of the classic template info file, you will now change it to suit your template.

<?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 = 'flowers';
$template_version = 'Version 1.3.8';
$template_author = 'your name';
$template_description = 'Your description.';
$template_screenshot = 'if applicable - your screen image';
?>

SAVE the file...

Now... use the LEFT FTP FRAME to navigate to the original classic folders.

In the RIGHT FRAME, navigate to all your flowers folders

(We need to make sure that whatever is contained in the "unused" classic folders, is also in your new flowers folders.)

So... navigate around, making sure that whatever is in the left frame classic folder, is copied across to your corresponding flowers folder.

What you have done, basically, is create a CLONE of classic. When you install it, it will look exactly like classic template!

you will think WHA....??? There's no change!

... not until you start customizing it...

First thing I usually do is put a new LOGO image into the includes/templates/MY-TEMPLATE/images folder...

This then shows up on the site, so I know that I am using the new template.

28 Jan 2010, 11:57 AM
#6
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

Re: Can't get custom template to display - keeps using default

Thank you so much guys!

I had downloaded a template (zen-cart-v1.3.8a-full-fileset-12112007) to my local machine to use on the new site, but I don't actually have all the zencart software downloaded - but I've just now copied the 'includes' folder and all its contents onto my local machine - I guess that's all the the files I need?

Within the languages, templates and modules folders, I've created a 'flowers' folder everywhere I saw a 'classic' folder, and selected my new flowers template in Admin. It all looked completely different to what I had been seeing, so I then copied all the files from the 'classic' folders (and the 'orange' folder, which is the template I was using) back up onto the server but into the 'flowers' folder instead. That all sound right?

Aha, I've just refreshed my page and all is looking good! :clap:

Thanks a mil, I'll keep going now and see how I get on - I'm sure I'll be back with plenty of questions (after checking the tutorials first of course! :yes: )

J.