Page 1 of 1

getting Warehouse information on an email.

Posted: Fri Apr 24, 2009 6:02 pm
by ryanstowasser
I'm trying to get to the Warehouse object in on an email template.

$order.Shipments(0).Warehouse was my best guess, but it doesn't work. Can anyone post a nVelocity example that would access the warehouse object?

thanks

Ryan

Re: getting Warehouse information on an email.

Posted: Mon Apr 27, 2009 7:51 am
by mazhar
Try

Code: Select all

$order.Shipments.getAt(0).Warehouse

Re: getting Warehouse information on an email.

Posted: Mon Apr 27, 2009 9:51 am
by ryanstowasser
That was close, but didn't work. The syntax I found this morning that is working is:

Code: Select all

$order.Shipments.get_Item(0).Warehouse
You can access a specific item in an nVelocity Array using the get_Item() function.