Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Log off | my account | cart | check out |


thoeri

Recommended Posts

Hi there,

 

I would like to move my above information from the breadcrumb bar to a normal box in the left column. I know how to get rid of it from the header and I know that I have to create a new php file to put in includes/boxes and I know how to require the box in column left. But I don?t know how to write the script for the new php file that goes into includes/boxes. Can anybody please help me out?

 

Regards,

Thomas

Link to comment
Share on other sites

Hi Thomas,

 

The 'echo'ing of the bredcrumb trail is done with the following code

 

echo $breadcrumb->trail(' » ')

 

To put it into a box try this

<?php

<!-- breadcrumb trail box //-->
         <tr>
           <td>
<?php
   $info_box_contents = array();
   $info_box_contents[] = array('text' => BOX_HEADING_BREADCRUMB);

   new infoBoxHeading($info_box_contents, false, false);

   $info_box_contents = array();
   $info_box_contents[] = array('text' => 'echo $breadcrumb->trail(" » ")');
   new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- currencies_eof //-->
<?php
 }
?>

 

Please note - I haven't tried this out - so if you get an error post back and I will try it out and fix the error B)

 

Hope this helps

 

Regards

PhilipH

Link to comment
Share on other sites

OK

 

So your looking to have the right hand side contents of the nave bar in the info box.

 

Look at the code in catalog/includes/header.php and find the following :

 

<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>

 

What I thought you wanted earloer is marked in green. The part your looking for now is coloured in red.

 

Hope this helps

 

PhilipH

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...