Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Custom template made from defult but different layout???

Custom template made from defult but different layout???

Locked

Views: 1,312

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
7 Sep 2010, 12:46 AM
#1
zomex avatar

zomex

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Custom template made from defult but different layout???

Hello everyone,

I'm trying to create a custom template but I run into a problem. I followed everything in the following guide:

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

The problem is that my custom template is a dumbed down version of Classic Contemporary Green but yet I copied those exact files for the new custom template.

Here is some screenshots:

Here is the default template

This is a screenshot of my custom template of which I copied the files from that in the first template.

Thank you very much for any answers. If anyone has a good guide for creating a custom template I would love to see them.

Thanks!
Jack

7 Sep 2010, 5:51 AM
#3
zomex avatar

zomex

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Custom template made from defult but different layout???

Hello,

Thanks for your reply. I took a look at the download and it seems that the custom template is a copy of the defult template. I repeated the same thing but it still shows up completly different comapred to the actual default template:

http://www.stylelocker.co.uk/

Is this how it should show up before I start editing?

Thanks,
Jack

7 Sep 2010, 9:52 AM
#4
stevesh avatar

stevesh

Black Belt

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

Re: Custom template made from defult but different layout???

What you have now is a copy of the default template, which is *not *the original Classic template.

In both cases, it appears that you didn't click the Reset button in Admin - Tools - Layout Boxes Controller after you selected your new template.

7 Sep 2010, 3:44 PM
#5
zomex avatar

zomex

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Custom template made from defult but different layout???

stevesh:

What you have now is a copy of the default template, which is *not *the original Classic template.

In both cases, it appears that you didn't click the Reset button in Admin - Tools - Layout Boxes Controller after you selected your new template.
You are a genius :) I now have the other bits showing on the template. I believe I'm now all set to start editing this template?

http://www.stylelocker.co.uk/

Thanks very much,
Jack

7 Sep 2010, 3:51 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Custom template made from defult but different layout???

Looks like you're good to go.

7 Sep 2010, 10:38 PM
#7
zomex avatar

zomex

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Custom template made from defult but different layout???

Thanks very much everyone.

I have managed to get the design integrated. Just a couple of questions:

  • How do I remove the default text on the homepage?

"Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.
Welcome Guest! Would you like to log yourself in?"

I have used Firefox to search in /includes/languages/english.php but cannot find those lines. Perhaps the new version has those lines in a different location?

  • How do I edit the meta information on the homepage? I can see how to do it for products etc but not the homepage.

Thanks very much everyone!
Jack

7 Sep 2010, 11:05 PM
#8
zomex avatar

zomex

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Custom template made from defult but different layout???

EDIT: I have found it all. Thanks very much!

7 Sep 2010, 11:06 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Custom template made from defult but different layout???

If you want to find some output text to change it, use the Developers Toolkit in admin > Tools. Since long output is often created dynamically and does not exist as is in any one file, paste a distinctive snippet in the lower left box, select all files and search. Amomng the results will be the file and line number where it is defined.

OK, good for you!

8 Sep 2010, 2:36 AM
#10
zomex avatar

zomex

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Custom template made from defult but different layout???

gjh42:

If you want to find some output text to change it, use the Developers Toolkit in admin > Tools. Since long output is often created dynamically and does not exist as is in any one file, paste a distinctive snippet in the lower left box, select all files and search. Amomng the results will be the file and line number where it is defined.

OK, good for you!

Thanks very much I will use that next time :)

Jack

8 Sep 2010, 2:51 AM
#11
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Custom template made from defult but different layout???

Just for the lurkers...

We never recommend that our customers copy the default or classic to a custom directory. In so doing, they will copy over FAR more than they will ever need.

We recommend using the chart for override directories to create the directories associated with a "custom" template. Then you only need to save any file that you actually change to its override directory.

When it comes time to upgrade, you'll have far fewer files to compare during your upgrade.

Start with the files needed to establish a custom template, work with language files, create your own pages from the html_includes and move on from there, but we don't advise creating your own "forest" -- just planting a few trees in the right place.

8 Sep 2010, 3:07 PM
#12
zomex avatar

zomex

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Custom template made from defult but different layout???

dbltoe:

Just for the lurkers...

We never recommend that our customers copy the default or classic to a custom directory. In so doing, they will copy over FAR more than they will ever need.

We recommend using the chart for override directories to create the directories associated with a "custom" template. Then you only need to save any file that you actually change to its override directory.

When it comes time to upgrade, you'll have far fewer files to compare during your upgrade.

Start with the files needed to establish a custom template, work with language files, create your own pages from the html_includes and move on from there, but we don't advise creating your own "forest" -- just planting a few trees in the right place.

Hello,

Would it be safe to remove the directories that I didn't use? For examples I have only used images, includes/templates and includes/common.

Thanks very much!
Jack

8 Sep 2010, 3:14 PM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Custom template made from defult but different layout???

It would be safe to remove any custom folders you aren't using, but there is no need to do so. You should remove all files that are not different from their /template_default/ or stock versions.