Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / can't select custom template

can't select custom template

Locked

Views: 2,306

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
27 Jun 2007, 8:48 PM
#1
wysiwygmn avatar

wysiwygmn

New Zenner

Join Date:
Apr 2007
Posts:
38
Plugin Contributions:
0

can't select custom template

Hi

In the admin tools template selection, my custom template is not in the dropdown box.

Here's what I have done, per instructions of copying files from template_default to my new directory

Created Folders:

common (and files)
css (and files)
images (and files plus icons folder and contents)
templates

I copied in the template_info.php at the same level as the folders, and changed the name in the code.

Any thoughts?

Andy

27 Jun 2007, 10:08 PM
#2
Kim avatar

Kim

Obaa-san

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

Re: can't select custom template

Please post the lines of code from your template_info.php

27 Jun 2007, 10:59 PM
#3
wysiwygmn avatar

wysiwygmn

New Zenner

Join Date:
Apr 2007
Posts:
38
Plugin Contributions:
0

Re: can't select custom template

Thanks for the reply Kim!

<?php /** * Template Information File * * @package templateSystem * @copyright Copyright 2003-2005 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 2306 2005-11-05 21:34:28Z wilt $ */ $template_name = 'Ounces Template'; $template_version = 'Version 1.0'; $template_author = 'Zen Cart Team (c) 2003'; $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.jpg.'; $template_screenshot = 'scr_template_default.jpg'; ?>
28 Jun 2007, 4:31 PM
#4
wysiwygmn avatar

wysiwygmn

New Zenner

Join Date:
Apr 2007
Posts:
38
Plugin Contributions:
0

Re: can't select custom template

Does anyone have any thoughts as to what I have missed?

Thanks!

28 Jun 2007, 6:05 PM
#5
wysiwygmn avatar

wysiwygmn

New Zenner

Join Date:
Apr 2007
Posts:
38
Plugin Contributions:
0

Re: can't select custom template

Hi

In the admin tools template selection, my custom template is not in the dropdown box.

Here's what I have done, per instructions of copying files from template_default to my new directory.

Created Folders:

common (and files)
css (and files)
images (and files plus icons folder and contents)
templates

I copied in the template_info.php at the same level as the folders, and changed the name in the code.

You help is much apprectiated. code from template_info.php below


<?php /** * Template Information File * * @package templateSystem * @copyright Copyright 2003-2005 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 2306 2005-11-05 21:34:28Z wilt $ */ $template_name = 'Ounces Template'; $template_version = 'Version 1.0'; $template_author = 'Zen Cart Team (c) 2003'; $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.jpg.'; $template_screenshot = 'scr_template_default.jpg'; ?>
28 Jun 2007, 6:09 PM
#6
Kim avatar

Kim

Obaa-san

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

Re: can't select custom template

Please do not start new threads when you don't get an immediate answer to your problem. We are all volunteers and sometimes it takes some time.

What are the chmod permissions on your custom template directory? What are you calling your custom template?

28 Jun 2007, 6:31 PM
#7
wysiwygmn avatar

wysiwygmn

New Zenner

Join Date:
Apr 2007
Posts:
38
Plugin Contributions:
0

Re: can't select custom template

Hi Kim,

CHMOD permissions on the "template_ounces" directory are:

755
owner: read, write, execute
group: read,execute
world: read, execute

Thanks for helping me.

28 Jun 2007, 6:55 PM
#8
Kim avatar

Kim

Obaa-san

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

Re: can't select custom template

Where in the directory structure have you placed your template_ounces directory?

28 Jun 2007, 7:00 PM
#9
wysiwygmn avatar

wysiwygmn

New Zenner

Join Date:
Apr 2007
Posts:
38
Plugin Contributions:
0

Re: can't select custom template

placed in:

/var/www/html/...store name.../includes/templates/template_ounces

28 Jun 2007, 7:33 PM
#10
afo avatar

afo

Totally Zenned

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

Re: can't select custom template

Your custom template folders should look something like the following (you might have more or less folders/files... or slightly different ones... don't worry about that):

  • 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/common/tpl_footer.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

28 Jun 2007, 8:12 PM
#11
wysiwygmn avatar

wysiwygmn

New Zenner

Join Date:
Apr 2007
Posts:
38
Plugin Contributions:
0

Re: can't select custom template

Thanks afo -

I updated the following, per your list

includes/languages/english/YOUR_TEMPLATE/index.php
includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)

The "template_ounces_info.php" has been updated further:

<?php /** * Template Information File * * @package templateSystem * @copyright Copyright 2003-2005 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 2306 2005-11-05 21:34:28Z wilt $ */ $template_name = 'Ounces Template'; $template_version = 'Version 1.0'; $template_author = 'Ounces Tea Company'; $template_description = 'Loose Leaf Tea and Accessories Cart'; $template_screenshot = 'scr_template_default.jpg'; ?>

still doesn't show in admin/tools. any other thoughts or info I can provide someone? Thanks!

28 Jun 2007, 8:38 PM
#12
afo avatar

afo

Totally Zenned

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

Re: can't select custom template

wysiwygmn:

Thanks afo -

I updated the following, per your list

includes/languages/english/YOUR_TEMPLATE/index.php
includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)

The "template_ounces_info.php" has been updated further:
still doesn't show in admin/tools. any other thoughts or info I can provide someone? Thanks!

Is the file really called "template_ounces_info.php"? It should be template_info.php and stored in includes/templates/YOUR_TEMPLATE/.

28 Jun 2007, 9:13 PM
#13
wysiwygmn avatar

wysiwygmn

New Zenner

Join Date:
Apr 2007
Posts:
38
Plugin Contributions:
0

Re: can't select custom template

Thanks SO much everyone. I switched the name back and now it shows up!

FYI - I was following along in the sticky "Customisation_-Templates-_Customizing." Step 9 reads, "Copy (said file) to your working template folder and update it's name."

"Update" to me meant rename...but maybe I misunderstood.

Anyways, thanks again!

Andy

29 Jun 2007, 3:45 AM
#14
afo avatar

afo

Totally Zenned

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

Re: can't select custom template

By "update it's name." (which should be "update its name", btw), the writer meant the editi the name inside the file, not the name of the file itself, but the sentence is definitely unclear.

Glad you got it working. :clap:

29 Jun 2007, 11:55 AM
#15
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Re: can't select custom template

LOL afo

I hate when people "apostrophize" plurals (ie logo's instead of logos) LOL.

There is a great book called "Eats, Shoots and Leaves" about grammar. LOL

wysiwygmn, the file names themselves must stay the same as the "source" files you're overriding. What changes is the information inside the files and the directory names are "custom."

29 Jun 2007, 3:14 PM
#16
afo avatar

afo

Totally Zenned

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

Re: can't select custom template

Despite the fact that I've been working as a programmer for over 20 years, my degree is in English, not computers, so stuff like that is fingernails across a chalk board to me. I've heard of Eats, Shoots and Leaves, but haven't picked up a copy. I should.

Another of my pet peeves is their, there and they're. :blink:

I'll stop now. :smartalec: