Setting SambaPOS to print to a label printer is just the same as any receipt printer (printer, printer template, etc.). However most label printers I have used don’t use the same ESC/POS command language (try first though - if it does accept ESC/POS commands your life will be far easier!), so you may have to read the command manual for your printer and send the correct commands to create the layout you need. Make sure you use the Raw Printer
type if sending your own commands.
For example, here is a sample template I used to print only the name and order tags of an item on a label printer. It was a cheap model not a known brand, and I needed to study the command language reference to learn the commands to send:
SIZE 57 mm,37 mm
CLS
{ORDERS}
PRINT 1,1
[ORDERS]
TEXT 40,40,"4",0,1,1,"{NAME}"
TEXT 80,160,"3",0,1,1,"{ORDER TAGS}"
[ORDER TAGS]
* {ORDER TAG NAME}
As you can see it’s a little more complex than a simple receipt printer template.
As an alternative, you can try using HTML Printer
or Document Printer
printer types and search forum about using them if needed, if the printer accepts those layouts then it might be easier.
You can find the following topics as reference as well:
(from this post #41 onwards)
Also this guide is for V3 but still relevant: Barcode Printing Tags [SambaPOS V3]