Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / override folders have to be dotted around zen cart directory??

override folders have to be dotted around zen cart directory??

Locked

Started by jamesdavid on 5 May 2008, 3:39 PM · Views: 3,536

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
5 May 2008, 3:39 PM
#1
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Post #1 by jamesdavid

I looked at the tutorial below to start using overrides templates;

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

I read somewhere else that a good way of knowing whether you could put a folder with your template's name (to use as an override) was so see if there was a 'classic' folder in that directory. Does this mean that you have to have your override folders dotted around the zen cart directory or is there some way of putting them all in one folder?

I ask because this tutorial talks about putting the folders 'common', 'sideboxes' and 'templates' into your main template's folder;

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

:huh:

5 May 2008, 4:08 PM
#3
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Post #3 by jamesdavid

Thanks for the answer.

But why did one the the tutorials tell me to make folders called 'common', 'sideboxes' and 'templates' in my main template's folder?

5 May 2008, 4:20 PM
#4
stevesh avatar

stevesh

Black Belt

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

Post #4 by stevesh

Those are the folders you'll put your override files into.

For example, if you decide to override the file tpl_footer.php, you'll download it from includes/templates/template_default/common

After you make your changes, you'll upload the file to includes/templates/YOUR_TEMPLATE/common

That way, Zencart knows where to look for the override file.

5 May 2008, 4:36 PM
#5
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Post #5 by jamesdavid

So all of the files that I copy to make override files are in the directory;

includes/templates/template_default/

Is that correct?

5 May 2008, 7:15 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,761
Plugin Contributions:
0

Post #6 by Kim

So all of the files that I copy to make override files are in the directory;

includes/templates/template_default/

Is that correct?

Yes, that is correct.

BUT - there are other template-oriented files that can be overridden in other directories - for example your language customizations will be in /language/english/YOUR_CUSTOM_TEMPLATE_FOLDER

Keep at it - soon you'll see there is a method to the madness :D

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

5 May 2008, 8:07 PM
#7
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Post #7 by jamesdavid

Thanks, it is starting to make sense.

When is content in the templates folder and when is it in the languages folder?

Also, from looking at my store front, how do i find out where the files I need to override are? At the moment im searching the tutorials for answers, but is there a better way?

9 Jun 2008, 1:15 PM
#8
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Post #8 by tecbrat

jamesdavid:

I looked at the tutorial below to start using overrides templates;

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

I read somewhere else that a good way of knowing whether you could put a folder with your template's name (to use as an override) was so see if there was a 'classic' folder in that directory. Does this mean that you have to have your override folders dotted around the zen cart directory or is there some way of putting them all in one folder?

I ask because this tutorial talks about putting the folders 'common', 'sideboxes' and 'templates' into your main template's folder;

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

:huh:
I found there are 10 places where you might need an override or CUSTOM directory. they are:

includes\languages\CUSTOM
includes\languages\english\CUSTOM
includes\languages\english\extra_definitions\CUSTOM
includes\languages\english\html_includes\CUSTOM
includes\languages\english\modules\order_total\CUSTOM
includes\languages\english\modules\payment\CUSTOM
includes\languages\english\modules\shipping\CUSTOM
includes\modules\CUSTOM
includes\modules\sideboxes\CUSTOM
includes\templates\CUSTOM

For some reason, the forum software is adding spaces in here, but you get the point.

if you go here: link and copy the lines from the bottom of my second post, you can create them on your windows computer with a simple bat file.

9 Jun 2008, 1:16 PM
#9
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Post #9 by jamesdavid

Im on a Mac, but thanks anyway!

9 Jun 2008, 3:03 PM
#10
afo avatar

afo

Totally Zenned

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

Post #10 by afo

Anywhere you see a /classic folder, you can create a folder for your custom template, but you don't need a custom folder everywhere you see a classic folder if you aren't intending to edit a file there.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

9 Jun 2008, 3:19 PM
#11
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Post #11 by jamesdavid

Thanks a lot. Ive been working with Zen cart a lot since I initially started this thread so I understand it a lot better now.

20 Aug 2008, 7:44 PM
#12
shoulders avatar

shoulders

New Zenner

Join Date:
Jul 2008
Posts:
71
Plugin Contributions:
0

Post #12 by shoulders

jamesdavid:

Thanks a lot. Ive been working with Zen cart a lot since I initially started this thread so I understand it a lot better now.

Have a look at zenmagick zenmagick.org all the themeing files are in one place and still uses the zen-cart core.

shoulders