Printer Template Formatting Tags

well i want all the products font size increase and order tag to be regular size
i am using XCT command to increase the font size

Use <J10> for order lines and <J00> for order tag lines.

1 Like

ok thanks @emre this is what i required

can i set margin for the whole ticket like line indention?

my roll i thinks moves when ticket start printing causing it to missing first few characters on each line

There is no provision in SambaPOS for margins. Try setting printer margins in the Windows Printer Driver and/or Printing Preferences.

Or you can add white-space to the beginning of lines after the opening tags, for example:

<J00>  Total:{TICKET TOTAL}
     ^^ 2 spaces

Alternatively, you might be able to use CSS in an HTML Printer Type, for example:

<div style="padding-left:5px">Total:{TICKET TOTAL}</div>

My Printer Utility allows for setting margins:

1 Like

Hi,
Have formatted ticket printer no problem but am trying to add a label printer to go with kitchen printer to print labels for take away orders.
Have got the printer working to print orders via windows or text printer option but on either formatting doesnt seem to work.
If there a different formatting code to be used for windows printer template?
Justified seems to work, but center < C22 > or < EB > etc dont??

Also to print individual labels per order line i have enabled seperate prints by quantity however cant see how to set so only new orders / no voids are printed on labels.
I have tried moving all template parts to be part of the order fine format as below;

{ORDERS}

[ORDERS]
– Normal Order Format
< J00 > {TICKET DATE}-{TIME}|#{TICKET NO}
< L00 >Customer:{ENTITY NAME:Customers}
< EB >
{NAME}
< DB >
{ORDER TAGS}

[ORDERS:Gift]
– Gift Order Format
< J00 >{TICKET DATE}-{TIME}|#{TICKET NO}
< L00 >Customer:{ENTITY NAME:Customers}
< EB >
{NAME}|GIFT
< DB >
{ORDER TAGS}

[ORDERS:Void]
– Nothing will print for void lines

[ORDER TAGS]
– Format for order tags

  • {ORDER TAG NAME}

But just prints blank label for void.

Have also tried removing the [ORDERS:Void] part and also setting [ORDERS] to [ORDERS:Submitted] but no luck.

You would need to set the constraints inside the rule that fires the print job… not inside the printer template. So wherever you put the print job that prints this template you should put some custom rules like. {STATE:Status} Equals Submitted or {STATE:Status} Equals UnPaid or {STATE:GStatus} NotEquals Void

Thanks @kendash however have tried both of these with no luck.

state is not void still prints a void
state is submitted or unpaid prints nothing at all either new or void.

Do you have any ideas about formatting on windows printer option?

So you added custom constraints to the rule that handles the Print Action that prints your template? Can you show the rule that is firing the Print Job action?

this prints nothing

Ticket Closing event will not read Order Status it will read ticket Status. You have to find a different event that can read order status. You can try Order State Updated event. And use State Equals Submitted

This will fire it only when the order state is updated to submitted… meaning it will not print for voids.

It wouldnt want to be on order added else it would print any mistakes which are then canceled!?!

Getting some very bizarre behaviour;

With rule setup as above, order state updated matches state = submitted

it seems to not print the first item, ie just rang in two dishes, it only printed the second one !?!

also still prints voids but only the second one again!?!

the defult options for state seem to be ticket/entity states ie. available, bill requested, gift
no submitted

That could be a template issue.

template is very basic

{ORDERS}



[ORDERS]

-- Normal Order Format

<J00>{TICKET DATE}-{TIME}|#{TICKET NO}

<L00>Customer:{ENTITY NAME:Customers}

<EB>

{NAME}

<DB>

{ORDER TAGS}



[ORDERS:Gift]

-- Gift Order Format

<J00>{TICKET DATE}-{TIME}|#{TICKET NO}

<L00>Customer:{ENTITY NAME:Customers}

<EB>

{NAME}|**GIFT**

<DB>

{ORDER TAGS}



[ORDER TAGS]

-- Format for order tags

* {ORDER TAG NAME}



[ORDERS:Void]

-- Nothing will print for void lines

<EB>

{NAME} **VOID**

<DB>

have left the void setting in there to try and make more clear if its printing voids as without it it used defult order template

Not all states have to be defined under Settings > States that is only if you want it associated with reports or Color Changes. Obviously you do not need color changes for order states so no need to define them there.

Why do you have Ticket Date time, Ticket Number etc under [ORDERS]? Your wanting it to have that for each order?

Oh, that was my first attempt to not print voids by having no content uver the [ORDERS: void]

The labels will be printed on an order per page with the option on the print job options

it is to print labels for each dish for takeaway

Ok so you need to fix your template if you want nothing to print for Void orders then you should take out {NAME} **VOID**

Also you shouldnt put the ticket information under [ORDERS]

Also try justification for everything under formatting. Example

[ORDERS]
<EB>
<J00>{NAME}
<DB>
<J00>{ORDER TAGS}

OK but still no luck;

<J00>{TICKET DATE}-{TIME}|#{TICKET NO}

<L00>Customer:{ENTITY NAME:Customers}

{ORDERS}



[ORDERS]

-- Normal Order Format

{NAME}

{ORDER TAGS}



[ORDERS:Gift]

-- Gift Order Format

{NAME}|**GIFT**

{ORDER TAGS}



[ORDER TAGS]

-- Format for order tags

* {ORDER TAG NAME}

still results in voids being printed just it used the defult order tempate as if they have just been rang in