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)
-   -   How to determine if the user is logged in or not (https://forum.x-cart.com/showthread.php?t=11898)

jdedba 02-02-2005 08:19 AM

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

shan 02-02-2005 08:38 AM

Code:

{if $login}

show code

{else}

show not logged in code

{/if}



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

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