Forums / Templates, Stylesheets, Page Layout / Help with Overide system.

Help with Overide system.

Locked
Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Jun 2009, 23:37
#1
robert4442 avatar

robert4442

New Zenner

Join Date:
Jun 2009
Posts:
52
Plugin Contributions:
0

Help with Overide system.

1.I am still not understanding the override system. I install zencart in a directory call Mystore. I download a new template call arkiTEC-hd black form the zencart web site. I created of folder called arkiTEC-hd black under the templates I download the new template files to this directory. I went to the template Selection and selected the new template. So far so good. Then I went to http://localhost/mystore/index.php the store came up ok in the browser. I then when to mystore/includes/languages and made a new directory called arkiTEC-hd black. I copied three files into that directory from mystore/includes/languages/English. They are index.php, header.php, and engligj.php. I made changes to each one of them in this directory and not in the original directory. When I go to http://localhost/mystore/index.php I don’t see any changes in the index page. I thought that any file I put into the new directory would orverride the original file in the original directories. Can you help my understand what is going on.

2. What are file that come up in the Define Page editor. How do I get other files to show up there so I can alter them? What do I use to alter the php files: windows word pad? Is there a better program that will let me see in html like the Define page edit where I can see the file in either plain text or HTML?

3. How do I know what file to change to get a change in a particular place?
16 Jun 2009, 23:56
#2
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Help with Overide system.

The chart here will help you visualize where your custom template files go. Or anywhere you see a classic folder, you can have a custom template folder:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=298

When you modify files from the includes/languages/english folder (that are not in a sub-folder) they should go back into includes/languages/english/your_template.


The define pages are in includes/languages/english/html_includes, and your modified files should go back into includes/languages/english/html_includes/your_template.

Hope this helps!
17 Jun 2009, 03:07
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Help with Overide system.

Make certain the folders you created have the exact same name as the folders that came with the template.
17 Jun 2009, 23:32
#4
robert4442 avatar

robert4442

New Zenner

Join Date:
Jun 2009
Posts:
52
Plugin Contributions:
0

Re: Help with Overide system.

What is the best program to modify the php files. The define page editor as I understand it only can modify pages in the HTML_includes directory. I like this program because you can see what you editing without haveing hunt through the htlm code or see the html code and work on it directly. Is there another progam that will do that?
18 Jun 2009, 03:27
#5
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: Help with Overide system.

For the html_includes files (define pages), you can download several mods (FCKeditor, TinyMCE, etc) and install to ZC.

For editing php files, Crimson Editor and Notepad ++ is recommended and free. Personally, I like Alleycode..also free.
18 Jun 2009, 03:27
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Help with Overide system.

For php files, a good text editor is best. Notepad++ and Crimson Editor are good and free on the net.
18 Jun 2009, 22:19
#7
robert4442 avatar

robert4442

New Zenner

Join Date:
Jun 2009
Posts:
52
Plugin Contributions:
0

Re: Help with Overide system.

1. In the header.php in the default classic there is a picture the header main bar. I cannjot see where the picture come from and what the files is. I cannot look it up if I don't know the files name of the image. Can you help me as I would like to addmy company logo in the header. Next:

2. I would like to understand where the image for the zen+cart logo is located. I put a gif file called letterhead.gif in the images file and then replaced the logo.gif in the hearder.php with letterhead.gif and it does not show up. I also used image/lettehrhead.gif and it does not show up. Below is code from the hearder.php file showing where the logo.gif (which is the zen-cast logo). I does not specify apath to the image.

// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce [home link]');
define('HEADER_SALES_TEXT', '<h1>TagLine Here</h1>');
define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '70px');
define('HEADER_LOGO_IMAGE', 'logo.gif');
25 Jun 2009, 16:42
#8
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: Help with Overide system.

1. I didn't check this, but the image is likely coming from the stylesheet.

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