Page 1 of 1

Adding User's Groups to Customer Order Notification...

Posted: Tue Apr 19, 2011 3:29 pm
by crazyjoe
Is there an easy way to list the customers User Groups on the order notification email template? I tried the old guess and check method but can't get them show.

Re: Adding User's Groups to Customer Order Notification...

Posted: Wed Apr 20, 2011 5:40 am
by mazhar
Try Placing following code in Email template

Code: Select all

#foreach($userGroup in $order.User.UserGroups)
$userGroup.Group.Name
#end

Re: Adding User's Groups to Customer Order Notification...

Posted: Wed Apr 20, 2011 6:32 am
by crazyjoe
WELL PLAYED!! Thank you Mazhar! That was exactly what I was looking for.