Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit Card Logos on home page


Guest

Recommended Posts

Posted

Excuse my ignorance, I am technologically challenged :blink:

I need to drop in 2 jpegs on my home page to show that I accept Visa and Mastercard, but i don't have clue where to start.

Can someone please help me with this?

 

Thanks

Shannon

Posted

If you want these on all pages you could add to includes/footer.php.

 

NB. I haven't tested this, but it's what 'd try first.

 

Find the following in includes/footer.php...

 

<table border="0" width="<?=$shopWidth?>" cellspacing="0" cellpadding="2" align="<?=CENTER_SHOP_ALIGN?>">

 

then, directly after this line, add a row and a cell which spans the 2 columns already in use..

 

//* this is what you'll add *//

<tr>

<td colspan="2">

<img src="myvisaimage.jpeg" width="x" height="y" alt="we accept visa"> <img src="mymastercardimage.jpeg" width="x" height="y" alt="we accept mastercard">

</td>

</tr>

//* this is the end of your addition *//

<tr class="footer">

 

hope this helps!

Posted

I can't find that entry, this is what I have in my "includes/footer.php

 

<?php

/*

$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_INCLUDES . 'counter.php');

?>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>

</tr>

</table>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

</tr>

</table>

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

 

I better not give up my day job! :'(

Posted

okay - so look for...

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

 

(You can remove the comments that start with //* and end with *// if you like. Obviously you replace "myvisaimage" with the name of the appropriate image and add the width, height and alt (alternative text) for each image)

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

//* here's the new row and cell that spans 2 columns *//

<tr>

<td colspan="2">

<img src="myvisaimage.jpeg" width="x" height="y" alt="we accept visa"> <img src="mymastercardimage.jpeg" width="x" height="y" alt="we accept mastercard">

</td>

</tr>

//* here's where the new row ends *//

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...