sammycom Posted July 28, 2010 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.
♥zelf Posted July 29, 2010 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
sammycom Posted July 29, 2010 Author Posted July 29, 2010 I added those codes to includes/header.php and it works Perfect. Thanks a million.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.