Thread: Override system

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Override system

    In your includes/templates directory you should have:
    classic
    magic
    template default

    in the magic directory (at minimum) you should have:
    template_info.php

    the file should be edited to have the following line read:
    $template_name = 'magic Template';

    Then the template will show up in the list
    there should not be a classic or template-default in the magic directory
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  2. #12
    Join Date
    May 2007
    Location
    UK
    Posts
    13
    Plugin Contributions
    0

    Default Re: Override system

    Quote Originally Posted by barco57 View Post
    In your includes/templates directory you should have:
    1)
    classic
    magic
    template default

    (2)in the magic directory (at minimum) you should have:
    template_info.php

    the file should be edited to have the following line read:
    $template_name = 'magic Template';

    Then the template will show up in the list
    (3) there should not be a classic or template-default in the magic directory
    WOW! that was a quick reply thank you barco57.

    (1) I do have: classic, magic and template_default as you said.

    (2) As told in book I copied and renamed the whole classic directory to magic so I have all the files from classic directory in magic directory.

    So: if I open includes/template/magic I have all classic folders but No 'template_info.php' but I do have a 'templates' folder
    so: if I open 'templates' folder I'm at:includes/templates/magic/templates

    and in there I have two folders: classic and template_default
    both of these do have a template_info PHP File in them.

    As not sure which one to edit I have tried in both of these template_info PHP files to rename to:

    $template_name='magic template' but neither results in a new template?

    It appears from your reply (3) that you are surprised that the classic and template_default have copied into the magic directory, yes?

    Thank you for your time I have actually seen your wifes site complimented on this forum in a different thread.
    Last edited by craigthetechnophob; 3 Jun 2007 at 05:47 PM.

  3. #13
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: Override system

    Hi Craig,

    You seem to have a misconfiguration in your Override System.

    Try this and let me know if it works:
    1. Delete the entire "magic" folder (including any sub-folders) you currently have. i.e. includes/templates/magic.
    2. Create an empty "magic" folder. i.e. includes/template/magic
    3. Copy the contents of the directory includes/templates/classic to includes/templates/magic.
    4. Edit the file includes/templates/magic/template_info.php as stated in the book.
    5. Go to your Admin Console and try to switch templates.
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  4. #14
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Override system

    To create a very basic custom template (you can build from there), you need:
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
    • includes/templates/YOUR_TEMPLATE/images/logo.gif
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Any where you see a /classic/ folder, you can create a folder for your custom template. Copy the files you need from /classic/, /template_default/ or the parent directory.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying info (you'll understand when you open the file).

    Always use a text editor like Notepad or Crimson Editor to edit php files.

    Once you've built your template, go into your admin under tools->template selection and select it from the pull down menu.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #15
    Join Date
    May 2007
    Location
    UK
    Posts
    13
    Plugin Contributions
    0

    Default Re: Override system

    Hi

    Just a quick thank you to canopy and afo for their advice, not sure if that is appropriate to how the forum works but I'd feel rude if I didn't. Unfortunatly I won't be able to try it out until the W/E but will post if all went well. Thanks again craig

  6. #16
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Override system

    Quote Originally Posted by craigthetechnophob View Post
    Hi

    Just a quick thank you to canopy and afo for their advice, not sure if that is appropriate to how the forum works but I'd feel rude if I didn't. Unfortunatly I won't be able to try it out until the W/E but will post if all went well. Thanks again craig
    Thanking people is certainly allowed. You'll see it all over the forums. It's one of the nicest parts of one of the nicest boards I've ever participated in.

    I hope you can get it worked out. Once you get the hang of it, you'll wonder why you thought it difficult.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Override system
    By Resqjock in forum General Questions
    Replies: 5
    Last Post: 1 Sep 2008, 04:28 AM
  2. Override System
    By DRenaud in forum Basic Configuration
    Replies: 1
    Last Post: 11 May 2007, 12:33 AM
  3. Override System
    By DRenaud in forum Basic Configuration
    Replies: 5
    Last Post: 11 May 2007, 12:14 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