Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2013
    Posts
    7
    Plugin Contributions
    0

    Default Override System not working the way I expected

    Is it possible this article - Understanding the Override System - is outdated for this version?

    I have a need to override certain values defined in english.php and meta_tags.php. Following the above stated article, I can not get it to work, even if I explicitly follow that example of 'Categories' to another value.

    I have successfully set-up a custom template. Is it a different method or process when working with a custom template?

    Cheers!

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

    Default Re: Override System not working

    The override system *is* the custom template system. If you are having difficulties making it work, tell us the exact steps you took, and perhaps show us the website. The template system has not changed significantly in years.

  3. #3
    Join Date
    Jan 2013
    Posts
    7
    Plugin Contributions
    0

    Default Re: Override System not working

    If you look at the article mentioned and my post, I tried using the steps outlined under Language Files and did not see the expected result of Categories changed to Types (something I chose subjectively just to test the steps). I tried both on a site I am developing and one that is a generic, out of the box install of Zen-Cart. I can't share url's for either of these sites for they are only on my localhost development machine.

    Quote Originally Posted by gjh42 View Post
    The override system *is* the custom template system. If you are having difficulties making it work, tell us the exact steps you took, and perhaps show us the website. The template system has not changed significantly in years.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,881
    Plugin Contributions
    96

    Default Re: Override System not working

    You said that you've set up your custom template; is it possible that you've misspelled the name of the directory /includes/languages/english/custom when you created it? That's happened to me before ...

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Override System not working

    What's the name of your custom template?
    Is it activated in your admin? Admin->Tools->Template Select
    What is the foldername in which you stored it on your server?
    Did you put your custom language content into a language subfolder of the same name?

    ie: Template folder: /includes/templates/fred/
    Language override folders: /includes/languages/fred/english.php and /includes/languages/english/fred/xxxxxxxx.php
    .

    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. #6
    Join Date
    Jan 2013
    Posts
    7
    Plugin Contributions
    0

    Default Re: Override System not working

    Thanks for the input. You indirectly answered on of my questions: Does the new sub-directory have to match the name of a custom template? I have
    Code:
    includes/languages/english/template_msv/
    and
    Code:
    includes/templates/template_msv/
    . Changes within meta_tags.php are working all right. But changes within english.ph are not. This is the structure of includes/languages/english/template_msv/

    Code:
    includes/languages/english/template_msv/
                                        |-english.php
                                        |-meta-tags.php
    Quote Originally Posted by lat9 View Post
    You said that you've set up your custom template; is it possible that you've misspelled the name of the directory /includes/languages/english/custom when you created it? That's happened to me before ...

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Override System not working

    Quote Originally Posted by dwlamb View Post
    Thanks for the input. You indirectly answered on of my questions: Does the new sub-directory have to match the name of a custom template? I have
    Code:
    includes/languages/english/template_msv/
    and
    Code:
    includes/templates/template_msv/
    . Changes within meta_tags.php are working all right. But changes within english.ph are not. This is the structure of includes/languages/english/template_msv/

    Code:
    includes/languages/english/template_msv/
                                        |-english.php
                                        |-meta-tags.php
    You made a small mistake, the english.php needs to be one level down


    Code:
    includes/languages/english/
                      /template_msv/
                                |-english.php

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

    Default Re: Override System not working

    I tried using the steps outlined under Language Files and did not see the expected result
    Changes within meta_tags.php are working all right. But changes within english.ph are not. This is the structure of includes/languages/english/template_msv/
    Code:
    includes/languages/english/template_msv/
                                        |-english.php
                                        |-meta-tags.php
    If you had told us that immediately instead of just saying that you followed the steps, we could have found your error quicker. You could not have followed all the steps correctly or it would have worked; that is why I asked for the exact steps you took.

  9. #9
    Join Date
    Jan 2013
    Posts
    7
    Plugin Contributions
    0

    Default Re: Override System not working

    Quote Originally Posted by Design75 View Post
    You made a small mistake, the english.php needs to be one level down


    Code:
    includes/languages/english/
                      /template_msv/
                                |-english.php
    Thanks for the input but I don't see a difference. The end result interpretation of my attempt to represent the tree structure is no different from yours.
    Within includes/languages/english/ is template_msv/ containing english.php and meta_tags.php

    The mistake I made was not expressing it in a more universally respected format like yours. The attached png will show the file tree structure Name:  dolphin_screenshot.jpg
Views: 96
Size:  26.2 KB

    changes to meta_tags.php are working but not english.php
    Last edited by dwlamb; 22 Feb 2013 at 11:19 PM.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Override System not working

    1. The english.php override happens one level up. See my previous post.

    2. What EXACTLY are you trying to override in english.php anyway? Maybe there's no need to touch that file if another method might work better. Need to know details in order to help though.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Did not use the Override System
    By res in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2008, 05:23 AM
  2. Override system not working right on basic, careful, install.
    By endl in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Jun 2008, 03:28 AM
  3. Is it bad: not using the override system
    By Hyena in forum General Questions
    Replies: 5
    Last Post: 18 Aug 2007, 07:40 PM
  4. VAT System not working as expected
    By [email protected] in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 23 Nov 2006, 10:45 PM

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