Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 40
  1. #21

    help question Re: Documentation on the Override System

    One More Question:

    Everything I've seen in the FAQ and here on the board indicates that Override folders/files only need to be made where there's a "Classic" directory, and only when something is changed.

    But the Zen book says to create Overrides in both the Classic and Template_Default directories and even goes so far as to explain how the structure is different for each.

    Since these two instructions are opposite of each other, I'm left wondering which is the best one to follow?


    Also, a quick suggestion: on the board and in the FAQ, under "First Steps", the Override System should be very first in line because it must be the first thing that's done before any customization.

    I had to throw out all my changes and reinstall because I didn't understand this and followed the instructions of the steps in order. Posts on the Override System didn't come until several posts later and weren't even mentioned in the first steps.

    Also, it should be made clear that the Override System is NECESSARY for anyone not wanting to redo their store every time they update. Right now the language isn't quite strong enough for us literal types

  2. #22
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,739
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    barebones IS your override directory now. Everyplace that you need an override folder now (i.e. languages) you would use barebones as the override directory name. does that make sense? Any time you are reading and see "custom template", "Your template", etc you can replace that with barebones.
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #23
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Documentation on the Override System

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #24

    Default Re: Documentation on the Override System

    DrByte, I downloaded that the other night before posting here, and that's about when my confusion started. I'm confused because I can't see how following that structure in any way relates back to the barebones template directory. However, I sincerely appreciate your effort to help point me in the right direction. If it were not for the addition of a second template directory, the visual aid you pointed me towards would have been exactly what I needed.

    ######################################################################___

    Barco, I understand what you're saying and thank you for your help. I probably should have been more clear originally. The only two files I'm struggling with in terms of understanding their role in the override system are the template_info.php and the stylesheet.css from the template directory.

    What I don't understand is how copying & modifying the template_info.php and stylesheet.css files from the classic template will override the files from the barebones template just by naming them barebones. Especially when the new files are placed in the classic directory.

    I can name a copied file or a directory anything I want, but that doesn't change the contents within that file or directory from its original. I would still be modifying the classic template's template_info.php and stylesheet.css files when what I want to modify are those same files from the barebones template directory.

    In my limited understanding, it seems that I'm still starting off with the classic template and therefore modifying that template, rather than modifying the barebones template. Maybe I just don't get it.


    Let me give you my understanding using the following scenario:

    Let's say I never uploaded the barebones template and I follow the instructions for creating the override system.

    By going in to the classic directory (which houses the classic template), copying any files I want to modify, and moving them into a new directory called "My Classic" (for example), I'm telling Zen "hey, don't look in Classic's usual directory. Look here instead". Right?

    Ok, so then let's say Classic requires too many modifications to get the look I want, but barebones is closer and requires less change. So I upload the template. This template sits in a directory at the same level with Classic.

    Yet, according to what I'm hearing, I still follow the same process. How can the system modify the CSS & template PHP files from the barebones directory when I'm working off the CSS & template php files I copied from the Classic directory? Wouldn't I still be modifying the Classic template using this method?

    Wouldn't I need to copy the template_info.php and stylesheet.css from the barebones directory and use those as my new (for those two particular files only) in my new override system?

    If the answer to that question is "yes", then I need to know where to copy them to, per my first post.



    If the answer to that is "no", then alternatively, are you saying that by simply naming the override directories and files "barebones", that I'm telling the software to override the template_info.php and stylesheet.css from the barebones directory, and that it will do so, regardless of the fact that I'm making modifications to the template_info.php and stylesheet.css from the classic template, which are completely different files stored in completely different directories?

    If the answer to this question is yes, then I'm all set and know what to do from here.

    Actually, I would have one final question from here.

    The Zen book says to use the override system anywhere I see "Classic" and "Template_Default". But all other documentation says to only use the override system where I see "Classic".

    Which one of those is correct?


    Thanks in advance for your kind help!

  5. #25
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Documentation on the Override System

    You can have:

    /includes/templates/template_default
    /includes/templates/barebones
    /includes/templates/classic
    /includes/templates/redhat

    Each is treated separately and distinctly from each other. The only "dependency" is that if the store needs a certain file and can't find it in your custom template's folder structure, it will look into template_default to get the master instead.

    Inside each of those folders would be a template_info.php file ... which is essentially used to 'name' the template ... that file is used mainly by the admin ... and is the only file that "must" be present.

    Inside each of those folders, if you choose to customize it, is a "css" folder with stylesheet files. You can create your own from scratch, or you could copy the one from /includes/templates/classic/css/stylesheet.css as a starting point ... putting it into your own new /includes/templates/redhat/css/ folder.


    Each template needs a "template_info.php" file. You can copy the master one from template_default or from classic. Just change the contents *inside* the file to suit your template details.

    The rest of the files will use template_default versions if you haven't supplied them. If you choose to alter anything from template_default, you should save it into your custom template's folder using the same folder naming structure from where you obtained the first file.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #26
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Documentation on the Override System

    The Zen book says to use the override system anywhere I see "Classic" and "Template_Default".
    The book actually says you can determine where to put your overrides folders & files anywhere you see either a classic or template_default sub-folder. There's
    only one template_default folder, and it's in includes/templates.

    The tutorials you're reading are assuming you are creating your own template and gives a starting point by suggesting you use the stylesheet from either the includes/templates/classic or includes/templates/template_default, and the template_info.php file associated with whichever you chose. By installing the barebones template, this step has been done for you.

    The chart shows that you have 10 places where you can put your barebones (your custom template) in includes/templates, includes/languages, and includes/modules. When you create those folders in languages and modules,
    they should be named exactly as your barebones folder in includes/templates.

    Hope this helps! I know I struggled with learning this.
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  7. #27

    Default Re: Documentation on the Override System

    Hi TShooters ~

    Thank you so much for your help! I think light may be dawning on marble head.

    There's a few different ways my exhausted brain could interpret what you're saying, so I want to check my understanding with you real quickly.

    I'm ok with the includes/languages and includes/modules, but this includes/templates/classic & includes/templates/template_default is just messing with my head.

    So, with regard to includes/templates/classic & includes/templates/template_default only:


    Are you saying that all I have to do is copy my barebones folder and add it anywhere I see either Classic or Template_Default subdirectories and that would serve as my override? And then any additional files I need to change within the directory/subdirectory structure can merely be copied into that folder?

    OR

    Are you saying that I should follow the override system as is, except for when it comes to template_info.php and stylesheet.css, in which case I should copy those from the barebones directory & subdirectory (instead of from the classic directory & template_default directory) and then place them in the override folder I would have created? (thereby replacing the CSS & PHP files found in both classic & template_default)

    OR

    Are you saying that I can just leave template_info.php & stylesheet.css in barebones where they're currently at and that by selecting the barebones template in the admin module, this is what tells zen to look in the barebones subdirectory within includes/templates?

    And if the answer to that third option is a resounding YES, then here's my next question:

    Is it accurate to say the following:

    1. There's no reason to create an override a level beneath classic or move any barebones files in to includes/templates/classic because classic and barebones folders have the exact same file structure (housing the CSS & the PHP file for their respective templates) and by telling zen via the admin module that my preferred template is barebones, zen will never look in classic for those files and so there's no reason to override them - that in fact, the installation of the barebones template created the override system for that level of the directory structure?

    AND

    2. That since the override rule for includes/templates/template_default is to create an override at the same level, any files within template_default that would need updating would be copied up to the already existing barebones folder on the same level, and so therefore, there is no reason to have to move any copies of any barebones files to the template_default folder?

    AND

    3. If numbers 1 & 2 are true, then it must also be true that since I already have an override folder at the includes/template level, simply by virtue of having installed the barebones template and therefore, there's really nothing for me to do but move on to setting up the overrides for the includes/modules and includes/languages.

    Is that correct? Am I finally getting it or am I still waaaaay off base here?

  8. #28
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Documentation on the Override System

    Are you saying that I can just leave template_info.php & stylesheet.css in barebones where they're currently at and that by selecting the barebones template in the admin module, this is what tells zen to look in the barebones subdirectory within includes/templates?

    And if the answer to that third option is a resounding YES, then here's my next question:

    Is it accurate to say the following:

    1. There's no reason to create an override a level beneath classic or move any barebones files in to includes/templates/classic because classic and barebones folders have the exact same file structure (housing the CSS & the PHP file for their respective templates) and by telling zen via the admin module that my preferred template is barebones, zen will never look in classic for those files and so there's no reason to override them - that in fact, the installation of the barebones template created the override system for that level of the directory structure?

    AND

    2. That since the override rule for includes/templates/template_default is to create an override at the same level, any files within template_default that would need updating would be copied up to the already existing barebones folder on the same level, and so therefore, there is no reason to have to move any copies of any barebones files to the template_default folder?

    AND

    3. If numbers 1 & 2 are true, then it must also be true that since I already have an override folder at the includes/template level, simply by virtue of having installed the barebones template and therefore, there's really nothing for me to do but move on to setting up the overrides for the includes/modules and includes/languages.
    The Penny has dropped!

  9. #29

    Have a Drink Re: Documentation on the Override System

    omg seriously? I get it??

    ::falls face first into the keyboard and laughs the maniacal laugh known only to fellow insanely exhausted geeks who spend way too much time playing with software...and waits....diligently....for someone to come home and mainline some champagne into a major blood vessel:::


    You guys...thank you so much! Everyone's input was like a cog that helped the wheels in my tiny brain inch forward until it all finally came together.

    You all have the patience of a dozen saints!

    :::Running away into Zen bliss:::


    (for now)

  10. #30
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Documentation on the Override System

    By golly, I think you've got it!
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Upgrading and the override system
    By ardhill in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 8 Jun 2010, 11:53 AM
  2. I haven't used the override system... am I screwed??!
    By chudley in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 16 Sep 2009, 11:10 PM
  3. Did not use the Override System
    By res in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2008, 05:23 AM
  4. Please help me understand the override system.
    By angelicdezigns in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 9 Jul 2006, 06:06 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR