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

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
crazyjoe
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Apr 26, 2010 2:20 pm

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

Post by crazyjoe » Tue Apr 19, 2011 3:29 pm

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.
Crazy Joe Sadloski
Webmaster
Hot Leathers Inc.
http://www.hotleathers.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

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

Post by mazhar » Wed Apr 20, 2011 5:40 am

Try Placing following code in Email template

Code: Select all

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

crazyjoe
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Apr 26, 2010 2:20 pm

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

Post by crazyjoe » Wed Apr 20, 2011 6:32 am

WELL PLAYED!! Thank you Mazhar! That was exactly what I was looking for.
Crazy Joe Sadloski
Webmaster
Hot Leathers Inc.
http://www.hotleathers.com

Post Reply