Problem with printing order tags

hello I am new to this software and read almost all topics from the Club but I couldn’t find the solution.

I’m using this: https://kb.sambapos.com/en/4-30-using-multiple-languages-on-order-template/
to print in foreign language with order tag and the same script given in the URL but when i print with food modifiers i get this

can i get help please?

Template being used:
[LAYOUT]
– General layout



Ticket


Samba Cafe
Istanbul

Date: {TICKET DATE}

Time: {TIME}

{ENTITIES}
Ticket No: {TICKET NO}

</div>
{ORDERS}


[



Sub Total [[={TICKET ORDER TOTAL EXP:(ODI=True)}!={TICKET TOTAL}?’{TICKET ORDER TOTAL EXP:(ODI=True)}’:’’]]
]
{DISCOUNTS}
[



Total Gift -{ORDER STATE TOTAL:Gift}
]
{SERVICES}[






Ticket Total {TICKET TOTAL}
Payment Total [[={PAYMENT TOTAL}>0?’{PAYMENT TOTAL}’:’’]]
]
c,


Remaining Total {REMAINING TOTAL}

{PAYMENTS}

T H A N K Y O U

[DISCOUNTS]





{CALCULATION NAME} %{CALCULATION AMOUNT} {CALCULATION TOTAL}

[SERVICES]





{CALCULATION NAME} {CALCULATION TOTAL}

[PAYMENTS]

{PAYMENT NAME}
{PAYMENT AMOUNT}

[ORDERS]
– Default format for orders

{QUANTITY}
X {NAME}
{ITEM TAG:Spanish}



{ORDER TAGS}


[ORDERS:Gift]
– Format for gifted orders

{QUANTITY}
{NAME} (Gift)
{TOTAL AMOUNT}



{ORDER TAGS}


[ORDERS:Void]
– Nothing will print for void lines
[ORDER TAGS]
– Format for order tags
* [={ORDER TAG QUANTITY}>1?’{ORDER TAG QUANTITY} X ‘:’’]{ORDER TAG NAME} [({ORDER TAG TOTAL PRICE})]

[ENTITIES:Table]
– Table entity format
Table: {ENTITY NAME}

[ENTITIES:Customer]
– Customer entity format
Customer: {ENTITY NAME} {ENTITY DATA:Phone}

You need to select code and click </> on forum toolbar before posting as forum removes code unless its quoted as such.
Without that, cant help.
Looking at print alone, looks like you have set too smaller width for the order line.

thanks, i hope its solved by clicking </>

Does it look much different?.. Look the same as it does in samba?

You will need to paste it again, code has already been stripped.

