Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Embed Logout button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-06-2011, 05:04 PM
 
sparrowdog sparrowdog is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 244
 

Default Embed Logout button

I have stripped the AUTH box out of www.shopnaturally.com.au which has created a problem.

In store, when we do phone orders for people, when we're done, there's no way for us to log out for that user. Since the Logout link in the AUTH box and in the checkout is done with Javascript, I wasn't sure how to create a Logout link to just put on the page somewhere.

Do I just steal code from the AUTH box?

Using 4.1.11
__________________
Version 4.1.6 to 4.1.11
Reply With Quote
  #2  
Old 12-07-2011, 02:13 PM
  CottonAge.com's Avatar 
CottonAge.com CottonAge.com is offline
 

eXpert
  
Join Date: Jan 2008
Location: Orange County, California
Posts: 244
 

Default Re: Embed Logout button

you can insert
Code:
{include file="customer/authbox.tpl"}
where ever you would like to show the login log out
__________________
CottonAge.com - v4.4.4 - Gold
Mirko.com - v4.1.12 - Gold

We sell Bathrobes, Slippers, Towels & more at wholesale prices...
Reply With Quote
  #3  
Old 01-07-2012, 11:27 PM
 
sparrowdog sparrowdog is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 244
 

Default Re: Embed Logout button

I know how to put this in a template easily enough, but I don't want it on a template. I'd like to drop it in to a static page if that's done easily enough.

Dropping the code in to a static page didn't work. Thoughts?
__________________
Version 4.1.6 to 4.1.11
Reply With Quote
  #4  
Old 01-08-2012, 06:25 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Embed Logout button

Quote:
Originally Posted by sparrowdog
Dropping the code in to a static page didn't work. Thoughts?
You have to have "Parse Smarty tags in the content of embedded pages" turned on. You can see the checkbox when you go to static pages in admin or settings
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:28 PM.

   

 
X-Cart forums © 2001-2020