Print product category in red

found some time to remote into my system just now to start messign with the template… this is what i have but it doesnt seem to do anything…

<XCT>27,33,16
<T>Kitchen Order
<L>{TICKET DATE} {TICKET TIME}
<L>Tbl:{ENTITY NAME:Customer}{ENTITY NAME:Customer Number} Chk:{TICKET NO}
<F>-
<XCT>27,114,1
<L>{TICKET TAG:Ticket Type} {TICKET TAG:Ticket Type} {TICKET TAG:Ticket Type}
<XCT>27,114,0
<F>-
{ORDERS}

[ORDERS]
<L>- {QUANTITY} {NAME} {ITEM TAG:SUBT}
{ORDER TAGS}


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

[ORDER TAGS]
-- Format for order tags
<XCT>27,114,1
<J>     {ORDER TAG NAME}
<XCT>27,114,0

[ITEM TAG]
-- Format for item tag
<XCT>27,114,1
<J>		{ITEM TAG}
<XCT>27,114,0

I didn’t know we had a printer tag for ITEM TAG like that but if that is correct pretty sure you need to define the tag the other way round.

[ORDERS]
- {QUANTITY} {NAME} {ITEM TAG}
{ORDER TAGS}

and

[ITEM TAG:SUBT]
-- Format for item tag
27,114,1
{ITEM TAG}
27,114,0

Ok ill give that a shot. im testing right now with a notepad so its hard to tell if its working on not since im not onsite with the printer.

The other thing i noticed since I have things setup this way if i choose an item twice it puts the item once and adds the number two… is there a way to keep it from grouping items like this so it show every item separately?

I think the setting is in your template, theres a tick box to group or separate the same items, cant remember the name off top of my head but theres definitely a simple setting for that

1 Like

Yes …


On to the RED …

According to your Product screenshot…

  • your Group Code is set to SUBT {GROUP CODE}
  • you have no Product Tag defined. {ITEM TAG}
  • you have a Custom Product Tag defined and set to SUBT {ITEM TAG:ItemType}

In your Template…

This won’t work because your Custom Tag is called ItemType, NOT SUBT:

[ORDERS]
<L>- {QUANTITY} {NAME} {ITEM TAG:SUBT}
{ORDER TAGS}

If you were to change it to this:

[ORDERS]
<L>- {QUANTITY} {NAME} {ITEM TAG:ItemType}
{ORDER TAGS}

That ^ will print, for example the following (which is not what you are want):

- 1 No SUBT

You have not set the default Product Tag, so this will always be blank:

{ITEM TAG}

This is not a valid section:

[ITEM TAG:SUBT]

But that ^ is close…


If you look to the right of the Template, you will see all the Tags you can use which are valid:

These are valid Tags

GROUP CODE Group Code
PRODUCT TAG Product Tag
ITEM TAG Item Tag
ITEM TAG:X Item Tag:X

These are Grouping Sections and Tags:

[ORDERS GROUP|ORDER STATE:x] Order State
[ORDERS GROUP|ORDER TAG:x] Order Tag
[ORDERS GROUP|PRODUCT GROUP] Group Code
[ORDERS GROUP|PRODUCT TAG] Product Tag
[ORDERS GROUP|BARCODE] Product Tag
[ORDERS FOOTER] Group Footer
{GROUP KEY} Group Key
{GROUP SUM} Group Total
{QUANTITY SUM} Quantity Total

So these look interesting:

[ORDERS GROUP|PRODUCT GROUP] Group Code
[ORDERS GROUP|PRODUCT TAG] Product Tag

So try this is your Template:

[ORDERS GROUP|PRODUCT GROUP:SUBT]
<XCT>27,114,1
<L>  {NAME}
<XCT>27,114,0

That should print the Product Name (without Quantity) for any Product that has the Group Code of SUBT, for example, according to your Product Card (and assuming your Mayo Product also has Group Code of SUBT):

  No
  Mayo
2 Likes

Is the group code the product category? Or is it the item tag?.. I think I’m getting confused now haha.

Group code is the field with dropdown option on top right of product page.
It’s the reporting group (category is bad term to use as cause confusion with menu category).
It’s the field which gives you your sales summary on bottom of work period report.

