Zen Cart Logo
Forums / General Questions / customer log off option

customer log off option

Views: 1,188

Results 1 to 8 of 8
21 Jan 2011, 4:14 AM
#1
davidrayandj avatar

davidrayandj

New Zenner

Join Date:
Jan 2011
Posts:
48
Plugin Contributions:
0

customer log off option

hello - new to zen cart here, please be kind...

Loaded the Simply Karin template this week with latest version of zencart. I have been working my way around and for the life of me I cannot find a way for a customer that logs in or creates a new account to log out before they finalize a purchase if they so choose to do.

Am I missing something here or is the customer forced to either purchase something to log out or just close their browser leaving their acct open.

I have attempted to find this answer everywhere but it seems to be a great secret. PLEASE help me!:cry: Thanks!

21 Jan 2011, 4:42 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: customer log off option

By default, the Login will change to a Logout in the header ...

What happens if you switch to the Classic Template? Do you see it now?

If so, then you need to check your templates and overrides and see what has been changed, removed or commented out ...

21 Jan 2011, 4:48 AM
#3
davidrayandj avatar

davidrayandj

New Zenner

Join Date:
Jan 2011
Posts:
48
Plugin Contributions:
0

Re: customer log off option

No - still just log in

where do I begin to check the temples, overrides, etc....
(I told you - I am a BRAND new newbie at this (we're the worst kind ya know..haha)...:shocking:

Thanks for the quick reply by the way!

21 Jan 2011, 5:13 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: customer log off option

If you were to go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
Log Out

NOTE: I gave you a hint as starting with a search on Log would take you longer

and select Catalog and click Search ...

you should find define statements for:
HEADER_TITLE_LOGOFF

Make sure they have a value and that your templates and overrides have not set them to have no value ...

If you then do a search in the bottom input box for:
HEADER_TITLE_LOGOFF

and select Catalog and click Search ... you will find where these should be and if you have templates and overrides that either do not have them or have them commented out ...

21 Jan 2011, 2:11 PM
#5
davidrayandj avatar

davidrayandj

New Zenner

Join Date:
Jan 2011
Posts:
48
Plugin Contributions:
0

Re: customer log off option

Ok- thanks... here goes:hug:

I will report back (could be a few mins or a few days)....
students fault- not the teacher of course....!:smile:

21 Jan 2011, 3:17 PM
#6
davidrayandj avatar

davidrayandj

New Zenner

Join Date:
Jan 2011
Posts:
48
Plugin Contributions:
0

Re: customer log off option

OK here is my report-

If I understand correctly what I should have done, I matched each bit of code from the Dev Tool Kit to what my code said in each of the files it named.
Everything matches to what Dev Tool Kit says but the following:

  1. includes/templates/common/tpl_header.php

This is what my files say:

<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGOFF; ?></span></a></li>

Dev Tool does not have the word <span>
does that matter?

I hope this is what you were saying to do. Other than that I cannot not find any differences at all.

Is this a bad thing?

21 Jan 2011, 5:11 PM
#7
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: customer log off option

Zen Cart does include Log Off button in the template header. Now it all depends how your template look like. Having it in the header might not be the best choice.

You can add log off to the order_sucess page so customer can logoff if they choose to, I also have it under the my account links where if they come back to check there order status they can choose to logoff.

Or you can copy the header code from the Classic Template to your new Template.

This is the code that will give you the logoff link:

<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGOFF; ?>
21 Jan 2011, 5:33 PM
#8
davidrayandj avatar

davidrayandj

New Zenner

Join Date:
Jan 2011
Posts:
48
Plugin Contributions:
0

Re: customer log off option

Thank you for the code.

I would like to add it to my footer somehow.

Would it be possible to put it in an ez page? ( I have the log on link there.) If so, please explain (in kindergartner speak of course :D) on how I would accomplish that. I know how to do the ez page, I just mean how and where to put the code so that it will link to it. I added the ez page and of course I have a page not found error -duh...:lamo:

Thanks for your response!!!:smile: