On our pickslips, i would like to show the price against each pick item.
What code do I need to add to the pickslip template to show price?
Thanks
It's a bit tricky for me to experiment with the pick slip template but I can give you some suggestions. Many of the tags from the invoice template will also apply to the pick slip. Have you tried [@price@]?
Tried price - just comes up blank. Im not great at code, but it seems that maybe we need to pass that price variable to the template?
The problem is that pick slips are written out using the (undocumented) [%picking_list%] tag, which doesn't have as many fields available as you get on an order. Try putting the debug tag somewhere inside the [%PARAM *order_body%]:
[%debug show_data:'1'/%]
That will write out a huuuuuge list of tags (they are clearer if you view source). That's all the tags which exist at that point. See if there is anything useful.
Otherwise, the only way to get order line pricing is the show_order tag. That's a pain in your case because you can't easily access a single line item. You'd have to list all the lines again in the footer to show pricing.
Brilliant - the answer is [%format type:'currency'%][@unit_price@][%/format%]
Thanks Erik