[LAYOUT]
-- General layout
<div style="margin:0 0 5 0;border:0 0 1 0;border-color:black">
<div style="text-align:center;font-size:18;font-weight:bold;margin:0 0 5 0">
Ticket
</div>
<div style="text-align:center;font-size:12;font-weight:bold;margin:0 0 5 0">
Samba Cafe<br/>Istanbul
</div>
<div align=left>Date: {TICKET DATE}</div>
<div>Time: {TIME}</div>
{ENTITIES}
<div style="margin:0 0 5 0">Ticket No: {TICKET NO}</div>
</div&gt;<table width=200>
{ORDERS}
</table>
<div style="font-weight:bold;margin:0 0 5 0;padding:5 0 5 0;border:1 0 1 0;border-color:black">
[<table>
<tr>
<td width="14*" align=right>Sub Total</td><td width="6*" align=right>[[={TICKET ORDER TOTAL EXP:(ODI=True)}!={TICKET TOTAL}?'{TICKET ORDER TOTAL EXP:(ODI=True)}':'']]</td>
</tr>
</table>]
{DISCOUNTS}
[<table>
<tr>
<td width="14*" align=right>Total Gift</td><td width="6*" align=right>-{ORDER STATE TOTAL:Gift}</td>
</tr>
</table>]
{SERVICES}[<table>
<tr>
<td width="14*" align=right>Ticket Total</td><td width="6*" align=right>{TICKET TOTAL}</td>
</tr>
<tr>
<td width="14*" align=right>Payment Total</td><td width="6*" align=right>[[={PAYMENT TOTAL}>0?'{PAYMENT TOTAL}':'']]</td>
</tr>
</table>]<table style="font-size:16">
c,<tr>
<td width="14*" align=right>Remaining Total</td><td width="6*" align=right>{REMAINING TOTAL}</td>
</tr>
</table><table>
{PAYMENTS}
</table></div>
<div align=center>T H A N K  Y O U</div>
[DISCOUNTS]
<table>
<tr>
<td width="14*" align=right>{CALCULATION NAME} %{CALCULATION AMOUNT}</td>
<td width="6*" align=right>{CALCULATION TOTAL}</td>
</tr>
</table>
[SERVICES]
<table>
<tr>
<td width="14*" align=right>{CALCULATION NAME}</td>
<td width="6*" align=right>{CALCULATION TOTAL}</td>
</tr>
</table>
[PAYMENTS]
<tr>
<td width="14*">{PAYMENT NAME}</td>
<td width="6*" align=right>{PAYMENT AMOUNT}</td>
</tr>
[ORDERS]
-- Default format for orders
<tr>
<td width="2*" align=left>{QUANTITY}</td>
<td width="3" align=left> X {NAME}<br>{ITEM TAG:Spanish}</br></td></tr>
</tr>
<tr>
<td colspan=3>
{ORDER TAGS}
</td>
</tr>
[ORDERS:Gift]
-- Format for gifted orders
<tr>
<td width="2*" align=right>{QUANTITY} </td>
<td width="14*">{NAME} (Gift) </td>
<td width="4*" align=right>{TOTAL AMOUNT}</td>
</tr>
<tr>
<td colspan=3>
{ORDER TAGS}
</td>
</tr>
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<div style="padding:30 30 30 30">* [={ORDER TAG QUANTITY}>1?'{ORDER TAG QUANTITY} X ':'']{ORDER TAG NAME} [({ORDER TAG TOTAL PRICE})]</div>
[ENTITIES:Table]
-- Table entity format
<div>Table: {ENTITY NAME}</div>
[ENTITIES:Customer]
-- Customer entity format
<div>Customer: {ENTITY NAME} {ENTITY DATA:Phone}</div>

OK, see two possible issues;

Unclosed <div>
image

As sugested earlier, name column width seems bit small
image

thanks! closing div solved the problem
but, the menu is printing after the half line though… I’m figuring out the problem any suggestion please?

Id guess its those column widths on the orders section in the other picture.

hello, I’ve been trying to fix the problem changing width values but i couldn’t solve the problem printing from the half line could you help me again? thanks

