Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can you fix this


sac9829

Recommended Posts

Posted

Hi

 

When I go to the configue file to add a new header image the whole header seems to disapear. I think this is because Im placing a larger image then what was their.

 

Does anybody know how to fix this so I can add a larger image?

Posted

what do you mean the 'configue' file, which one are you editing?

Posted

Hi,

 

There is only 1 line to change in /catalog/includes/header.php , line 57

 

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

 

How big (width and height) is the image ?

 

Peter

Posted
Not sure but most likely twice the size of the standard oscommerce logo!

 

Any ideas

open the picture in paint and press CTRL-E it will give you the dimensions. Or right click it and select properties. it will show it there too.

Posted

Here is the name of the file: sacologo.jpg

 

Here is the code:

 

<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 . 'sacotechlogo.gif', 'SacoTechLogo') . '</a>'; ?></td>

</tr>

</table>

 

Any ideas!

Posted

Hi,

 

You have deleted a line of code, which is the other table dimension, your code should be (lines 55 to 60)

 

<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 . 'sacotechlogo.gif', 'SacoTechLogo') . '</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>

 

Peter

Posted

Hi,

 

Are you 100% certain that the file "sacotechlogo.gif" is in the /catalog/images/ directory ?

 

Any other images missing ?

 

Peter

Archived

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

×
×
  • Create New...