Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

customer_id help!!!!!!


Guest

Recommended Posts

Posted

I am creating an module that I need to get the currently logged in users customer_id for. I cannot seem to figure this out at all. Can someone please tell me how to show it on a page using the php echo command so that I can see what's going on>

 

Any help would be greatly appreciated.

Posted
if ( tep_session_is_registered('customer_id') ){
 echo 'Customer ID = ' . (int)$customer_id;
}

Posted
if ( tep_session_is_registered('customer_id') ){
 echo 'Customer ID = ' . (int)$customer_id;
}

 

 

THank you so much. You have no idea how much that messed with my head trying to figure it out.

Archived

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

×
×
  • Create New...