Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 03/10/2020 :  20:48:03  
Creating my own menus...

what is the link or command to force a customer logout by using a menu selection?

Terry (Redsei)

Paradise
Ecommerce Template Guru

USA
1602 Posts

Pre-sales questions only
(More Details...)

Posted - 03/10/2020 :  23:13:23  
Boom Shaka Lakaa ....

Mark
Responsive Design Deals Ecomm Plus - ASP 6.8
www.paradiseclothingco.com

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 03/11/2020 :  02:01:17  
Hi Terry,
Providing you have the following code at the top of all your store pages (and you should have)
<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
?>

Make sure the file vsadmin/inc/incminicss.php is on the server, it should be as it now comes with the updater

Add this to your css
div.hide{display:none;}

Add this code just below your body tag in your div to stop it displaying
<body>
<div class="hide">
<?php $minicssaction="onelineminilogin"?>
<?php include "vsadmin/inc/incminicss.php" ?>
</div>
<!-- Body Inner -->

Then for your login and logout links add the following to your menu

For the login link
<a href="#" onclick="return displayloginaccount()">Login</a>

For the logout link

<a href="#" onclick="return dologoutaccount()">Log Out</a>



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 03/11/2020 02:02:47

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 03/11/2020 :  05:52:01  
So just to be straight, there is no LINK (logout.php) or something that I can add to a button to enable this? Like a URL that would do the same thing?

Terry (Redsei)

1818charlie
ECT Moderator

United Kingdom
1198 Posts

Posted - 03/11/2020 :  06:36:10  
quote:
there is no LINK (logout.php) or something that I can add to a button to enable this? Like a URL that would do the same thing?


No, there is not & never has been

Steve
Bolton, Lancashire, UK

Remember - Any edits to the ectcart.css file will be overwritten by updater's. ALL edits to ectcart.css rules should be placed in your style.css folder.

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 03/11/2020 :  06:42:33  
Well actually there is to be honest, but I think you would find my first method far better because your login would be a popup instead of going to the clientlogin.php page and your logout wouldn't take you to the cart page.

But if you want to just add a simple logout link try adding <a href="cart.php?mode=logout">Log Out</a>



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 03/11/2020 06:49:11

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 03/11/2020 :  07:05:36  
That's perfect Phil-thanks!

Terry (Redsei)
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000