Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Changing the logo

    In order for the template overrides to work, they have to be done correctly. YOU have to create the folders for your custom template. Putting your logo in includes/templates/classes/images is the same as not having your own logo.

    There are no CUSTOM directories included because they'd be overwritten with every upgrade/update. YOU have to create the folders and call them whatever you want.

    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/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.

    Once you've created the folders and copied the basic files over (your logo should be in includes/templates/YOUR_TEMPLATE/images/), you can select your template from 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

  2. #12
    Join Date
    Feb 2007
    Location
    Perdido Beach, Alabama
    Posts
    34
    Plugin Contributions
    0

    Default Re: Changing the logo

    Kobra and AFO,
    I think I have it now... BUT I need to know this...

    Do we "ONLY" copy the files listed by AFO and the "template_info.php" into our CUSTOM folders ? THEN add ONLY the files we change ??

    That makes sense to me, so that after future upgrades we can edit and copy the same files back into our custom folders.....

    I tried it once without this great info and had to reload back to STOCK becasue I got a page template that was pretty blank and ugly....

    This is a VERY IMPORTANT thread and instruction.... We all want minor mods but we have to keep everything in order for upgrades.... understand...
    How about "contributions" ? Are contributions ever overwritten during a ZenCart upgrade... I would think not ??

    Cobra and AFO... We appreciate your time and help... Thank goodness there are folks here willing to spend time to help us.

    THANKS !

    SteveRF
    [FONT=Georgia]SteveRF[/FONT]

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

    Default Re: Changing the logo

    Hi Steve,

    I compiled that list while creating a prototype ZC for someone. Those were the folders/files I used to get it started (in fact, it's still only those folders/files). You could probably get away with fewer folders/files, but I found that list was a good starting point. I'm glad you found it helpful.

    You are correct that you only need to duplicate the files you have to change. You can leave the others alone and ZC will take care of it. As you want the look of the site to change, you can add the necessary changes.

    You are also correct that this system isolates your changes and makes upgrading easier because you can use something like WinMerge to compare the files you changed to the new versions.

    Your question about contributions is a tricky one. If the contribution is compatible with the upgraded version and doesn't involve core files (that get overwritten), then you won't have an issue. Otherwise, you might have to reinstall the contribution. I had to install the new admin levels when I upgraded from 1.2.7 to 1.3.7 because the old one was simply outdated.
    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

  4. #14
    Join Date
    Feb 2007
    Posts
    3
    Plugin Contributions
    0

    help question Re: Changing the logo

    I've been following this thread, because I've re-installed zc for a fifth time now, and I followed the instructions to the "T".

    Not only that, I wanted to make sure that I start out with IH2 before I do anything else so I sat with a printout of the IH2 directory tree and painstakingly made sure that every item went where it belonged.

    After which I went to admin and installed the image handler2.

    So far so good, seems like everything functions.

    Then I want to customize, and I'm no stranger to html/css, so I created a folder called includes/templates/IU_1 and then copied the contents of includes/templates/classic into it.

    Then went to admin and changed the default template to IU_1

    created my own logo IU_logo.gif using MS paint and placed into IU_1/images Now have includes/templates/IU_1/images/IU_logo.gif

    Then created a file called includes/languages/english/IU_1/header.php
    and modified the existing value 'logo.gif' to 'IU_logo.gif'

    And guess what! It didn't work. No matter what I do, a view source shows that the logo.gif comes from template_default, not even classic.

    There is something broken and I can't put my finger on it.
    Now I've read your post, Afo, and I see that you advocate overloading the custom template directory with the full compliment of files.

    Maybe you're right. But that's not how this is suppose to work, it's been said only to copy over those files that you intend to modify.

    Is it possible that the current template directory value is changed by the system fro some reason if the system goes outside of the template directory for a module?

    Can someone please look into this?

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

    Default Re: Changing the logo

    Can you post a URL so we can take a peek?
    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

  6. #16
    Join Date
    Feb 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Changing the logo

    I'd love to oblige you Afo, but I'm working on localhost until it's finished.

    Is there anything else I can do to help myself?

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

    Default Re: Changing the logo

    Quote Originally Posted by GTFM View Post
    There is something broken and I can't put my finger on it.
    Now I've read your post, Afo, and I see that you advocate overloading the custom template directory with the full compliment of files.
    Actually, just the opposite. The list contains the basic folders/files needed to create a custom template. Copying the contents of the /classic/ or /template_default/ folder into your custom template folders will make upgrading a pain. You only need to copy the files you are going to use.
    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. #18
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Changing the logo

    Quote Originally Posted by GTFM View Post
    I'd love to oblige you Afo, but I'm working on localhost until it's finished.

    Is there anything else I can do to help myself?
    From your previous post, it appears you've done everything right. I've never run ZC from localhost, so I'm not familiar with the ins and outs of that. I use a testbed on one of my domains to play with ZC.
    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

  9. #19
    Join Date
    Feb 2007
    Posts
    3
    Plugin Contributions
    0

    help question Re: Changing the logo

    I went home yesterday and made sure that I created every item in the list provided by Afo in previous postings.

    To no avail.
    I placed my IU_logo.gif in various image folders on the admin level, and on the template level, but nothing.

    The only thing that would change the situation so that my logo IU_logo.gif would be displayed in the header was placing this gif in the
    includes/templates/template_default/images folder.

    You see, it looks for the right GIF, but in the wrong folder. I suspect that there is something missing or out of place, an extra copy of header.php or tpl_header.php maybe where it doesn't belong. I just can't find the problem.

    I checked a view source, and all of my custom CSS files are picked up in the head. Any CSS change I make is picked up (such as background images, colors, etc...). The imagehover.js from the IH2 install was being picked up from the javascript folder in the template_default directory, so I made a copy of the javascript folder in my custom folder and copied over the js. This made it so that the script is now bing picked up from my custom template folder instead. Nothing from template_default.

    Why does it insist on looking for the HEADER_LOGO_IMAGE in the template default directory? Why, why, why?

    Something is missing the override. Please don't ask me if I changed the current template in admin, obvioulsy the answer is yes.

    Someone must be able to identify what to look for. Any one?

  10. #20
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Changing the logo

    Aanii Afo and Kobra

    I have been reading this thread with interest as I need to change the logo on my zen cart also, like most people I guess.

    Anyway I followed all of the directions from both of you and I have a problem I can't quite figure out.

    I was able to change my template from admin - tools - templates to my new custom template using the files you listed in your post here in this thread.

    Well I must have missed something.

    My logo.gif is a picture that I am designing with so I'm using it as a place holder. I changed the sizes to my custom logo.gif in the includes/languages/english/My-Template-Name/header.php so the pic shows fine.

    The problem is the whole page is all shifted around. Nothing is in the right place and the left side boxes are pink?

    Here is my url so you can see for yourselves what the problem is.

    http://www.thecompleatblogger.com/productcenter

    Hopefully you can help me.

    I am new to zen cart however, I'm not new to html or css or php. I do know I made a big error somewhere

    Any and all help would be much appreciated.

    Have a marvelous week!

    Blessings,
    Bluedolphin

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Changing the logo
    By kgorhan in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Aug 2012, 12:37 PM
  2. Changing the logo
    By gamenet in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 8 Nov 2010, 01:58 AM
  3. Changing the 'Powered By, Zen Cart, the art of ecomerce' logo?!
    By cmerr85 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 29 Nov 2009, 06:54 AM
  4. Changing the logo
    By deathbybutterscotch in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 May 2008, 10:26 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