Display salutation in order details
-
- Ensign (ENS)
- Posts: 7
- Joined: Fri Nov 13, 2009 4:08 pm
Display salutation in order details
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
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
Try this statement
Code: Select all
order.User.PrimaryAddress.Nickname
-
- Ensign (ENS)
- Posts: 7
- Joined: Fri Nov 13, 2009 4:08 pm
Re: Display salutation in order details
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)
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
Don't forget to place $sign before variable name like
Code: Select all
$order.User.PrimaryAddress.Nickname
-
- Ensign (ENS)
- Posts: 7
- Joined: Fri Nov 13, 2009 4:08 pm
Re: Display salutation in order details
I'm sorry I forgot to mention, I did include the $
Re: Display salutation in order details
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.
-
- Ensign (ENS)
- Posts: 7
- Joined: Fri Nov 13, 2009 4:08 pm
Re: Display salutation in order details
Yes that is indeed what happened.
Thanks, your suggestion worked.
Thanks, your suggestion worked.