Results 1 to 9 of 9
  1. #1

    Default questions about Template Modification File Structure

    v1.5.1


    Step One:

    Per instructions here: http://www.zen-cart.com/content.php?180

    I have managed to do this:


    includes
    /templates
    /Custom
    /common
    /css
    stylesheet.css
    /images
    /sideboxes
    /templates
    template_info.php


    Step Two:

    I am reading here:http://www.zen-cart.com/content.php?...late-overrides

    That if I want to edit the file "meta_tags.php" and keep it intact after an upgrade I need to set up a directory that looks like this:



    /includes/languages/english/Custom/meta_tags.php


    My understanding is this is not a part of the includes/Custom directory I created in Step One but higher in the directory. Is this correct ?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Template Modification File Structure

    My understanding is this is not a part of the includes/Custom directory I created in Step One
    In step one you created Custom here

    /includes/templates/Custom

    Your other is as you posted
    /includes/languages/english/Custom/

    Rule: where ever there exists a "classic" folder - the files at that level can be overridden in your created "Custom" folder
    Zen-Venom Get Bitten

  3. #3

    Default Re: Template Modification File Structure

    Thanks kobra.

    Rule: where ever there exists a "classic" folder - the files at that level can be overridden in your created "Custom" folder
    Example One:


    /Custom

    /languages/english/meta_tags.php

    Example Two:

    /Custom
    meta_tags.php

    Would either or both of these methods work ? Or ?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Template Modification File Structure

    Example Two:

    /Custom
    meta_tags.php
    Is there an existing "classic" folder there?
    If so, then is that file at this level?
    Zen-Venom Get Bitten

  5. #5

    Default Re: Template Modification File Structure

    kobra - belated thanks.

    I am stepping away from these modifications and am going to spend time thoroughly documenting the file structure and studying the FAQ's before I attempt these modifications. In the process of being in a hurry I have only manged to waste time.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Template Modification File Structure

    The short version of template override files is:
    Under /includes/templates/Custom/, any files you want to modify get copied from their /template_default/ folder into the exact same folder under /Custom/ (make new subfolders where required).
    In other locations, if there is a /classic/ folder in the same folder as any file you want to edit, you can make a /Custom/ folder in the same location and copy the edited file into that.

  7. #7

    Default Re: Template Modification File Structure

    Step Two:

    I am reading here:http://www.zen-cart.com/content.php?...late-overrides

    That if I want to edit the file "meta_tags.php" and keep it intact after an upgrade I need to set up a directory that looks like this:

    I wrote:

    /includes/languages/english/Custom/meta_tags.php


    My understanding is this is not a part of the includes/Custom directory I created in Step One but higher in the directory. Is this correct ?
    So then the answer to "Is this correct?" is yes.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Template Modification File Structure

    Yes, that is correct.
    (Although "higher" is somewhat ambiguous... but we don't need to get into semantics here, as I think you understand the structure so far.)

  9. #9

    Default Re: Template Modification File Structure

    Thanks again. Case closed. I do appreciate the advice from the veterans here.

 

 

Similar Threads

  1. What do I need to know about Linux file structure for add on installation?
    By wiles in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Sep 2008, 08:52 PM
  2. Help with: url issue, file structure and template...
    By Tropical Shop in forum General Questions
    Replies: 4
    Last Post: 24 Jan 2008, 09:59 PM
  3. Admin modification vs. .php file modification??
    By recordshow in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Nov 2006, 05:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg