| View previous topic :: View next topic |
| Author |
Message |
Keys
Joined: 17 Aug 2011 Posts: 82
|
Posted: Mon Nov 21, 2011 10:54 am Post subject: Print number of ordered items on packing list? |
|
|
I am wondering if anyone knows of the code to add up all the quantity of ordered items and show the total somewhere on the packing list.
For example, if someone orders 2 of one item, 3 of another and 1 of another, I would like to show that there are supposed to be 6 items in the box.
What I need to be able to do is add up the quantity column.
Any help is appreciated.
BTW, this really helps improve the quality of our pick and pack process.
Thanks
Bob |
|
| Back to top |
|
jl191
Joined: 09 May 2010 Posts: 45
|
Posted: Mon Nov 21, 2011 4:23 pm Post subject: |
|
|
Here is the code
| Code: | | <xsl:value-of select="sum($order/Item/Quantity)" /> |
|
|
| Back to top |
|
Keys
Joined: 17 Aug 2011 Posts: 82
|
Posted: Tue Nov 22, 2011 2:36 pm Post subject: |
|
|
Thank you!
Works perfectly!
Bob |
|
| Back to top |
|
qcom
Joined: 05 Dec 2011 Posts: 1
|
Posted: Mon Dec 05, 2011 12:31 pm Post subject: |
|
|
| I'm new to this. Where in the template is this being added? |
|
| Back to top |
|
|