Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with customers logged on or not


devilgrins

Recommended Posts

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.

Link to comment
Share on other sites

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'));
}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...