Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Does anybody know how to add the "Logoff" button


happyday

Recommended Posts

Could someone show me how to add the logoff button...

Say you see the button that says login...once you login you don't see the login button no more you say the logoff button...

 

If this contribution is possible could some help guide me to add this option on my page.

 

Thanks

Link to comment
Share on other sites

Could someone show me how to add the logoff button...

Say you see the button that says login...once you login you don't see the login button no more you say the logoff button...

 

If this contribution is possible could some help guide me to add this option on my page.

 

Thanks

 

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

<a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo  tep_image(DIR_WS_IMAGES . 'logoff.gif', HEADER_TITLE_LOGOFF); ?></a>

<?php  }else{

echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'));
echo tep_draw_input_field('email_address');
echo tep_draw_password_field('password'); 
echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN);
 } ?>

 

Add it anywhere you want it. You'll have to add html to display it the way you want it as well as calls to language definitions. You'll find them in login.php

HTH

Sheri

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...