I am trying to create a velocity scripting table that is able to add the total amount of what a person purchased. I am able to pull all the Custom Object data in, but have not successfully added multiple variables. I did find the $math.add( object1, object2 ) function but have been unable to render correctly the $transaction.price if the user has multiple transactions. Has anyone had success adding multiple variables in Velocity Scripting? Current code pasted below.
#set ( $totalprice = 0 )
<th>Product Description</th><th>Last Four CC</th><th>Shipping Address</th><th>Shipping Date</th><th>Amount</th>
#foreach($transaction in $transactions_cList)
<td colspan=5>Total: </td>
Solved! Go to Solution.