[LAYOUT]
-- General layout
<div style="margin:0 0 5 0;border:0 0 1 0;border-color:black">
<div style="text-align:center;font-size:18;font-weight:bold;margin:0 0 5 0">
Ticket
</div>
<div style="text-align:center;font-size:12;font-weight:bold;margin:0 0 5 0">
Vons Chicken<br/>Chicken & Beer Cafe
</div>
<div align=left>Date: {TICKET DATE}</div>
<div>Time: {TIME}</div>
{ENTITIES}
<div style="margin:0 0 5 0">Ticket No: {TICKET NO}</div>
</div&gt><table width=200>
{ORDERS}
</table>
<div style="font-weight:bold;margin:0 0 5 0;padding:5 0 5 0;border:1 0 1 0;border-color:black">
[<table>
<tr>
<td width="14*" align=right>Sub Total</td><td width="6*" align=right>[[={TICKET ORDER TOTAL EXP:(ODI=True)}!={TICKET TOTAL}?'{TICKET ORDER TOTAL EXP:(ODI=True)}':'']]</td>
</tr>
</table>]
{DISCOUNTS}
[<table>
<tr>
<td width="14*" align=right>Total Gift</td><td width="6*" align=right>-{ORDER STATE TOTAL:Gift}</td>
</tr>
</table>]
{SERVICES}[<table>
<tr>
<td width="14*" align=right>Ticket Total</td><td width="6*" align=right>{TICKET TOTAL}</td>
</tr>
<tr>
<td width="14*" align=right>Payment Total</td><td width="6*" align=right>[[={PAYMENT TOTAL}>0?'{PAYMENT TOTAL}':'']]</td>
</tr>
</table>]<table style="font-size:16">
c,<tr>
<td width="14*" align=right>Remaining Total</td><td width="6*" align=right>{REMAINING TOTAL}</td>
</tr>
</table><table>
{PAYMENTS}
</table></div>
<div align=center>T H A N K  Y O U</div>
[DISCOUNTS]
<table>
<tr>
<td width="14*" align=right>{CALCULATION NAME} %{CALCULATION AMOUNT}</td>
<td width="6*" align=right>{CALCULATION TOTAL}</td>
</tr>
</table>
[SERVICES]
<table>
<tr>
<td width="14*" align=right>{CALCULATION NAME}</td>
<td width="6*" align=right>{CALCULATION TOTAL}</td>
</tr>
</table>
[PAYMENTS]
<tr>
<td width="14*">{PAYMENT NAME}</td>
<td width="6*" align=right>{PAYMENT AMOUNT}</td>
</tr>
[ORDERS]
-- Default format for orders
<tr>
<td width="2*" align=left>{QUANTITY}</td>
<td width="3*" align=left> X {NAME}<br>{ITEM TAG:Spanish}</br></td>
</tr>
<tr>
<td>
{ORDER TAGS}
</td>
</tr>
[ORDERS:Gift]
-- Format for gifted orders
<tr>
<td width="2*" align=right>{QUANTITY} </td>
<td width="14*">{NAME} (Gift) </td>
<td width="4*" align=right>{TOTAL AMOUNT}</td>
</tr>
<tr>
<td colspan=3>
{ORDER TAGS}
</td>
</tr>
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<div style="padding:0 0 0 5">* [={ORDER TAG QUANTITY}>1?'{ORDER TAG QUANTITY} X ':'']{ORDER TAG NAME} [({ORDER TAG TOTAL PRICE})]</div>
[ENTITIES:Table]
-- Table entity format
<div>Table: {ENTITY NAME}</div>
[ENTITIES:Customer]
-- Customer entity format
<div>Customer: {ENTITY NAME} {ENTITY DATA:Phone}</div>

Changed how? Qty is still 2 and name column is still 3.
Try making the same column wider…

changed them upto 30000 both width values but nothing changed, aligning to the right works fine but aligning them to left don’t work, they just print from the half line

Where did you get 3000 from?
2 and 3 cant be a fixed dimention so guessing its relative ie 2 and 3 are relative to each other as 2000 and 3000 are.
If you look at your other columns you have something like payment with 14 for name and 6 for amount so I would suggest if you have 2 for qty then around 10 for name.

sorry that i bother you, did some html study and fixed the issue
now the problem is that the tag order price is printed 0(highlighted on the next image), but in the total remaining does add order tag prices
%ED%83%9C%EA%B7%B81

  • highlighted: tag order total price

tag order price values:

template:

