Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Customer login status

Customer login status

Views: 990

Results 1 to 6 of 6
29 Oct 2011, 12:33 AM
#1
familynow avatar

familynow

Zen Follower

Join Date:
Aug 2011
Location:
Near Ottawa, Ontario, Canada
Posts:
321
Plugin Contributions:
0

Customer login status

Hi.

Just wondering if there's anyone that has tried to get the login status displayed somewhere(ie top right maybe?)

Something like 'Welcome, 'customer_name'. And prior to login it could say Welcome, Guest. Please login or create an account.

29 Oct 2011, 12:58 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Customer login status

The code to handle this is already in the top header nav (Home / Login in stock ZC). The Login changes to Logout / My Account when logged in, and you could change or add code in tpl_header.php for other output. The Welcome, name is handled in, I believe, tpl_index_default.php, and you could adapt that to the header location.

29 Oct 2011, 1:01 AM
#3
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Customer login status

try this ------- >

29 Oct 2011, 12:23 PM
#4
familynow avatar

familynow

Zen Follower

Join Date:
Aug 2011
Location:
Near Ottawa, Ontario, Canada
Posts:
321
Plugin Contributions:
0

Re: Customer login status

rbarbour:

try this ------- >

Thanks! I'll give that a whirl.

7 Nov 2011, 1:19 AM
#5
familynow avatar

familynow

Zen Follower

Join Date:
Aug 2011
Location:
Near Ottawa, Ontario, Canada
Posts:
321
Plugin Contributions:
0

Re: Customer login status

Just reporting back...Right on the mark!

Thank you!

8 Nov 2011, 7:47 PM
#6
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Customer login status

Glad this worked for you!