Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding new links to the breadcrumb?


jamiewiles

Recommended Posts

Hi all,

 

I have a download page on my site for device drivers, and would like to add a clickable link in the breadcrumb. Have searched all over the place on how to do this, with no luck.

 

I just know this is going to be a really stupid question!

Link to comment
Share on other sites

Hi all,

 

I have a download page on my site for device drivers, and would like to add a clickable link in the breadcrumb. Have searched all over the place on how to do this, with no luck.

 

I just know this is going to be a really stupid question!

 

Actually i meant the top navigation bar, where it has: My Account | Cart Contents | Checkout

 

I would like to add a download link, and also a link to my forums.

 

I have searched all over the place for an answer for this, and not getting anywhere!

 

Please help!

Link to comment
Share on other sites

/catalog/includes/header.php look for this line

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
 </tr>
</table>

 

add your link in there :)

Link to comment
Share on other sites

/catalog/includes/header.php look for this line

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
 </tr>
</table>

 

add your link in there :)

 

Cheers mate, your a star!

Link to comment
Share on other sites

Got it working a treat mate, just used standard html code though-

 

 

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

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>  <a href="http://www.digital-devices.co.uk/forums"><font color="white">|&nbspForum</a> </a> <a href="http://www.digital-devices.co.uk/downloads.php"><font color="white">|&nbspDownloads</a>   </td></td>

</tr>

</table>

 

This gives me two additional links-Forum and Downloads. Ok, the codes a bit clunky but it works and does exactly what i wanted. Thanks for pointing out where the navigation bar resided sLaV-

 

Jamie

Link to comment
Share on other sites

No worries mate...and just a heads up   should be   ... your missing a semicolon ; :)

 

Thanks for that heads up sLaV, thats why it wasn't displaying correctly in firefox, was fine in i.e though. Was meaning to look at that, you saved me the trouble! Many thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...