[ic] user login dealer test...

Mike Heins interchange-users@icdevgroup.org
Fri Aug 9 21:10:01 2002


Quoting Ed LaFrance (edl@newmediaems.com):
> ...which will evaluate to true only if there is some kind of data in the 
> dealer field. And finally, since all userdb values are loaded at login, you 
> can also do:
> 
> [if value dealer == 1]
> ...
> [else]
> ...
> [/else]
> [/if]
> 
> ...assuming that [value dealer] has not been mucked with to make it invalid 
> for the current session.

Actually, this line:

UserDB    default    scratch       "dealer price_level credit_limit"

in catalog config says it gets put in Scratch instead. Otherwise someone
could submit their own form or URL with dealer=1 and get dealer pricing...

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

Fast, reliable, cheap.  Pick two and we'll talk.  -- unknown