Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Accessing the customer ID


tammylee

Recommended Posts

I have searched the forums and googled and still could not find an answer. All I need is the customer_id, as it appears in the db as primary key for the customer table, of the customer currently logged on.

 

I have tried using the global variable and it has a value of '1' regardless of who is logged in. I see that the value I want is in the sessions table (a:0:{}}customer_id|s:1:"2"; - in the value field) but I am completely lost on how I can retrieve it.

 

Any help would be greatly appreciated; in the mean time I will continue hunting through code and forum.

 

Thank you.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...