Using nVelocity to Display or act upon user group
Posted: Tue Nov 04, 2008 10:41 am
We have users who need to log in with an existing account to recieve member pricing. I'd like to display a message in the checkout screen if someone logs in and is not in the member user group, reminding them to use their pre-existing member account (assuming they have one) to receive member pricing.
I thought I'd try using nVelocity to accomplish this, but I am not sure if or how to access the UserGroup name, or even the ID. If I can get at the ID I might be able to use the sample code I've seen to do a quick check and display a message if they are or are not in the member group. How can I access a Users Group IDs or a User Group Names.
I was fiddling with
${UserGroup.GroupID}
$User.Group
... but had no luck.
Thanks in advance.
Ernie
I thought I'd try using nVelocity to accomplish this, but I am not sure if or how to access the UserGroup name, or even the ID. If I can get at the ID I might be able to use the sample code I've seen to do a quick check and display a message if they are or are not in the member group. How can I access a Users Group IDs or a User Group Names.
I was fiddling with
${UserGroup.GroupID}
$User.Group
... but had no luck.
Thanks in advance.
Ernie