Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to add tabbed banner in my header and need to know where its defined


Guest

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

[email protected]

 

Thanks,

 

James

 

 

 

See the latest updates at www.eadvantageauctions.com/oscommerce

 

Still working on getting rid of that error about tmp/directory.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...