Guest Posted December 15, 2006 Share Posted December 15, 2006 I would like to add a tabbed banner like the one at www.ipodmechanic.com I can create the html and images just fine, but I'm not sure where they are defining that at. I looked at there code but I couldn't find it there either. Any help is appreciated! Thanks, James Quote Link to comment Share on other sites More sharing options...
Guest Posted December 18, 2006 Share Posted December 18, 2006 Ok if anyone is interested in adding tabbed headers to their OS commerce by simply editing the header.php file here it is. First of all MAKE A BACKUP!!!!!! Open your catalog/includes/header.php file and search for the following term: oscommerce.gif This will be located in the table that reprsents the section of your site where you want the new tabbed banner to go. Simply highlight and delete the entire table containing oscommerce.gif and insert your new table. Make sure all your images are linked correctly and preview in your browser. Here is the exact section of the file you are looking to edit: catalog/includes/header.php Starting with app. line 55 <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> Delete that section and insert your new table with your tabbed banner and you should be ready to go. Upload and preview in browser, tweak to meet your needs. Quote Link to comment Share on other sites More sharing options...
Guest Posted December 18, 2006 Share Posted December 18, 2006 Here is my result so far: http://www.eadvantageauctions.com/oscommerce/catalog/ I haven't finalized an actual company logo yet, but as far as the tabs go I think I accomplished what I was looking for. If anyone is interested in achieving this effect please email me at admin@eadvantageauctions.com Thanks, James Quote Link to comment Share on other sites More sharing options...
Guest Posted December 18, 2006 Share Posted December 18, 2006 Here is my result so far: http://www.eadvantageauctions.com/oscommerce/catalog/ I haven't finalized an actual company logo yet, but as far as the tabs go I think I accomplished what I was looking for. If anyone is interested in achieving this effect please email me at admin@eadvantageauctions.com Thanks, James See the latest updates at www.eadvantageauctions.com/oscommerce Still working on getting rid of that error about tmp/directory. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.