Ship to Phone Number on Order Confirmation Email
I am looking for the correct variable to use to display the Ship To Phone number on the order confirmation email. Has anyone been successful doing this?
What is the best way to find out what variables are available to the nVelocity engine used in able 7??
Thanks
Ship to Phone Number on Order Confirmation Email
Re: Ship to Phone Number on Order Confirmation Email
From help.ablecommerce.com:
In NVelocity, Orders.Order is $order, so:
Get a copy of the CommerceBuilder Class Library documentation from http://wiki.ablecommerce.com/index.php/ ... uilder_API
So, typically, during basket lifetime, objects are available via Token.Instance members (User, Store), and on order via Order members - in your example Orders.Order.Shipments[].ShipToPhone is what you are after.Appendix D: nVelocity Syntax Reference
.NET Syntax and Variable Formatting
When you reference variables you are accessing the object through the .NET framework. You can use traditional .NET syntax to access properties and methods.
In NVelocity, Orders.Order is $order, so:
Code: Select all
#foreach ($shipment in $order.shipments)
Phone Number is: $shipment.ShipToPhone
#end
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
Re: Ship to Phone Number on Order Confirmation Email
Worked Great - Thanks alot!!