Zen Cart Logo
Forums / General Questions / Switching Templates Mystery!

Switching Templates Mystery!

Locked

Views: 2,496

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
10 Sep 2007, 5:58 PM
#1
ironmac avatar

ironmac

New Zenner

Join Date:
Jun 2007
Posts:
60
Plugin Contributions:
0

Switching Templates Mystery!

Hi all,

I'm following the instructions on pg. 273 of the manual in switching temples. I've created the "Magic_Template" and replaced the Classic Green with it. Unfortunately, all of the sideboxes have disappeared along with a couple of other changes such as the tagline and so on.

Can anyone tell me what went wrong? This is the second ZC site I've worked on the and the first one is fine. I even went to that site, found the relevant template and used that and I am still getting the same problem. :dontgetit

http://catinabag.com/

10 Sep 2007, 6:06 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Switching Templates Mystery!

After changing templates, you must then activate sideboxes
for that new template.. ie
login as admin,
then choose tools,
then layout boxes controller..
Activate required sideboxes, choosing left
or right hand side to taste..

10 Sep 2007, 6:11 PM
#3
ironmac avatar

ironmac

New Zenner

Join Date:
Jun 2007
Posts:
60
Plugin Contributions:
0

Re: Switching Templates Mystery!

Aaaaarrrrgggghhhhhhhh!!!!!!! :censored:

How could I have forgotten/missed this?!?!?!

Thank you Misty for your quick reply!!! :clap:

10 Sep 2007, 6:17 PM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Switching Templates Mystery!

No problem.. my own little grey cells don't
always work when i want them to
:wink2:

23 Jul 2008, 10:34 PM
#5
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Switching Templates Mystery!

I'm following the instructions on pg. 273 of the manual in switching temples. I've created the directory includes/templates/magic and edited the template_info.php file as shown but when I proceed to Tools>Template Selection there is only the Classic Comtemporary Green template shown near the preview radio button. Any ideas where I lost control?

23 Jul 2008, 10:48 PM
#6
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Switching Templates Mystery!

Could be a misconfiguration somewhere with the new template you created.

Try duplicating the entire folder /includes/templates/classic and renaming it to /includes/templates/mytemplate.

Next, edit the file /includes/templates/mytemplate/template_info.php as follows:

<?php
$template_name = 'My Template';
$template_version = 'Version 1.0.0';
$template_author = 'Myself';
$template_description = 'Simple description';
$template_screenshot = 'scr_template_default.jpg';
?>
```Next, go to your admin (Tools > Template Selection) and see if you can see the new template with the name "*My Template*".
24 Jul 2008, 1:00 PM
#7
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Switching Templates Mystery!

I tried that as you suggested, but still have only the original Classic Comtemporary Green template shown near the preview radio button when I reload the page.

24 Jul 2008, 2:59 PM
#8
stevesh avatar

stevesh

Black Belt

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

Re: Switching Templates Mystery!

It's possible you're having some permissions problems with your server. Are you sure the edited template_info.php file is actually being uploaded? You can check by downloading the one that you uploaded back to a different folder on your local machine, and opening it to see if your changes are there.

If the properly edited template_info.php is properly uploaded to the includes/templates/magic folder, the option pretty much has to be there in Admin - Tools - Template Selection.

24 Jul 2008, 3:16 PM
#9
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Switching Templates Mystery!

I'm doing all of this locally on my desktop. What server or upload is there?

24 Jul 2008, 3:36 PM
#10
stevesh avatar

stevesh

Black Belt

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

Re: Switching Templates Mystery!

Sorry - I assumed you were making these changes on your catinabag.com site.

Still could be a permissions problem on your local computer.

24 Jul 2008, 3:51 PM
#11
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Switching Templates Mystery!

What is your computer OS? And where is your local server setup located on
your hard drive?

24 Jul 2008, 6:11 PM
#12
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Switching Templates Mystery!

I can't find any permissions problems, but that doesn't mean that I know where to find them.

On page 271 there is a warning about the template override system not working in the admin console. Does that have anything to do with this? Do these items only work when you're actually online?

24 Jul 2008, 6:38 PM
#13
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Switching Templates Mystery!

Windows XP Pro and the files are all in a folder on the desktop

24 Jul 2008, 6:47 PM
#14
afo avatar

afo

Totally Zenned

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

Re: Switching Templates Mystery!

vfrazier:

On page 271 there is a warning about the template override system not working in the admin console. Does that have anything to do with this? Do these items only work when you're actually online?

It means that the override doesn't work in the admin... you can't override admin files the way you can override files for the store (the part the customers see).

24 Jul 2008, 7:00 PM
#15
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Switching Templates Mystery!

So, is this why I can't see the templates? I'm still confused here.

24 Jul 2008, 7:10 PM
#16
afo avatar

afo

Totally Zenned

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

Re: Switching Templates Mystery!

Someone who knows more about running Zen Cart locally will have to answer that question for you. I have no experience running Zen Cart on my computer.

24 Jul 2008, 8:40 PM
#17
vfrazier avatar

vfrazier

New Zenner

Join Date:
Jul 2008
Location:
Midwest
Posts:
80
Plugin Contributions:
0

Re: Switching Templates Mystery!

Newbie mistakes.. I knew it had to be something dumb like this, but I just couldn't find it! Should've used a search instead!
:blush:

There is a difference between:

C:\Documents and Settings\vfrazier\Desktop\Zen Cart\zen-cart-v1.3.8-full-fileset-11302007\includes\templates\classic

and

C:\Program Files\xampp1\xampp\htdocs\store\includes\templates\classic

When I finally found the right files, it was a snap to get the new template to appear.

Thanks very much to all those who offered suggestions. I'm sorry to take your time but appreciate the feedback which kept me looking for the goof up that I knew would be MY fault!

Thanks.

25 Jul 2008, 3:29 AM
#18
afo avatar

afo

Totally Zenned

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

Re: Switching Templates Mystery!

Happens to everyone. I'm glad you got it sorted and can get on with Zenning. :cool: