[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] OrderCheck Logged In User Only


David Christensen <suppressed> 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
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.