Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / need help with override system, please

need help with override system, please

Views: 7,548

Results 21 to 31 of 31
19 Apr 2007, 5:46 AM
#21
mrbert avatar

mrbert

New Zenner

Join Date:
Jan 2007
Location:
Rotterdam NL
Posts:
76
Plugin Contributions:
0

need help with override system, please

Hi Kruna,

As I told before. That was ajust an eample of a file I might override.
I have make a shop some time ago for a freind where I had to modify some files. Now I am making another one for myself and want to do things better.
I want to use the override system now .

I know about all the folders where you can find the folder CLASSIC indicating you can override.
I tried some things to se the override work. but nothing happened.

So again the simple question. that never gets answered::blush:
**
Where do I tell zencart the name of the folder I use for overrides?**

19 Apr 2007, 1:18 PM
#22
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

Re: need help with override system, please

ok...maybe I just misunderstood or didnt quite get what you meant...maybe we can chat or something to get it work...just an option.
You may missed copying a file or else....

in webshop/includes/templates/your_template/template_info.php
you rename

$template_name = 'Zencart template';

to template like MYTEMPLATE, NICELOOKINGSITE or whatever you like...

$template_name = 'MYTEMPLATE';

THen when you go to the zc admin of your shop, you will find this in

tools/template selection

was this what you meant?

Regards,
kruna

23 Apr 2007, 4:45 PM
#23
mrbert avatar

mrbert

New Zenner

Join Date:
Jan 2007
Location:
Rotterdam NL
Posts:
76
Plugin Contributions:
0

Re: need help with override system, please

I gues I understanf how it works. I got an answer from dutch support forum:):smartalec:

Say I want to use the bluestripe template
I copy that filte to a folcer called 'CUSTOM'
now I select the tempalte custom
and all my override go in folders called custom.

23 Apr 2007, 5:03 PM
#24
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

Re: need help with override system, please

I am glad you found a solution...I guess you got it...but the same was told here too...

Regards,
kruna

23 Apr 2007, 5:12 PM
#25
mrbert avatar

mrbert

New Zenner

Join Date:
Jan 2007
Location:
Rotterdam NL
Posts:
76
Plugin Contributions:
0

Re: need help with override system, please

That was what I asked a couple of messages ago. (#13 in the thread)

and the answeres pointed me away from the solution maybee becaus of the foreign language, but this is ideed what I asked in that message.

Thanks anyway for the answers and help:)!!!

31 Mar 2011, 6:45 PM
#26
firefly9 avatar

firefly9

New Zenner

Join Date:
Oct 2010
Posts:
29
Plugin Contributions:
0

Re: need help with override system, please

afo:

To create a very basic custom template (you can build from there), you need:
includes/languages/YOUR_TEMPLATE/english.php
includes/languages/english/YOUR_TEMPLATE/index.php
includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
includes/templates/YOUR_TEMPLATE/template_info.php
includes/templates/YOUR_TEMPLATE/common/tpl_header.php
includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
includes/templates/YOUR_TEMPLATE/images/logo.gif
includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Any where you see a /classic/ folder, you can create a folder for your custom template. Copy the files you need from /classic/, /template_default/ or the parent directory.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying info (you'll understand when you open the file).

Always use a text editor like Notepad or Crimson Editor to edit php files.

Once you've built your template, go into your admin under tools->template selection and select it from the pull down menu.

If you edit the files in /classic/ or /template_default/, all your changes will be lost with the next upgrade/update.

Do I create a file for my template... ie the name for which gets inserted into the includes/templates/CUSTOM/template_info.php. Is this what accepts my overrides? Is this somehow what I need to set up in the admin panel under templates? How? I can upload this template_info.php file to my CUSTOM folder, BUT where do I load the file that I name.... or what file is it that gets edited and named??

31 Mar 2011, 7:11 PM
#27
afo avatar

afo

Totally Zenned

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

Re: need help with override system, please

Once you setup includes/templates/YOUR_TEMPLATE/template_info.php, the name you gave your template will be available in the pulldown menu in admin>tools>template selection. After you select your template from the menu, go to admin>tools>layout boxes controller and reset the sideboxes or they won't show.

31 Mar 2011, 8:12 PM
#28
firefly9 avatar

firefly9

New Zenner

Join Date:
Oct 2010
Posts:
29
Plugin Contributions:
0

Re: need help with override system, please

"The name I gave my template"??
Is this just an edit inside of
template_info.php
or is there another file I need to create and name that template_info.php points to?

If I just left it "default template"... is that my name then... as this is what is showing now in the drop down box in "admin".

7 Apr 2011, 9:58 AM
#29
jagall avatar

jagall

Zen Follower

Join Date:
Mar 2011
Location:
Ireland
Posts:
286
Plugin Contributions:
0

Re: need help with override system, please

Hi i am new to this also and have set up the override system just a few questions:

  1. do files in the
  • admin/includes
  • admin/languages
  • admin/modules need to be set in a similar manner or only where a classic or template_default directory exists
  1. When making you custom folder, is it better to just copy all the files from the relevant directory into it rather than one at at time or does matter
7 Apr 2011, 12:28 PM
#30
afo avatar

afo

Totally Zenned

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

Re: need help with override system, please

There are no overrides in the admin.

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder. You are better off copying ONLY the files you need to modify because you'll isolate your changes that way and won't be overwhelmed by the number of files when you update/upgrade Zen Cart.

7 Apr 2011, 12:29 PM
#31
afo avatar

afo

Totally Zenned

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

Re: need help with override system, please

firefly9:

"The name I gave my template"??
Is this just an edit inside of
template_info.php
or is there another file I need to create and name that template_info.php points to?

If I just left it "default template"... is that my name then... as this is what is showing now in the drop down box in "admin".

Yes, the name you gave your template is the name in template_info.php.