Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2008
    Posts
    431
    Plugin Contributions
    0

    Default Adding extra images to my zen cart

    Please have a look at http://mowerpartsupply.com/ and then http://mowerpartsupply.com/catalog/ Notice that in my first non-zen version I have those nice little logos stretching across the bottom. I'd like to add those to my zen cart but I'm not sure how. I haven't decided at this point if they should show up on every page or just the first. What do you think and how would you do it? If you have a technical reply please be very specific because I'm as green behind the ears as they come.

    Ian

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Adding extra images to my zen cart

    You can add those along with your other information presented there in your define_main_page.php file that you can edit from the
    admin > tools > defines page editor > main_page.php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Adding extra images to my zen cart

    Kobra's suggestion is the easiest, and it will enable you to display the images only on the first page - which is what you have indicated you may want to do.

    If you want them to appear on all pages, then one way is to hard-code the image url's into the tpl_footer.php code.

  4. #4
    Join Date
    Sep 2008
    Posts
    431
    Plugin Contributions
    0

    Default Re: Adding extra images to my zen cart

    Quote Originally Posted by fairestcape View Post
    Kobra's suggestion is the easiest, and it will enable you to display the images only on the first page - which is what you have indicated you may want to do.

    If you want them to appear on all pages, then one way is to hard-code the image url's into the tpl_footer.php code.
    Sounds great, but how in the world would I do that?

    Ian

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Adding extra images to my zen cart

    Do you have some knowledge of HTML?

    You will need some knowledge of HTML in order to edit in the hard coding.

    Basically, you need to find the file "tpl_footer.php"

    The core file lives in:

    includes/templates/template_default/common/tpl_footer.php

    You should FTP a copy of this file to your local computer then open it for editing using a good PLAIN TEXT editor, such as CRIMSON EDITOR or NOTEPAD++ - both are available as free downloads off the web. I use Crimson Editor.

    When you have the file open in Crimson Editor, find the part (near the bottom of the file) that says:

    Code:
    <!--bof- site copyright display -->
    <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div>
    <!--eof- site copyright display -->
    Then, you need to hard-code the URL's to your images. I can see when I do a View Page Source in your main site, these images live in the images folder and the HTML that calls them is:-

    Code:
    <p align="center"><img src="images/exmark-logo.gif" alt="exmark-logo" width="63" height="24" /><img src="images/stihl-logo.gif" alt="stihl logo" width="70" height="24" /><img src="images/kohler-logo.jpg" alt="kohler logo" width="70" height="24" /><img src="images/kawasaki-logo.gif" alt="kawasaki logo" width="70" height="24" /><img src="images/briggs-logo.gif" alt=" briggs and stratton" width="70" height="24" /><img src="images/echo-logo.gif" alt="echo logo" width="70" height="24" /><img src="images/toro-logo.gif" alt="toro logo" width="55" height="24" /><img src="images/honda-logo.gif" alt="honda logo" width="70" height="24" /></p>
    (You should first copy these images over to the images folder in your catalog site. when you have copied them, edit tpl_footer.php as follows...)

    Code:
    <!--bof- site copyright display -->
    <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div>
    <p align="center"><img src="images/exmark-logo.gif" alt="exmark-logo" width="63" height="24" /><img src="images/stihl-logo.gif" alt="stihl logo" width="70" height="24" /><img src="images/kohler-logo.jpg" alt="kohler logo" width="70" height="24" /><img src="images/kawasaki-logo.gif" alt="kawasaki logo" width="70" height="24" /><img src="images/briggs-logo.gif" alt=" briggs and stratton" width="70" height="24" /><img src="images/echo-logo.gif" alt="echo logo" width="70" height="24" /><img src="images/toro-logo.gif" alt="toro logo" width="55" height="24" /><img src="images/honda-logo.gif" alt="honda logo" width="70" height="24" /></p>
    <!--eof- site copyright display -->
    SAVE the file on your hard drive.

    Now, you must FTP the edited file to your template, which is:

    includes/templates/mower/common/

    (if common folder does not exist at this level, create it first)

    So your edited file will now be in:

    includes/templates/mower/common/tpl_footer.php

    View your site...

    If you get image place holders instead of the actual images, come back to this post and let me know... we may have to insert a slash in front of the word images in the URL's

  6. #6
    Join Date
    Sep 2008
    Posts
    431
    Plugin Contributions
    0

    Default Re: Adding extra images to my zen cart

    Ok, it worked. Great. I did indeed have to correct the extension with an extra slash. However, I would much rather display those logos above the ez pages footer links. So, what is it that tells it to go above or below the links?

    Ian

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Adding extra images to my zen cart

    So, what is it that tells it to go above or below the links?
    The order of appearance in the file
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. adding extra images on home page - banners?
    By noyloza in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Nov 2012, 08:13 PM
  2. v150 Adding extra images in product info page.
    By wmorris in forum General Questions
    Replies: 15
    Last Post: 6 Oct 2012, 04:49 PM
  3. Extra! Extra! Zen Cart Owners Manual Available!
    By Kim in forum Zen Cart Release Announcements
    Replies: 0
    Last Post: 10 Feb 2007, 04:45 PM
  4. adding images just below power of zen cart
    By tajul_ashyqin in forum Templates, Stylesheets, Page Layout
    Replies: 47
    Last Post: 19 Jul 2006, 12:50 PM

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