sammycom Posted July 28, 2010 Share Posted July 28, 2010 My oscommerce site has Log-in(login.php)link on right top corner. but it doesn't automatically switch to Log-Off(logoff.php)link when customers logged. Please let me know the codes to fix this problem. Link to comment Share on other sites More sharing options...
♥zelf Posted July 29, 2010 Share Posted July 29, 2010 My oscommerce site has Log-in(login.php)link on right top corner. but it doesn't automatically switch to Log-Off(logoff.php)link when customers logged. Please let me know the codes to fix this problem. Wrap the login text in something like this: <?php if (!tep_session_is_registered('customer_id')) { ?> <a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" title="Login">Login</a> <?php } else { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" title="Logoff">Logoff</a> <?php } ?> Virtual Merchant a.k.a. Elavon, ViaKlix, Nova Payment Module Contribution Link to comment Share on other sites More sharing options...
sammycom Posted July 29, 2010 Author Share Posted July 29, 2010 I added those codes to includes/header.php and it works Perfect. Thanks a million. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.