Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Log In to Log Off


sammycom

Recommended Posts

Posted

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.

Posted

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 } ?> 

Archived

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

×
×
  • Create New...