Forums / Templates, Stylesheets, Page Layout / Can't change templates

Can't change templates

Views: 2,074

Results 1 to 16 of 16
16 May 2011, 9:25 PM
#1
geminimoonstar avatar

geminimoonstar

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Can't change templates

Hello,
I recently installed Zen Cart and the classic green layout comes up just fine. When I go to add new templates I have downloaded, and follow the instructions to put them in includes/templates folder, they never come up when I go into "tools" and "layout selector"
Am I suppose to be doing this in zencart/includes/templates?
Because I have tried to upload the new templates to those folders a well and when I go into zencart to change the template, the only one to choose from is the "classic green" one
I hope someone can help me with this.
Thanks in advance :)

16 May 2011, 9:31 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can't change templates

Have a look directly under
/includes/templates/classic

You will see a template_info.php file

Your uploaded templates should also be in this same structure

/includes/templates/new_template

And have a template_info.php file directly under the /new_template location

Zen-Venom Get Bitten

16 May 2011, 9:32 PM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Can't change templates

What is the template name you are installing???

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

17 May 2011, 4:06 AM
#4
reellaysea avatar

reellaysea

New Zenner

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

Re: Can't change templates

I too have just upgraded to 1.39 setting up a template followed all instructions with the php file images css and all other folder. When i go in to admin tools template selections it comes up a blank screen. What did i do wrong

17 May 2011, 3:13 PM
#6
geminimoonstar avatar

geminimoonstar

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Can't change templates

Thank you, there are actually 2 templates I tried to install, and I looked for the template_info.php file in bpth of their folders as I found in the "Classic" one like you said. Neither of the templates had this file. What does this mean? Can I create on for them, or just not use them at all?
I was only wanting to use these templates so that I could change them to my liking and their layouts where more to my liking then the classic one. But if I have to , I can always you classic and try to change that ones look to match what I need.
Thank you for your help :)

kobra:

Have a look directly under
/includes/templates/classic

You will see a template_info.php file

Your uploaded templates should also be in this same structure

/includes/templates/new_template

And have a template_info.php file directly under the /new_template location

17 May 2011, 3:24 PM
#7
stevesh avatar

stevesh

Black Belt

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

Re: Can't change templates

It may mean you're uploading the template files to the wrong place. It would help if you let us know which templates you've tried to install, but generally, the template package contains a folder named 'includes' which contains all the folders and files in the proper places. This 'includes' folder should be uploaded to the root (top) folder of your store, not the 'templates' folder.

17 May 2011, 3:27 PM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Can't change templates

The template_info.php file has to be placed within the new template you have installed so you can turn it on in admin panel/ tools/ template selection...

So copy includes/ templates/ template_default/ template_info.php into your_template folder...
Now you have to edit here...

<?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 = 'Default 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';
?>

Notice the code above: $template_name = 'Default Template';
Change to match your_template name..

Example: $template_name = 'your template name';
remember to leave the single quotes around the name..
Now save up to the servers...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

17 May 2011, 3:29 PM
#9
geminimoonstar avatar

geminimoonstar

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Can't change templates

I tried to upload 2 different templates, one is named...
AbbyTemplate_v1_2

The other is named- freetemplate2

haredo:

What is the template name you are installing???

17 May 2011, 3:34 PM
#10
geminimoonstar avatar

geminimoonstar

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Can't change templates

Ok, I found the problem. I feel so silly!

the site I downloaded the template from said to unzip and upload it into the includes/templates folder which I did.
What it didnt say was that once the folder was unzipped, the actual template was in the folders like this...
freetemplatetwo/includes/templates/freetemplatetwo

so once I went into all the folder and uploaded it, it all worked like a charm...so far ;)
Thank you all for your help.
Maybe this will help someone else down the road who didnt realize you cant just upload the folder straight once it's unzipped like I did.

Thanks again all!

17 May 2011, 3:37 PM
#11
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Can't change templates

Your welcome, and thanks for posting the solution for your fix .. :smile:

OH, Bye the way,
I have done that before too.....:cool:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

17 May 2011, 3:51 PM
#12
geminimoonstar avatar

geminimoonstar

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Can't change templates

Sorry for double posting, my internet is acting up badly! Will take this post off asap! Sorry again!

25 May 2011, 11:37 AM
#13
ksl1 avatar

ksl1

New Zenner

Join Date:
Feb 2010
Posts:
28
Plugin Contributions:
0

Re: Can't change templates

I can now see myclassic in the admin template section, which is the old classic modified, however when i click on preview I get a DNS error. It must have something to do with the screenshot image in the template.php file as it is the old classic template one , do i just delete it, or renew the template.php file.

25 May 2011, 12:07 PM
#14
stevesh avatar

stevesh

Black Belt

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

Re: Can't change templates

All that Preview button does is display an image of the template, if one is available. It isn't meant to display your site.

25 May 2011, 12:43 PM
#15
ksl1 avatar

ksl1

New Zenner

Join Date:
Feb 2010
Posts:
28
Plugin Contributions:
0

Re: Can't change templates

Thanks,:frusty: I took the plunge and loaded my site, I'm just happy i made it so far, now I can see all the damage :clap::frusty: The only way to learn I guess, but I'm getting there!