How to print {ORDER TAGS} independently from {ORDERS}?

From that output what I’m quickly noticing is Caramel Frappe and whipped cream lines are in a single quote sequence and there are no commands for whipped cream line. So instead of entering a command for {ORDERS} tag you can try setting up commands individually under [ORDERS] section in front of {PRODUCT NAME} tag. If you do the same for {ORDER TAG NAME} tag they’ll appear with commands and they’ll stay in individual quotes.

I mean it looks like you need an output like

x,y,z,"Product A"
j,k,l,"* Order Tag 1"

@Jesse imho there should be no commands in front of listing tags (eg {ORDERS}) and they should be setup individually under sections.

something like…

Edit: @Jesse sampled it better on his previous reply.

1 Like

Try what I posted just now. I think that should work.

@emre Sorry was kind of chopping it together lol.

EDIT: Try copy paste exactly what I just put in the post above I just edited it.

1 Like

The format is as followed per EPL programming guide:
A: this is the command to render ASCII text string (there are many codes that do different things, but none th at says start new line. I have a copy of the EPL programming guide here with me)
15: horizontal start position in dots (x-position)
38: vertical start position in dots (y-position)
0: rotation of characters (0, 90, 180, 270 degrees)
3: font selection (value of 3 means 10pt font size)
1: horizontal multiplier (expands the text horizontally)
1: vertical multiplier (expands the text vertically)
N: reverse image (N value means normal, R value means reverse image–>print white letters in black box)

Didn’t he tried this already?

[ORDER TAGS]
A15,38,0,3,1,1,N,“* {ORDER TAG NAME}”

@sukasem as his {ORDERS} tag was also in quotes that probably produced invalid quote structure. That’s why I’ve requested to see a demo printer output.

1 Like

@aznwonderboy can you please try what @Jesse posted here and share your results with us?

please note you should still need to adjust command parameters accordingly as we just copy pasted your commands to let you understand where you input your barcode printer commands.

PS: Sorry it is a little hard to produce exact template from command definitions without testing it physically with a printer :wink:

I edited it with a guess on your codes for the positioning. I have no idea where that puts it… I dont have the printer to test it.

This is exactly what I did. We’re getting closer, but there’s still a problem. When there are multiple order tags (modifiers), it only prints one.
Here is what I did:

  1. Create order of Mocha Frappe with 3 modifiers:

  2. This is what it printed in notepad (demo printer):

  3. This is what the Zebra label printer printed:

It seems like only the last modifier was included. The other 2 disappeared because they were coded on the same line (same x and y position)

So what if you do not include that code at all what does it do? I mean use a 0 for the order tag line only.

If I don’t include a command line A15,65,0,3,1,1,N,in front of “{ORDER TAG NAME}”, then it won’t print the order tags.

I mean what if you do this:

A15,0,0,3,1,1,N,in front of "{ORDER TAG NAME}"

try this change.

[ORDERS]
A15,38,0,3,1,1,N,"{PRODUCT NAME}"
A15,68,0,3,1,1,N,"{ORDER TAGS}"

[ORDER TAGS]
* {ORDER TAG NAME}\n

That will resolve to

"*whipped cream\n
*extra espresso\n
*sub almond milk\n"

and I expect it to break \n to new lines.

if \n does not break to a new line you should find related EPL command to create a new line.

[quote]A15,0,0,3,1,1,N,in front of “{ORDER TAG NAME}”[/quote] does not print the tags at all.

However, this code:

gives me this:

All the tags showed up, but when the line gets too long the words overlap on the same line. It doesn’t go down to the next line.

try what @emre just suggested.

Unfortunately, adding \n at the end does not break the tags to new lines either. All the tags are still in one line and overlap once the text runs out of room on the paper.

It looks like I need to find another way to break to new line automatically. It seems like I have to manually code each data line for horizontal and vertical position.


By the way, can anyone suggest how to do the [1 of 2] and [2 of 2] on the label? I looked at another thread with the same question, but the {TICKET QUANTITY SUM} does not show the total number of drinks. Is it because I used Separated Prints by Quantity?

Did you find an answer to for printing 1 of {TICKET QUANTITY SUM}

Unfortunately, I don’t have a solution for this yet.

I now have a solution for my original question:

My original label printer (Zebra LP 2824) uses EPL so it does not have a code for word-wrapping or automatically breaking to new line. As a result, a long line of text overlaps on itself when there are too many order tags. Therefore, I bought a new label printer (Zebra LP 2824 Plus) which uses ZPL codes that can create a field-block or text-block. The code ^FB works for me.

This is the printout:

Within all those codes, ^FB400,5 supposedly creates a field block that can contain 400 characters and 5 lines of text.

I’m very satisfied so far. Thanks to @sukasem, @Emre, and @Jesse for helping me with this. :smile:

2 Likes

Thanks, your label looks pretty much exactly as I imagine how is like mine.
At the minutes I’ve just borrowed a friends little brother to play with.
Never actually used a zebra printer but I believe (or at least the ones I’ve seen) That they use a transfer ribbon?
Is the model you have like this?
My personal preference is towards thermal as it’s just one more thing to run out of or for someone to mess up.