Ship to Phone Number on Order Confirmation Email

Post feature requests to this forum and a pre-configured poll will automatically be created for you.
Post Reply
terryffg
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Mon Apr 11, 2005 6:22 pm

Ship to Phone Number on Order Confirmation Email

Post by terryffg » Tue Jul 01, 2008 3:34 pm

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

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: Ship to Phone Number on Order Confirmation Email

Post by nickc » Tue Jul 01, 2008 4:27 pm

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

terryffg
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Mon Apr 11, 2005 6:22 pm

Re: Ship to Phone Number on Order Confirmation Email

Post by terryffg » Thu Jul 03, 2008 10:03 am

Worked Great - Thanks alot!!

Post Reply