Post by yegga » Tue Jan 05, 2010 3:06 am

hello,

i seem to have deleted any instances of a logout - i have no way of logging out of my shop?

can you tell me where the html for this resides? i can see there are terms related to logout in:

catalog/language/english/account/logout.php

where is this called from? i need to put back a logout button in my shop!

Active Member

Posts

Joined
Tue Sep 08, 2009 5:03 am

Post by Xsecrets » Tue Jan 05, 2010 3:21 am

index.php?route=account/logout would be the link you are looking for.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by yegga » Tue Jan 05, 2010 3:22 am

yes, thank you, can you give me an example of somewhere where this code is called?

Active Member

Posts

Joined
Tue Sep 08, 2009 5:03 am

Post by nazimjamil » Sat Aug 28, 2010 12:43 am

This is what you really want.
<a href="<?php echo str_replace('&', '&', $logout); ?>"><?php echo $text_logout; ?></a>

http://nazimjamil.com/work
http://twitter.com/_naz


Newbie

Posts

Joined
Fri Aug 20, 2010 10:15 pm
Location - London

Post by yowchuan » Sat Jan 09, 2016 11:14 pm

This is a weird problem. I have multiple opencart stores under different domain names, but only one of it has this problem of not having a 'logout' button. The codes for

Code: Select all

catalog/view/theme/journal2/template/account
is exactly the same.

However, when I add

Code: Select all

<li><a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a></li>
I will get the following error message:

Code: Select all

Notice: Undefined variable: text_logout in /catalog/view/theme/mytheme/template/account/account.tpl on line 24

New member

Posts

Joined
Wed Feb 06, 2013 2:39 am

Post by sk786 » Tue Jun 13, 2017 8:46 am

Try this:

Code: Select all

<li><a href="index.php?route=account/logout">Logout of My Account</a></li>

Newbie

Posts

Joined
Mon Apr 13, 2015 11:40 am
Who is online

Users browsing this forum: No registered users and 98 guests