Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Footer items appearing at same time (when both logged in & logged out)


rvak007

Recommended Posts

Hello everyone.... hope somebody can help :-)

 

I have found that on the footer of the site I am working on that 'My Account' & 'Create Account' appear at the same time. In addition, the same thing for 'Log In' & 'Log Out'.

 

'My Account' & 'Log Out' should only appear when a person is logged in. 'Create Account' & 'Log In' should only appear when person is not logged in.

 

Current code (includes/footer.php) is as follows -

 

tep_session_is_registered('customer_id')) {

?>  | <a href="<?php echo tep_href_link('account.php')?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a>  | <? } else

{ ?><a href="<?php echo tep_href_link('create_account.php')?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT?></a><? }

?>  |  <? if (tep_session_is_registered('customer_id')) {

?><a href="<?php echo tep_href_link('logoff.php')?>"><?php echo HEADER_TITLE_LOGOFF?></a><? } else

{ ?><a href="<?php echo tep_href_link('login.php')?>"><?php echo HEADER_TITLE_LOGIN?></a><? }

 

 

If someone could please advise how to fix, be greatly appreciated.

 

Cheers!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...