X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Embed Logout button (https://forum.x-cart.com/showthread.php?t=61936)

sparrowdog 12-06-2011 05:04 PM

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

CottonAge.com 12-07-2011 02:13 PM

Re: Embed Logout button
 
you can insert
Code:

{include file="customer/authbox.tpl"}
where ever you would like to show the login log out

sparrowdog 01-07-2012 11:27 PM

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?

cflsystems 01-08-2012 06:25 AM

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


All times are GMT -8. The time now is 09:27 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.