devilgrins Posted March 10, 2007 Posted March 10, 2007 how do i write the code to check if the customer is logged on.. to display a hello <customer name> else a hello guest, please click to register or login.. i just want a simple check to see if its a guest or customer.. and if so certain things would show differently.
Guest Posted March 11, 2007 Posted March 11, 2007 here is an example if (tep_session_is_registered('customer_id')) { //here we execute something because the customer is logged in } else { // else ask him to login tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.