I need working examples of the [ORDERS GROUP|ORDER TAG:x]

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.

Show your template so we can see your use.

[LAYOUT] <C22>ORDER <EB> <DB> <L00> <L00>Date:{TICKET DATE} Time:{TIME} <L00> <L11>Table:{ENTITY NAME:Tables} <L11>Ticket No:{TICKET NO} <F>- <L00> {ORDERS} <L00> <L00>

[ORDERS GROUP|ORDER TAG:Entree] <C00>--{GROUP KEY}--

[ORDERS] <L11>{QUANTITY} {NAME} {ORDER TAGS}

[ORDERS:Void] <L11>{QUANTITY} {NAME}|**Void** {ORDER TAGS}

[ORDER TAGS] -- Format for order tags <L00> * {ORDER TAG NAME}

Entree looks like a tag value to me. You can group by order tag names (for example course) How did you configured order tags?

The Order Tag sections might look something like this:

[ORDER TAGS:Sauces]
<size 14><color LightSalmon><font Consolas>   [=('{ORDER TAG QUANTITY}'>1 ? {ORDER TAG QUANTITY} : ' ')] {ORDER TAG NAME}</font></color></size>

[ORDER TAGS:Meat]
<size 14><color #FFCCCCFF><font Consolas>   [=('{ORDER TAG QUANTITY}'>1 ? {ORDER TAG QUANTITY} : ' ')] {ORDER TAG NAME}</font></color></size>

[ORDER TAGS:Veggies]
<size 14><color #FFCCFFCC><font Consolas>   [=('{ORDER TAG QUANTITY}'>1 ? {ORDER TAG QUANTITY} : ' ')] {ORDER TAG NAME}</font></color></size>
2 Likes

This is my Order Tag List

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.

I know it should work, but I can’t get mine to.

If im not mistaken Those are tag values. Tag name is Serving Order

So it should read:

[ORDERS GROUP|ORDER TAG:Serving Order]
<C00>--{GROUP KEY}--

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

1 Like

OK, so I added what you suggested and it works!

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