nVelocity - Adding comments to emails
Posted: Tue May 12, 2009 2:08 pm
Hi everyone,
I am trying to add code to our order confirmation emails based on shipment weight. Depending on the total weight of the order, we need to include additional instructions to our order packers. Just a simple if statement, but I'm having problems with the syntax. I've read through the Commercebuilder library docs.
I've tried $shipment.TotalWeight, $orderitem.TotalWeight and order.Items.TotalWeight.
Does this need to be encapsulated in some sort of #foreach statement?
Thanks!
I am trying to add code to our order confirmation emails based on shipment weight. Depending on the total weight of the order, we need to include additional instructions to our order packers. Just a simple if statement, but I'm having problems with the syntax. I've read through the Commercebuilder library docs.
I've tried $shipment.TotalWeight, $orderitem.TotalWeight and order.Items.TotalWeight.
Code: Select all
#if($shipment.TotalWeight() < 4)
First Class Instructions
#end
Thanks!