Group Code {GROUP CODE} is sometimes referred to as the Category, yes. In the Product Card, it is the field called Group Code, and like all Group Codes or Categories, it helps with organization of “items”. In Printer Templates it is accessible via {GROUP CODE}. In a Template [SECTION] however, it is referred to by PRODUCT GROUP, as in:

[ORDERS GROUP|PRODUCT GROUP:SUBT]


The default built in Product Tag is the {ITEM TAG}. On the Product Card, it is the field called Tag. And as far as I remember, in your Printer Templates it can be accessed by {PRODUCT TAG} as well as {ITEM TAG}. In a Template [SECTION] however, it is referred to by PRODUCT TAG, as in:

[ORDERS GROUP|PRODUCT TAG:<defaultProductTagValue>]

Or in your case where you defined a Custom Product Tag called ItemType, like this:

[ORDERS GROUP|PRODUCT TAG:ItemType=SUBT]


This is a really good Topic by Emre when he released the Grouping/Filtering/Sorting features. Look it over …

Hmm so if I do the group code… Won’t it still add the no Mayo on the ticket twice because the orders has name and group code on the template? Also would the group code group together all the subt items even if they are for different items?

[ORDERS]

  • {QUANTITY} {NAME} {GROUP CODE}

Would it be hard for @emre to add a format for a menu category? I still need to post a pic of my ticket to give you a better idea of how it works.

Not from wha you have done here;

All {GROUP CODE} will do is display that orders group code.
Think your confusing with the group/sort template tags discussed elsewhere.

How do you mean? A picture would help.
Templates are very versitile and setting a format for a menu category would be posible in one way or another.

OK so I had a thought… I tried to find it on here but I can’t remember where it was. Is it possible to somehow create a automation command button as a menu item and when selected it just ass the order tag that should fix my issue. That way it’s also showing on the ticket the way it should but it shows on the POS screen as item buttons?..

So if I do the above I only get the first item in the ticket to show up red… No matter what it is… I’m pulling my hair out now :frowning:

There is an add custom button option on the menu options;

Show your full template.

Well after a whole bunch of arguing i was able to convince my uncle to go with order tags instead of products for the SUBT category. Thanks to everyone for trying to help me!.. Great community!

1 Like

Good on you!

Seriously, that is the way almost all EPOS software works is with Order Tags (Modifiers). Having every modifier as a Product just makes no sense at all.

1 Like

Instead of opening a new thread ill just ask here… Is it possible to print the product portion in red? {PORTION} below is my template. Does not seem to work… Also i would like if it was on the same line as the {PRODUCT NAME}

<XCT>27,33,16
<XCT>27,69,1
<T>Kitchen Order
<F>=
<L>{TICKET DATE} {TICKET TIME}
<L>Tbl:{ENTITY NAME:Customer}{ENTITY NAME:Customer Number} Chk:{TICKET NO}
<F>=
<XCT>27,114,1
<C>{TICKET TAG:Ticket Type} {TICKET TAG:Ticket Type} {TICKET TAG:Ticket Type} {TICKET TAG:Ticket Type}
<XCT>27,114,0
<F>=
{ORDERS}
<F>=
<XCT>27,114,1
<C>{TICKET TAG:Ticket Type} {TICKET TAG:Ticket Type} {TICKET TAG:Ticket Type} {TICKET TAG:Ticket Type}
<XCT>27,114,0
<F>=



[ORDERS]
<L>- {QUANTITY} {PRODUCT NAME} 
<XCT>27,114,1
{PORTION}
<XCT>27,114,0
{ORDER TAGS}



[ORDER TAGS]
-- Format for order tags
<XCT>27,114,1
<J>     {ORDER TAG NAME}
<XCT>27,114,0

Yes, however, in general, by default, if the Portion is “Normal” then it does not print, which might be why it looks as though it does not work. You should be able to overcome this however using a bit of script as a workaround.

Probably not possible. AFAIK, ESC/POS are “line” printers, and changing the color is a function of the Printer, so changing color mid-line is a limitation of the Printer rather than SambaPOS. Anyone feel free to correct me if I am wrong, or if you have seen this actually work in practice.