[ic] OrderCheck Logged In User Only
Kevin Walsh
kevin at cursor.biz
Mon Mar 24 16:45:09 EST 2008
David Christensen <david at endpoint.com> wrote:
> On Mar 24, 2008, at 1:18 PM, Sam Batschelet wrote:
> >
> > 5.4.1 I am trying to set a custom foo.oc in OrderCheck to only run
> > if the
> > user is logged in and was wondering if there was a way I could use
> > something
> > like [if session logged_in] ...
> >
> You're definitely on the right track: you should be able to put
> something like this in your profiles:
>
> field1=required "missing field1!"
> ...
> [if session user]
> useronly=required "only logged-in users get this condition!"
> [/if]
>
I'd stick with "logged_in" rather than "user". Other than that, the
advice is good.
See here for a list of session keys and their meaning:
http://www.interchange.rtfm.info/icdocs/tags/if.html#session
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list