Forums / Templates, Stylesheets, Page Layout / How to display customer userid on top of pages?

How to display customer userid on top of pages?

Locked

Started by rohitsax on 13 Dec 2007, 9:05 AM · Views: 1,180

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 Dec 2007, 9:05 AM
#1
rohitsax avatar

rohitsax

New Zenner

Join Date:
May 2006
Posts:
33
Plugin Contributions:
0

How to display customer userid on top of pages?

I want to show the customer's userid after he has logged in on the top of all pages. Is there some code I can add on the header to show this?

Something like a 'Welcome [email protected]' where the email is the customer's userid.

Thanks!

14 Dec 2007, 4:20 AM
#2
jgamio avatar

jgamio

Zen Follower

Join Date:
Nov 2006
Location:
Caracas
Posts:
114
Plugin Contributions:
0

Re: How to display customer userid on top of pages?

I dont know about the email but if you check out this

if (isset($_SESSION['customer_id'])
{

echo $_SESSION['customer_first_name'];
}

this check if somebody is login then show the first name