Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Information box links into the header


sarah1980

Recommended Posts

Posted

I wanted the information box links to appear in my header (along the row with the bread crumb and view account and checkout). This is the code in header.php that I took from information.php but I receive an error when opening the catalog index. Can anyone show me where I've gone wrong?

 

<?php if ((tep_session_is_registered('customer_id')) && (!tep_session_is_registered('noaccount'))) // DDB - PWA - 040622 - no display of logoff for PWA customers
  { ?>
    	 <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?> 
     </a>  |  
     <?php } ?>

     <?php if (!tep_session_is_registered('noaccount')) // DDB - PWA - 040622 - no display of account for PWA customers
  { ?>
    	 <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, 'my_account_f=1', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?>      </a> 
  <?php } ?>

 '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a> | ' . 
'<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a> | ' . 
'<a href="' . tep_href_link(FILENAME_FAQ_INFO) . '">' . BOX_INFORMATION_FAQ_INFO . '</a> | ' . 
'<a href="' . tep_href_link(FILENAME_TESTIMONIALS) . '">' . BOX_INFORMATION_TESTIMONIALS . '</a> | ' . 
'<a href="' . tep_href_link(FILENAME_CUSTOMER_GALLERY) . '">' . BOX_INFORMATION_CUSTOMER_GALLERY . '</a> | ' . 
'<a href="' . tep_href_link(FILENAME_FREE_PATTERNS) . '">' . BOX_INFORMATION_FREE_PATTERNS . '</a> | ' . 
'<a href="' . tep_href_link(FILENAME_NEWSLETTER) . '">' . BOX_INFORMATION_NEWSLETTER . '</a> | ' . 
'<a href="' . tep_href_link(FILENAME_ARTICLES) . '">' . BOX_INFORMATION_ARTICLES . '</a> | ' . 
'<a href="' . tep_href_link(FILENAME_WHOLESALE) . '">' . BOX_WHOLESALE_INQUIRY . '</a> | ' .
'<a href="' . tep_href_link(FILENAME_FRIENDS) . '">' . BOX_INFORMATION_FRIENDS . '</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>
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
 </tr>
</table>
<?php
 }

Archived

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

×
×
  • Create New...