Zen Cart Logo
Forums / General Questions / Setting up override files??

Setting up override files??

Locked

Views: 1,427

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
5 Jul 2010, 8:27 AM
#1
symon avatar

symon

New Zenner

Join Date:
Jun 2010
Location:
Melbourne Australia
Posts:
18
Plugin Contributions:
0

Setting up override files??

Hi Guys,
Just new here. First of all wanted to say hi to everyone. At the moment we've had an Os Commerce site built for us. But as we are wanting to take control of it ourselves we realise Zen Cart is the way to go. We purchased the eBook e-Start Your Web Store with Zen Cart as to ask a better quality of question :smile: After reading the part about setting up the override system I'm at a bit of a loss of how to do it. Could some one please explain to me like I am an 8 year old, how to do it? (I don't know whether I add in a new file or modify the existing or where to add them...) A real basic description is what I need.

Thank you in advance.

Symon

5 Jul 2010, 9:14 AM
#2
website_rob avatar

website_rob

Inactive

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

Re: Setting up override files??

Search the FAQ/tutorials for "overrides" and let us know which solutions you try and had problems with.

5 Jul 2010, 9:16 AM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Setting up override files??

In the process of making zencart look (and behave) the way you want it to, you will have to CUSTOMIZE certain files.

This customization involves taking a CORE file, making a COPY of it, and putting that copy into an OVER-RIDE folder (directory), whereafter it is EDITED to effect the customizations you want.

The CORE FILE is never edited... only the COPY, that sits in the relevant over-ride folder.

(*NB: not all files can have an over-ride... Admin files do not follow the override principle)
*

(OsCommerce works using the same basic principle).

Basically, what zencart does when it assembles a page, is to FIRST find out if an over-ride file exists.

If if finds an override file, it used THAT one instead of the CORE (original) file.

If it does not find an override file, it uses the CORE file.

The first step in getting a proper "over-ride" in place, is to create your own "custom" template.

This will involve (mostly) the following THREE main directories:

includes/languages
includes/modules
includes/templates

Now... think of a NAME for your template. Keep it all lower-case and a single word if possible... EG: coolshades. If you need to use more than one word, then use an underscore... cool_shades.

Now...

Go into these THREE MAIN directories AND their sub-directories, and wherever you see a folder called "classic", create a NEW folder called coolshades (or whatever name you've given to your template.)

Then... follow this tutorial:

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

5 Jul 2010, 10:25 AM
#4
symon avatar

symon

New Zenner

Join Date:
Jun 2010
Location:
Melbourne Australia
Posts:
18
Plugin Contributions:
0

Re: Setting up override files??

Thank you guys for your replys they are much appreciated i shall jump in and give it a try and post my results
Warmest regards
Symon

8 Jul 2010, 7:50 AM
#5
symon avatar

symon

New Zenner

Join Date:
Jun 2010
Location:
Melbourne Australia
Posts:
18
Plugin Contributions:
0

Re: Setting up override files??

Hi again guys i have another question /problem regarding the over ride file question. When i go to my ftp program it comes up with three files
Backups.
+Images.
+Includes.
when i expand the Includes file i can find Languages,Modules,but Iam unable to find anything at all about Templates have i done something wrong with the install or perhaps am I in the wron part of my host site ?

your help appreciated
Symon

8 Jul 2010, 8:54 AM
#6
stevesh avatar

stevesh

Black Belt

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

Re: Setting up override files??

It's the admin folder that contains those three folders, so you need to go up one level to the root of your store. Then open the includes folder there and you'll see the templates directory.

8 Jul 2010, 10:21 AM
#7
symon avatar

symon

New Zenner

Join Date:
Jun 2010
Location:
Melbourne Australia
Posts:
18
Plugin Contributions:
0

Re: Setting up override files??

Thank you for clearing that up Stevesh I shall give it all another try tomorrow
Warm regards
Symon

13 Jul 2010, 3:38 AM
#8
symon avatar

symon

New Zenner

Join Date:
Jun 2010
Location:
Melbourne Australia
Posts:
18
Plugin Contributions:
0

Re: Setting up override files??

Ok after a good week of reading and still trying to understand. I am thinking I'm not making just one file and dragging all of these modified files into it but creating the file under the one I am modifying is this correct hope it makes sense I guess what I am trying to convey is where do you save the new file
Thanks to all for your help so far
Symon

13 Jul 2010, 3:55 AM
#9
afo avatar

afo

Totally Zenned

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

Re: Setting up override files??

Anywhere you see a /classic/ folder, you can create a folder for your custom template.

For example, if you want to edit includes/languages/english/index.php, create includes/languages/english/YOUR_TEMPLATE/. Place a copy of includes/languages/english/index.php into it and make your changes in includes/languages/english/YOUR_TEMPLATE/index.php.

13 Jul 2010, 4:00 AM
#10
symon avatar

symon

New Zenner

Join Date:
Jun 2010
Location:
Melbourne Australia
Posts:
18
Plugin Contributions:
0

Re: Setting up override files??

Thank you for your reply afo after rereading some of my earlier reply s here i see that is what fairestcape was saying it now makes sense. once again thank you to all
Symon

13 Jul 2010, 4:01 AM
#11
afo avatar

afo

Totally Zenned

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

Re: Setting up override files??

It can take a bit to get your head around the template/override concept, but once you do, it becomes simple.