msg82256 Posted April 1, 2006 Posted April 1, 2006 My header includes a logo that is 473px wide. I am trying to add a graphic to the right of this that incorporates a hotlink to specials and featured products. I cannot figure this out. The test site is at http://charronmed.com/osc1/catalog/. You can see the large green section of real estate right above the 'MY ACCOUNT' Link. Any idea on how to incorporate graphic into this section would be appreciated. Thanks, MG
Wendy James Posted April 2, 2006 Posted April 2, 2006 You would have to edit the includes/header.php Look for this code in a stock osCommerce file. <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> and change it to something like <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 valign="middle"><a href="' . tep_href_link(FILENAME_SPECIALS) . '"><img scr="urltopic/pic.jpg" border="0" /></a><br /><a href="' . tep_href_link(FILENAME_FEATURED) . '"><img scr="urltopic/pic.jpg" border="0" /></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> changing <a href="' . tep_href_link(FILENAME_SPECIALS) . '"><img scr="urltopic/pic.jpg" border="0" /></a><br /><a href="' . tep_href_link(FILENAME_FEATURED) . '"><img scr="urltopic/pic.jpg" border="0" /></a> to the correct filename for featured, i just guessed and the right url to your pics. That adds two images one on top of the other next to your banner, before the three small icons. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.