[LAYOUT]
-- General layout
<div style="margin:0 0 5 0;border:0 0 1 0;border-color:black">
<div style="text-align:center;font-size:18;font-weight:bold;margin:0 0 5 0">
Ticket
</div>
<div style="text-align:center;font-size:12;font-weight:bold;margin:0 0 5 0">
Vons Chicken<br/>Chicken & Beer Cafe
</div>
<div align=left>Date: {TICKET DATE}</div>
<div>Time: {TIME}</div>
{ENTITIES}
<div style="margin:0 0 5 0">Ticket No: {TICKET NO}</div>
</div&gt>
<table width=2*>
{ORDERS}
</table>
<div style="font-weight:bold;margin:0 0 5 0;padding:5 0 5 0;border:1 0 1 0;border-color:black">
[<table>
<tr>
<td width="14*" align=right>Sub Total</td><td width="6*" align=right>[[={TICKET ORDER TOTAL EXP:(ODI=True)}!={TICKET TOTAL}?'{TICKET ORDER TOTAL EXP:(ODI=True)}':'']]</td>
</tr>
</table>]
{DISCOUNTS}
[<table>
<tr>
<td width="14*" align=right>Total Gift</td><td width="6*" align=right>-{ORDER STATE TOTAL:Gift}</td>
</tr>
</table>]
{SERVICES}[<table>
<tr>
<td width="14*" align=right>Ticket Total</td><td width="6*" align=right>{TICKET TOTAL}</td>
</tr>
<tr>
<td width="14*" align=right>Payment Total</td><td width="6*" align=right>[[={PAYMENT TOTAL}>0?'{PAYMENT TOTAL}':'']]</td>
</tr>
</table>]<table style="font-size:16">
c,<tr>
<td width="14*" align=right>Remaining Total</td><td width="6*" align=right>{REMAINING TOTAL}</td>
</tr>
</table><table>
{PAYMENTS}
</table></div>
<div align=center>T H A N K  Y O U</div>
[DISCOUNTS]
<table>
<tr>
<td width="14*" align=right>{CALCULATION NAME} %{CALCULATION AMOUNT}</td>
<td width="6*" align=right>{CALCULATION TOTAL}</td>
</tr>
</table>
[SERVICES]
<table>
<tr>
<td width="14*" align=right>{CALCULATION NAME}</td>
<td width="6*" align=right>{CALCULATION TOTAL}</td>
</tr>
</table>
[PAYMENTS]
<tr>
<td width="10*">{PAYMENT NAME}</td>
<td width="2*" align=right>{PAYMENT AMOUNT}</td>
</tr>
[ORDERS]
-- Default format for orders
<tr>
<td align=left>{QUANTITY} X {NAME} <br>{ITEM TAG:Spanish}</br></td>
<td align=right> {TOTAL PRICE}</td>
</tr>
<tr>
<td>
{ORDER TAGS}
</td>
</tr>
[ORDERS:Gift]
-- Format for gifted orders
<tr>
<td width="2*" align=right>{QUANTITY} </td>
<td width="14*">{NAME} (Gift) </td>
<td width="4*" align=right>{TOTAL AMOUNT}</td>
</tr>
<tr>
<td colspan=3>
{ORDER TAGS}
</td>
</tr>
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<div style="padding:0 0 0 15">* [={ORDER TAG QUANTITY}>1?'{ORDER TAG QUANTITY} X ':'']{ORDER TAG NAME}  {ORDER TAG TOTAL PRICE}</div>
[ENTITIES:Table]
-- Table entity format
<div>Table: {ENTITY NAME}</div>
[ENTITIES:Customer]
-- Customer entity format
<div>Customer: {ENTITY NAME} {ENTITY DATA:Phone}</div>

Forgot to set template as code again.

Are tags set to include in order price.
Guess so and your template is using order price rather than line total or one of the other expressions.

1 Like

ok, thanks for the guide ill do research

I solved the issue, I wanted to print the price of each Order Tag to let the customers know how much the order is added by Order Tag

thanks for the guide have a good day

<div style="padding:0 0 0 25">* [={ORDER TAG QUANTITY}>1?'{ORDER TAG QUANTITY} X ':''] {ORDER TAG NAME} | Q.[=TN('{ORDER TAG QUANTITY}')*{ORDER TAG PRICE: 사리추가 Adicional}]

%EC%BA%A1%EC%B2%98