Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / classic template vs other

classic template vs other

Locked

Views: 1,791

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Jun 2008, 3:23 PM
#1
ocset avatar

ocset

New Zenner

Join Date:
Sep 2004
Posts:
10
Plugin Contributions:
0

classic template vs other

Hi

I am new to Zen Cart and I'm hoping that the answer to my question below will make the penny drop for me. (If this has been discussed before, please point me in the right direction)

My understanding of an override system is that Zen Cart should use all the default stuff except where I created an overrde. However, if I just create a directory 'bob' under templates with a template_info.php file and set 'bob as my template, most things just vanish and I get a strange looking website.

I had a look at the classic template and 90% of the directories have empty.txt in them. So I went and created my own template called 'bob' and in every directory where there is a classic directory, I created a 'bob' directory by copying the classic directory. That also did not give the desired result.

So the question is this. If I wanted to create a copy of the classic template and call it 'bob', what files do I need to copy/create. That way I can use the classic template as my starting point to create a new template.

Thanks in advance
O

30 Jun 2008, 3:38 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: classic template vs other

Your site looked strange probably because you didn't copy the 'classic' CSS stylesheet to 'bob', so you were seeing the default stylesheet.

Your understanding seems to be right. You've created 'bob' folders in all the right places, so copy the files from classic/css and classic/images to 'bob' and you'll be on your way.

30 Jun 2008, 3:40 PM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: classic template vs other

After switching to your CUSTOM Template did you remember to:

Admin > Tools > Layout Boxes Controller - use the Reset button at page bottom?

1 Jul 2008, 12:58 PM
#4
ocset avatar

ocset

New Zenner

Join Date:
Sep 2004
Posts:
10
Plugin Contributions:
0

Re: classic template vs other

Thanks "stevesh" and "Website Rob".

Just one more question - why the need to reset "Layout Boxes Controller"?

I also notice that this only has to be done once. If I load a new template called 'orange', the side boxes are all missing. Resetting "Layout Boxes Controller" fixes that but any subsequest switching to another template and back to the 'orange' template does not require a reset - the side boxes are there right away.

Thanks again
O.

1 Jul 2008, 2:18 PM
#5
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: classic template vs other

Just one more question - why the need to reset "Layout Boxes Controller"?

Because that is part of the process for installing a new Template. :smile:

Most, but not all, changes you make from within the Admin section are recorded within your database. Thus, once a Template is fully setup those settings are recorded and available, whenever that Template is used.