Here is an example printer template which displays the current item being added to the ticket:
<XCT>12
<XCT>27,91,72
{ORDERS}
<L>
<J>| TOTAL: {REMAINING TOTAL}
[ORDERS]
<J>{NAME} | {TOTAL AMOUNT}
<L> ({QUANTITY} @ {TOTAL} each)
It displays like the first image I posted (the Vegetable Samosa). As I recall, the first line clears the display. I can’t remember what the 2nd line does, possibly sets font size or cursor position, it’s a long time since I set this up.
Here is another example, which updates the display when a new order tag is added. Note how this works differently to most customer displays - instead of rewriting the whole display, this actually moves the cursor to the 3rd line then writes the order tag details. This would always be written after the item details have been written and the end result being the 3 lines displayed (like for the Vegetable Samosa) remain same but the 3rd line would show the order tag value. Actually when updating order tags, it would send the item template followed by the order tag template, so to ensure any price changes made by order tags would be updated on the display. But the important factor here is that this template does not clear the display and just updates part of what is already displayed on the display.
{ORDERS}
[ORDERS]
{ORDER TAGS}
[ORDER TAGS]
<XCT>29,113,67
<L> * {ORDER TAG NAME} [+{ORDER TAG PRICE}]
<XCT>13
<XCT>27,91,72
This is how I have the rule setup to display when order tags change. You can see the item is sent first followed by the order tag.
For reference, the customer display is an EC-Line EC-3020, the user guide can be found here which contains all the codes but you will need to use a hex to decimal converter (many online) to convert the hex codes to decimal which SambaPOS needs.
I have quite a few printer templates setup and obviously you need you create rules and actions for those when you want to display something. However that is another matter and covered elsewhere about setting up customer displays in general.
Not a complete list of all rules needed (as some actions would also be added to existing rules) but here is a screenshot showing some of the rules I have setup to print to customer display:
I hope this helps!