Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding banner to the top of my shop


gandhi

Recommended Posts

I found this in the contribution section

 

1. Open includes\header.php

2. Find:

 

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

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif',

'oscommerce') . '</a>'; ?></td>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' .

tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' .

tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>

  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif',

HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</tr>

</table>

 

3. Replace this code with:

 

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

<tr class="header">

<td valign="middle" height="126"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' .

tep_image(DIR_WS_IMAGES . 'NAMEOFYOURIMAGE.gif', 'We have the best website') . '</a>'; ?></td>

 

<td align="right" valign="bottom" height="126"><table border="0" cellpadding="0"

cellspacing="0" width="100%">

<caption align="center"><img src="NAMEOFYOURIMAGE.gif" width="200" height="40"

alt="NAMEOFYOURIMAGE.gif" (97714 bytes)"></caption>

<tr>

<td width="100%"></td>

</tr>

</table>

<p><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . '

header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' .

tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' .

tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '

</a>

'; ?>  </td>

 

</tr>

</table>

 

4. Instead of "NAMEOFYOURIMAGE.gif" and 'We have the best website' use your site name.

5. Replace NAMEOFYOURIMAGE.gif by the name of your ad.

6. The parameter for width and height may be adjusted according to your ad. In the replacement code they are 200 and 40.

7. You could simply copy and paste and make modifications.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...