Zen Cart Logo
Forums / General Questions / Adding extra images to my zen cart

Adding extra images to my zen cart

Locked

Views: 2,908

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
7 Jan 2009, 6:20 PM
#1
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

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

7 Jan 2009, 6:24 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

7 Jan 2009, 6:35 PM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

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.

7 Jan 2009, 6:40 PM
#4
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Adding extra images to my zen cart

fairestcape:

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

7 Jan 2009, 7:05 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

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:

<!--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:-

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

<!--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

7 Jan 2009, 8:00 PM
#6
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

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 Jan 2009, 8:04 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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