Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Help! need help understanding override system

    Hi - I like the classic template and just want to make changes to it. Is the custom template the actual override system? In other words must you create and load a customized template, to make any changes to any of the other templates, or can you change the classic template without creating and loading a custom template? I did at one time create a custom template and there were no colors or anything on screen. So I went back to classic and reloaded it but no changes were made.
    I added custom folders in all the directories at an even directory level as classic as explained in the tutorial "The Override System really simplified" It says nothing about what files need to be in the Custom folder in the templates/ directory. Does there need to be any?
    Or are they added say as needed when changes are made.
    When I use the Tool developer kit it gives me one file to change the the sales message: header.php file.
    Is there a document somewhere that lists associated files. For example when Sales message is changed a total of 2 files will be modified:
    file one - path
    file two - path
    etc.
    None of my overrides have worked with the instructions. I feel that I am not changing all the appropriate files because I don't know they need to be modified.

    The overrides I would like to make to the classic template are:
    Sales Message
    Congratulations, Zen Cart Message
    I have also tried overrides in the Define pages and had the same trouble. I would like to make changes to"
    The main info page
    Privacy and Conditions of Use
    Shipping & Returns
    Contact Us
    And maybe a few others
    When I change them and put them in the custom directory the overrides do not appear. HELP

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

    Default Re: Help! need help understanding override system

    Check here in the tutorials:

    https://www.zen-cart.com/tutorials/i...hp?category=16

    Answers to all the questions you have asked are there.

  3. #3
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Help! need help understanding override system

    Hi thank you for the link but I've gone over the tutorials yet again probably the 8th time and still no change.

    With the Sales message I changed the header.php. Is this the only file I change?
    ########################################################################################################################

    // This section deals with the "home" page at the top level with no options/products selected
    /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE',' ');
    } elseif ($category_depth == 'nested') {
    // This section deals with displaying a subcategory
    /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE', ' ');
    }
    Replace the text starting “Congratulations” with your own text. Make sure that the single quote marks are not left out.

    With this one, I put the text by the smileys and still no go.

    And the instructions below, is it just supposed to be the index.php?
    What are the parenthasis and the rest of the line, should I be concerned with that? I don't understand the code. Is that stopping the override from working?

    Save the edited file to includes/languages/ENGLISH/CUSTOM/index.php'); return false;" class="search_find">php and upload it to your server.

    Do I need to load the custom stuff thru the tools - template selection and load?


    Thank you really but I'm still confused, because I did what the instructions said and still no change with either the Zen Cart Congrats message and the Sales Message. I am really beginning to hate that Zen Cart first page.

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

    Default Re: Help! need help understanding override system

    Quote Originally Posted by JenBaby View Post
    Hi thank you for the link but I've gone over the tutorials yet again probably the 8th time and still no change.

    With the Sales message I changed the header.php. Is this the only file I change?
    ########################################################################################################################

    // This section deals with the "home" page at the top level with no options/products selected
    /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE',' ');
    } elseif ($category_depth == 'nested') {
    // This section deals with displaying a subcategory
    /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE', ' ');
    }
    Replace the text starting “Congratulations” with your own text. Make sure that the single quote marks are not left out.

    With this one, I put the text by the smileys and still no go.

    And the instructions below, is it just supposed to be the index.php?
    What are the parenthasis and the rest of the line, should I be concerned with that? I don't understand the code. Is that stopping the override from working?

    Save the edited file to includes/languages/ENGLISH/CUSTOM/index.php and upload it to your server.

    Do I need to load the custom stuff thru the tools - template selection and load?


    Thank you really but I'm still confused, because I did what the instructions said and still no change with either the Zen Cart Congrats message and the Sales Message. I am really beginning to hate that Zen Cart first page.
    Yes It should be just index.php

    Did you create a new custom template?

    https://www.zen-cart.com/tutorials/i...hp?article=142

    and upload that to your server.

    If you didn't then zen cart won't know how to look for your changes.

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

    Default Re: Help! need help understanding override system

    HI! JenBaby!

    I made up a chart so you can visualize where a custom (your template) folder
    may be placed in the ZenCart includes/languages file structure. You can d/l it here
    in the Downloads/Other Modules section and print it out:
    Overrides Chart

    An example:
    If you wanted to change the "Congratulations!" message, you would copy the
    includes/languages/english/index.php, make corrections and upload your new
    index.php file to includes/languages/english/custom (your template) file.

    Hope this helps! I know it took me quite a while to understand the overrides
    system, and get it right.
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

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

    Default Re: Help! need help understanding override system

    TShooters

    Check this out:


    https://www.zen-cart.com/tutorials/i...hp?article=143

    Great Minds ....

  7. #7
    Join Date
    Sep 2006
    Location
    Suffolk, UK
    Posts
    73
    Plugin Contributions
    0

    Default Re: Help! need help understanding override system

    Quote Originally Posted by TShooters View Post
    HI! JenBaby!

    I made up a chart so you can visualize where a custom (your template) folder
    may be placed in the ZenCart includes/languages file structure. You can d/l it here
    in the Downloads/Other Modules section and print it out:
    Overrides Chart
    I've helped myself to this, hope you don't mind
    It's really helpful to us newbies.
    T-shooters helps me again! Thank you.
    Slowly, but surely, becoming totally Zenned, Tina

  8. #8
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Help! need help understanding override system

    Thank you. That is the greatest chart ever. Makes more sense than anything. I saw that in the tutorial and did that before I tried the overrides. Each of my custom folders has the custom copies of the changed files in it. but the ZEN CART message and sales message still comes up. (Ugh!!!).

    What I'm wondering is, in the templates/custom directory is there any files that I need in there other than the ones I'm changing and do I need to load it in the tools - template section. Or is that just for a complete custom template of my own. When I first looked at custom templates it said something about copying files from the templat_default directory. Is that just for a custom templates which is a total replacement for say the classic template or is that also part of the override system. In other words I would need some of the template_files not directly associated with the files containing the actual changed data.

    I saw in another post, someone gave advice on a file that I did not even know was associated with the file being changed, some sort of tpl file or is there only one file for each thing being changed.

    Through the developers tool kit I get the main files like header.php and index.php but are there any associated files?

    If anyone knows I would truly be greatful. I'm sorry I have so much trouble understanding this. Thanks

  9. #9
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: Help! need help understanding override system

    Made a mistake -- template_file should read template_default. Sorry!

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

    Default Re: Help! need help understanding override system

    ZenCart by default, when a template name is activated via the admin, looks first for files located in the override folders for that template, if none are found the default file is utilized.

    So, only file that you edit should be placed in you template override folders.

    Have you created a template? edited the template_info.php file to reflect that name? enabled it in the admin > tools > template selection? All these need to be done for the edited files to be found.
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Need help understanding Paypal IPN Address Override message
    By dinki in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 15 Feb 2012, 09:47 PM
  2. need help with override system, please
    By Kruna in forum Templates, Stylesheets, Page Layout
    Replies: 30
    Last Post: 7 Apr 2011, 01:29 PM
  3. What am I mis-understanding about the override system?
    By rockwall in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 22 Oct 2009, 02:37 PM
  4. Need Help Understanding javascript_validation
    By webomat in forum Addon Payment Modules
    Replies: 2
    Last Post: 2 Jan 2007, 07:21 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