Forums / Templates, Stylesheets, Page Layout / Custom Template Doesn't Appear in Tools : Template Selection

Custom Template Doesn't Appear in Tools : Template Selection

Locked

Views: 3,117

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Nov 2006, 11:43 PM
#1
frogtaco avatar

frogtaco

New Zenner

Join Date:
Nov 2006
Posts:
7
Plugin Contributions:
0

Custom Template Doesn't Appear in Tools : Template Selection

I've read the tutorials on setting up template overrides, and they all seem to say the same thing, which is a good sign. But when I follow the steps, I get to the part where you click on Admin : Tools : Template Selection : Edit, and my custom theme doesn't appear in the dropdown list along with "Custom Contemporary Green". I'm running a fresh install of ZC 1.3.6 on PHP 4.4.4 / MySQL 4.0.27.

My custom theme directories are all called "pci".

  1. I made a new template directory at includes/templates/pci and made sure it has the same permissions as the existing directories (755).
  2. I made the sub-directories common, css, images, sideboxes, and templates, and made sure that they also had 755 perms.
  3. I copied stylesheet.css from template default to includes/templates/pci/
  4. I copied template_info.php to my custom template directory, and made sure it had 755 permissions.

So, my custom template directory structure looks like this:

I have carefully edited the template_info.php file, making sure that it has the right permissions, that it's in the correct location, and that I didn't do something stupid like use an apostrophe in the description inside the single quotes. It all checks out. In fact, here is the file's contents:

<?php
$template_name = 'pci';
$template_version = 'Version 1.0';
$template_author = 'frogtaco';
$template_description = 'PCI custom ZenCart template.';
$template_screenshot = '';
?>

As far as I can tell, it's all good. But when I go to Admin : Tools : Template Selection and click Edit, my new template doesn't appear in the dropdown box.

Can someone see what I'm doing wrong? I can't figure it out.

Thanks!
-Evan

15 Nov 2006, 4:06 AM
#2
jgamio avatar

jgamio

Zen Follower

Join Date:
Nov 2006
Location:
Caracas
Posts:
114
Plugin Contributions:
0

Re: Custom Template Doesn't Appear in Tools : Template Selection

:blink: everithing look fine.

I got the same error because my DIR_FS_CATALOG_TEMPLATES in the
configure.php was wrong another thing I remember zen only look for the template_info.php in the tamplates directories the other info is extra.

15 Nov 2006, 4:31 PM
#3
frogtaco avatar

frogtaco

New Zenner

Join Date:
Nov 2006
Posts:
7
Plugin Contributions:
0

Re: Custom Template Doesn't Appear in Tools : Template Selection

I figured it out.

Apparently the www alias doesn't point to the same place as the actual /html/ directory. Now that I've copied my new template structure to the actual Web root, guess what? It works.

Just goes to show, it doesn't matter how careful you are if you're working in the wrong place.
:blush:

Thanks for your response, jgamio--because of that I dug around a bit and found my mistake.

15 Nov 2006, 6:53 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Custom Template Doesn't Appear in Tools : Template Selection

Thanks for the update that this was more a server setup issue than anything wrong with Zen Cart ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!