How to send a break line character in the middle of "Order Name" to a ESC/POS printer?

I cannot find a way to send a break line character in the middle of the “Product Name” in the sample Ticket Template. I tried \r and < br >. I am using ESC/POS printer mode. I would like to predefine when a ln break is in the itemized order, so that the English and the Chinese can be printed on two different lines.

Template(basically copy from the one that comes in the download:
– General layout


<L11>Ticket No:{TICKET NO}

[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J10>Total:|{TICKET TOTAL}
<C10>T H A N K   Y O U




-- Default format for orders

-- Format for gifted orders

-- Nothing will print for void lines

-- Format for order tags

-- Table entity format
<L00>Table: {ENTITY NAME}

-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

Not sure you can, an alternative way is rather than adding the chinese on the end of the product name setup a producy tag called Chinese Name, then in each product setup screen put the chinese name in that field and save

Then in the printer template under orders add { ITEM TAG:Chinese Name } and it will print that underneath the order

Can you show your template please?

Item tags are the typical way of handeling multi languages for products that I have seen and would make this layout pretty simple to do.

On seperate subject, is that a pipe character after the Chinese? ‘|’ think you might have an issue on your template, show the teplate… Be sure to select all and click the code button on post toolbar as forum will strip the formatting tags at beginning of lines.

Template added in the original post.

I will try the tag again. I must not have used the method correctly earlier.

Am I supposed to edit add/edit a Product Tag with the “Product Tag Editor”? When I use the tool I can only get to add the Tag “name” like “Chinese Name” but cannot add the content like “馄饨面”

You would just J rather than L if you want to use pipe charictpor for table layout on orders line.

For tags, you need to add custom tags on the program settings tab of settings which will add custom columns for product tags.

##Define Product Tag Caption

##Use Product Tag Editor to set values

##Use {ITEM TAG:X} or {PRODUCT TAG:X} in your Template

-- Default format for orders
<L10>             {ITEM TAG:Chinese Name}

… or …

-- Default format for orders
<L10>             {PRODUCT TAG:Chinese Name}
1 Like

Thank you. The illustration above does it for me. Now I will go back to remove the Chinese in the “NAME” field and also work on the buttons to reflect the changes. Hope I can solve them on my own -keeping my fingers crossed.

1 Like