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

How to determine if the user is logged in or not

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-02-2005, 08:19 AM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default How to determine if the user is logged in or not

I am trying to write a php form embedded into x-cart. The form is for user who already logged into x-cart. The challenges to me are

1. how to determine if a user is logged in or not.
2. How to direct the user to the x-cart login page if the user is not logged in.

X-cart files deal with those very well. But its code is very difficult for me to figure out which ones are importment and related to my problems.

Could you give me some directions or a few lines of codes?

Thanks a lot.

Jeff
__________________
version 4.1.1
Reply With Quote
  #2  
Old 02-02-2005, 08:38 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Code:
{if $login} show code {else} show not logged in code {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 03:18 PM.

   

 
X-Cart forums © 2001-2020