Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2014
    Posts
    10
    Plugin Contributions
    0

    Default Templates Overrides Not Detected

    Hi,

    I have a fresh install of zen cart. I went through the tutorial to create a template and set it in tools and reset the boxes. Now I am setting up the overrides. Zen Cart is not detecting the overrides. For example; I created a template folder named valiant. I created a folder of the same name in /includes/languages/valiant. Inside languages/valiant I have copied over meta_tags.php (this is where the title is set in my version 1.5.1)

    I do this; define('TITLE', 'Valiant Auto Parts');

    Save and reload. It still has Zen Cart! as the title. Now if I go directly to /includes/languages/english and change the title in meta_tags.php the changes take effect. This however is not the way I understand how the override is to work.

    Am I missing something? How do I tell Zen where the override folder is?

    Thanks

  2. #2
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Templates Overrides Not Detected

    Try here:
    includes/templates/YOUR_TEMPLATE

    I try to copy my templates any place the file says classic... hope that helps a bit ;)

  3. #3
    Join Date
    Mar 2014
    Posts
    10
    Plugin Contributions
    0

    Default Re: Templates Overrides Not Detected

    Hi guess I am still not understanding something. So I have my template setup includes/templates/valiant I copied over meta_tags.php with the title change to that directory. The changes did not take effect. there is a classic folder in languages/classic. That was where I originally included a folder languages/valiant and put the meta_tags.php in. I'll try putting valiant inside of English.

    And that worked!
    Last edited by skeeterz71; 17 Mar 2014 at 08:17 PM.

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

    Default Re: Templates Overrides Not Detected

    Quote Originally Posted by skeeterz71 View Post
    Hi,

    I have a fresh install of zen cart. I went through the tutorial to create a template and set it in tools and reset the boxes. Now I am setting up the overrides. Zen Cart is not detecting the overrides. For example; I created a template folder named valiant. I created a folder of the same name in /includes/languages/valiant. Inside languages/valiant I have copied over meta_tags.php (this is where the title is set in my version 1.5.1)

    I do this; define('TITLE', 'Valiant Auto Parts');

    Save and reload. It still has Zen Cart! as the title. Now if I go directly to /includes/languages/english and change the title in meta_tags.php the changes take effect. This however is not the way I understand how the override is to work.

    Am I missing something? How do I tell Zen where the override folder is?

    Thanks
    Language file overrides should be in /includes/languages/english/valiant (e.g. /includes/languages/english/valiant/meta_tags.php), unless you're overriding the primary language file (english.php), in which case you'd place that in /includes/valiant/english.php.

  5. #5
    Join Date
    Mar 2014
    Posts
    10
    Plugin Contributions
    0

    Default Re: Templates Overrides Not Detected

    Thanks. I kinda figured out I have to put a folder everywhere I have to make a change. This is gonna be kinda tricky not having a centralized overrides folder but rather multiple folders for custom theming/templating. I guess I'll have to figure it out. WordPress has spoiled me with the way custom themes are dealt with....

  6. #6
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Templates Overrides Not Detected

    I'm glad that you are figuring out the learning curve... it takes 'doing' before 'understanding' the why some days, skeeterz71.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: Templates Overrides Not Detected

    Quote Originally Posted by skeeterz71 View Post
    Thanks. I kinda figured out I have to put a folder everywhere I have to make a change. This is gonna be kinda tricky not having a centralized overrides folder but rather multiple folders for custom theming/templating. I guess I'll have to figure it out. WordPress has spoiled me with the way custom themes are dealt with....
    My plugin Zen Cart Overrides Cheatsheet might help. It's just an HTML file that displays all the override directories.

 

 

Similar Threads

  1. Language Overrides and Templates
    By retched in forum Contribution-Writing Guidelines
    Replies: 3
    Last Post: 26 Mar 2011, 05:44 AM
  2. Am I understanding templates/overrides correctly?
    By dman76 in forum Templates, Stylesheets, Page Layout
    Replies: 24
    Last Post: 13 Mar 2008, 01:36 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