Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2010
    Posts
    8
    Plugin Contributions
    0

    Default How to Save Template Changes?

    Hello,
    I am a new user and have made many changes to the existing template that Zen Cart comes with. (Green One). I see now that if I want to keep these changes etc. that I have to save them elsewhere or I will lose the information if I upgrade in the future. Since I have already made many changes what is the best way to save them for the future?


    Thanks for your Help

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

    Default Re: How to Save Template Changes

    Use the information in the Tutorials/FAQ as a guide and create folders for your custom template. You can call you custom template whatever you wish. Just be consistant.

    Copy the files you changed into those folders.

    Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.
    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

  3. #3
    Join Date
    Aug 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: How to Save Template Changes

    Thanks for the quick answer.

    I am still a little bit mixed up on it being new to this, so I appreciate your patience. When you say copy the files, do you mean physically copy and paste the ones from the "default_template" folder into a new folder of my creation.? Ex: copy all files etc from "default_template" such as: "buttons" folder, common, css, images ETC.? and put them into a new folder (I'm calling customtemplate) on the same level. Will I need to rename the files themselves differently or am I just changing locations and folders?

    Sorry to sound so basic, but I have made many changes and additions that I would hate to lose by not asking questions. I really appreciate your help

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

    Default Re: How to Save Template Changes

    There's no need to copy all the files. You only need to copy files you want to modify (or in your case the files you already modified).

    This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo and header text)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

    Note: if you've changed the height of the logo in header.php, you may need to change it in your stylesheet as well:

    #logoWrapper{
    background-image: url(../images/header_bg.jpg);
    background-repeat: repeat-x;
    background-color: #ffffff;
    height:75px; <-adjust this line if necessary
    }
    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. #5
    Join Date
    Aug 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: How to Save Template Changes

    Thanks again. I will be working on that later today. Your help is greatly appreciated!

  6. #6
    Join Date
    Aug 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: How to Save Template Changes

    Hello Again,
    I did everything as described and when I finished with the folders and files, when I tried to use my link to login to the admin page, the page came up completely blank to login. Did I change something that I shouldn't have/


    Thanks!

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

    Default Re: How to Save Template Changes?

    I'd say yes since there is no override for the admin. Changing the template shouldn't be an issue. Double check what you changed and where you put the changes.
    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

  8. #8
    Join Date
    Aug 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: How to Save Template Changes?

    O.K. One more question and then I will try to quit buggin you. I saved things as stated and most of the original info is there when I change the template, but I am missing all of the side boxes and such. What file did I miss that would put them back?


    Thanks so much

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

    Default Re: How to Save Template Changes?

    admin>tools>layout boxes controller
    press reset at the bottom of the screen.
    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

  10. #10
    Join Date
    Aug 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: How to Save Template Changes?

    I would just like to say thanks again. You helped me get a grasp on what works! I think I saved everything correctly this time around.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. My changes won't save!
    By Eebie Baby in forum General Questions
    Replies: 1
    Last Post: 24 Nov 2010, 09:23 AM
  2. Where do I save changes to orders.php?
    By LittleR in forum General Questions
    Replies: 4
    Last Post: 16 Apr 2010, 04:43 PM
  3. Cannot Save Changes in Admin
    By Manor in forum General Questions
    Replies: 1
    Last Post: 18 May 2009, 04:45 AM
  4. Cannot save changes to config.php
    By raquelann in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Jul 2007, 04:45 AM
  5. AGH!! Cart won't save changes!
    By ladysaat in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 26 May 2006, 08:09 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