Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need to remove links after login...


jwsfun

Recommended Posts

This is the code I have in my header.php for the links in my header:

 

        <td class="main" width="259" align="right" valign="middle"><a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a><br><a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a><br><?php if(tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_WISHLIST, '', 'SSL'); ?>" align="right" class="headerNavigation"><?php echo HEADER_TITLE_WISHLIST; ?></a><br><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" align="right" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a><br><?php } ?><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>" align="right" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a><br><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" align="right" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a></td>

 

Before sign-in, these links are displayed:

  • sign in
  • create profile
  • shopping cart
  • checkout

After sign-in:

  • sign in
  • create profile
  • my wishlist
  • my profile
  • shopping cart
  • checkout

What I need to do is eliminate (remove) the "sign in" and "create profile" links from the header after the customer is signed-in...

Can someone please point out what I need to do here? I've tried this several ways but I'm getting nowhere <_< .

Link to comment
Share on other sites

        <td class="main" width="259" align="right" valign="middle">
<?php if(tep_session_is_registered('customer_id')) { ?>
         <a href="<?php echo tep_href_link(FILENAME_WISHLIST, '', 'SSL'); ?>" align="right" class="headerNavigation"><?php echo HEADER_TITLE_WISHLIST; ?></a><br>
         <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" align="right" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a><br>
<?php } else { ?>
         <a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a><br>
         <a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a><br>
<?php } ?>
         <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>" align="right" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a><br>
         <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" align="right" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>
      </td>

Hth,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...