i want to save a customer's fedex number in user setting and then make available to send to vendor.
can you access/display user.setting field in email templtes? if so, how? thanks.
access of user.setting in email template
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: access of user.setting in email template
Here is some info from Able's wiki
http://wiki.ablecommerce.com/index.php/ ... _Templates
http://wiki.ablecommerce.com/index.php/ ... _Templates
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: access of user.setting in email template
Yes it is definitely possible. You can loop through all UserSettings and identify the one you want to render.
Just do it this way:
It looks a bit clunky, but nVelocity has never been known for it's intuitive code formatting and syntax
Just do it this way:
Code: Select all
#foreach($setting in $order.User.UserSettings)
#if ($setting.FieldName=="Test")
$setting.FieldValue
#end
#end
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: access of user.setting in email template
You can do it like
Code: Select all
$user.Settings.GetValueByKey("FieldName")