rob22:
I've got an images folder and css etc but nothing else. Have I to copy and paste all the files from the classic folder over into my new custom folder?
Looking at your site now, I see in the HTML source that you have called your new template "custom", and it is actively calling the stylesheets in:
includes/templates/custom/css/
... so you are now underway.
The thing you need to understand now is the functional principle behind the over-rides system.
This principle is based on the following logic:-
-
Zencart must be customizable so that individuals can "tweak" it to look and work they say they want it to.
-
Such tweaking will involve modifying SOME code files (amongst other things), but not ALL code files.
-
It is better that CORE files are not overwritten, but are left intact.
-
A system of OVER-RIDES is therefore the mechanism to use to ensure that CORE files remain intact, while MODIFIED files are used to render customizations in the website.
Now... to make this logic operational, your webshop needs to be able to work out if it must use a CORE file, or a MODIFIED file, so this is what it does...
When it compiles the web pages, it looks at the TEMPLATE you have installed (in your case, your new custom template) and the first place it looks for code files are in all your custom folders.
(As you know, you have "custom" folders all over the place - in languages, modules and templates).
If / when Zencart finds a file in one of these "custom" folders, it will use that file AHEAD of the CORE file.
If it does not find a specified file (resource is a better word) in your custom folders, it immediately reverts to the CORE resource.
... so, there is no need to put any CORE file into a "custom" over-ride folder UNTIL YOU HAVE REASON TO ALTER THE CORE CODE / RESOURCE.
This is why (right now) many of your "custom" folders will be empty... You have not yet had any reason to edit (customize) a core file.
In fact, you have made some override files... your LOGO IMAGE in:-
includes/templates/custom/images/logo.gif
is an over-ride of
includes/templates/template_default/images/logo.gif
and the same applies to your css files...
Now... let's say you wanted to change the header of the "Categories" sidebox to "My Products"
This involves a CUSTOMIZATION of a language define.
So, when the php file that contains that define is edited, it is no longer a CORE file, but a CUSTOMIZED file...
... and it needs to be saved into your over-rides system.
The php file that contains the define for the categories box header is:
includes/languages/english.php
So you FTP that file to your hard drive as a COPY.
You open that copy for editing, and change the define from "Categories" to "My Products".
You SAVE the edited file on your hard drive.
You then FTP that file (english.php) to the RELEVANT OVERRIDES FOLDER... in your case:
includes/languages/custom/
Your zencart will suddenly discover a english.php file in its override system and use that one AHEAD of the CORE file, which remains un-edited in its CORE folder.