Chaima Posted July 29, 2015 Share Posted July 29, 2015 Hello everyone, I want to know how to add a button to allow users to log out of the site? Link to comment Share on other sites More sharing options...
♥Tsimi Posted July 29, 2015 Share Posted July 29, 2015 if (tep_session_is_registered('customer_id')) { echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL')); } Link to comment Share on other sites More sharing options...
Chaima Posted July 29, 2015 Author Share Posted July 29, 2015 Where can I put this line ? Link to comment Share on other sites More sharing options...
♥Tsimi Posted July 29, 2015 Share Posted July 29, 2015 :huh: I don't know what osCommerce version you have but you should have already a log out button inside the header. Once logged in it should show. The above code can be placed anywhere you like if you need an additional log out button. Link to comment Share on other sites More sharing options...
Chaima Posted July 29, 2015 Author Share Posted July 29, 2015 Okay but once I'm logged it didn't show it's from the beggining and it's an old version of osccomerce! Can i add this lines in header.php ?? or application_top.php? Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.