For some reason I can’t get the ORDERS GROUP|ORDER TAG to work.
I think I might have missed a step but just in case, I’ve created my order tag group with a populated order tag list but i can’t get it to show grouped on the printer template, it’s just empty.
What I would like is to have an order tagged as any one of those tags and have them grouped together on the Kitchen Ticket.
So if a group orders Ice Cream, soup and Steak as an Entree; salad as Main and prawns for dessert (for example) I can tag those orders appropriately and they get grouped together under their respective tags and printed to the kitchen printer.
You can also sort order by add colon follow by which you want to print first [ORDERS GROUP|ORDER TAG:Serving Order:Entree,Main,Dessert]
This will print Entree first then Main and Dessert
But you should use ORDER STATE instead of ORDER TAG
If possible, could you give us a run down on the voodoo you did.
From what I can gather, it goes as follows:
If order tag is “sauces” (entree in my case), check if order tag quantity is greater than one, (I’m fuzzy on the ? but I’m guessing it’s an AND NOT) is not empty, then print order tag name.
I also stripped out all the HTML as it goes to a kitchen printer.
Thanks a lot guys.
Edit:
This is how it looks now
[ORDERS GROUP|ORDER TAG:Serving Order]
<C00>---------{GROUP KEY}---------
[ORDER TAGS:Entree]
[=('{ORDER TAG QUANTITY}'>1 ? {ORDER TAG QUANTITY} : ' ')] {ORDER TAG NAME}
[ORDER TAGS:Main]
[=('{ORDER TAG QUANTITY}'>1 ? {ORDER TAG QUANTITY} : ' ')] {ORDER TAG NAME}
[ORDER TAGS:Take Away]
[=('{ORDER TAG QUANTITY}'>1 ? {ORDER TAG QUANTITY} : ' ')] {ORDER TAG NAME}
It is like an IF(this) THEN (yes) ELSE (no). It is a Ternary operator which lets you build IF/THEN/ELSE in a single line for quick true/false evaluations.
[=(testcondition) ? 'trueValue' : 'falseValue']
So yes, if Tag Quantity is greater than 1 then print the Quantity, otherwise print a blank space. I don’t like seeing all the ones - that is assumed - so don’t show me a quantity unless it is 2 or more. The blank space is there for consistent alignment, for example:
||||| KITCHEN ORDER |||||
-------------------------
Pizza Custom
Ham
2 Pepperoni
Sausage
3 Pizza Hawain
Ham
Pineapple