rvak007 Posted February 3, 2011 Share Posted February 3, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.