Page 1 of 1
Ship to Phone Number on Order Confirmation Email
Posted: Tue Jul 01, 2008 3:34 pm
by terryffg
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
Re: Ship to Phone Number on Order Confirmation Email
Posted: Tue Jul 01, 2008 4:27 pm
by nickc
From help.ablecommerce.com:
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.
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.
In NVelocity, Orders.Order is $order, so:
Code: Select all
#foreach ($shipment in $order.shipments)
Phone Number is: $shipment.ShipToPhone
#end
Get a copy of the CommerceBuilder Class Library documentation from
http://wiki.ablecommerce.com/index.php/ ... uilder_API
Re: Ship to Phone Number on Order Confirmation Email
Posted: Thu Jul 03, 2008 10:03 am
by terryffg
Worked Great - Thanks alot!!