Page 1 of 1
Display salutation in order details
Posted: Fri Nov 13, 2009 4:14 pm
by michaelatnicsys
I have added salutation to the billing/shipping addresses successfully via the following link:
viewtopic.php?f=42&t=11027
My question is now, how do I display that in emails/reports/receipt pages that use the order.BillingFirstName, etc, fields (instead of the user.FirstName, user.Nickname, etc, fields?
Thanks
Re: Display salutation in order details
Posted: Mon Nov 16, 2009 6:24 am
by mazhar
Try this statement
Code: Select all
order.User.PrimaryAddress.Nickname
Re: Display salutation in order details
Posted: Wed Dec 02, 2009 11:29 am
by michaelatnicsys
I got this error when trying to send an email:
Some error has occurred while parsing email template. Please fix the email template 'Customer Order Notification' before trying to send email. Error details:
Lexical error: NVelocity.Runtime.Parser.TokenMgrError: Lexical error at line 132, column 36. Encountered: "u" (117), after : "&" at NVelocity.Runtime.Parser.Parser.Directive() at NVelocity.Runtime.Parser.Parser.Statement() at NVelocity.Runtime.Parser.Parser.Process() at NVelocity.Runtime.Parser.Parser.Parse(TextReader reader, String templateName)
Re: Display salutation in order details
Posted: Thu Dec 03, 2009 3:12 am
by mazhar
Don't forget to place $sign before variable name like
Code: Select all
$order.User.PrimaryAddress.Nickname
Re: Display salutation in order details
Posted: Thu Dec 03, 2009 2:44 pm
by michaelatnicsys
I'm sorry I forgot to mention, I did include the $
Re: Display salutation in order details
Posted: Fri Dec 04, 2009 8:14 am
by mazhar
Then possibly you may have corrupted the Email template some how, one possibility is that you edited Email template via FCK editor. This is a known problem that FCK corrupts NVelocity scripts. Give a try restore default template and then make change directly in the text area by locating desired location instead of opening it FCK editor.
Re: Display salutation in order details
Posted: Thu Dec 10, 2009 4:48 pm
by michaelatnicsys
Yes that is indeed what happened.
Thanks, your suggestion worked.