getting Warehouse information on an email.

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
ryanstowasser
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 90
Joined: Tue Oct 30, 2007 4:28 pm
Contact:

getting Warehouse information on an email.

Post by ryanstowasser » Fri Apr 24, 2009 6:02 pm

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: getting Warehouse information on an email.

Post by mazhar » Mon Apr 27, 2009 7:51 am

Try

Code: Select all

$order.Shipments.getAt(0).Warehouse

User avatar
ryanstowasser
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 90
Joined: Tue Oct 30, 2007 4:28 pm
Contact:

Re: getting Warehouse information on an email.

Post by ryanstowasser » Mon Apr 27, 2009 9:51 am

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.

Post Reply