Im trying to print order tags only when order tag its different than zero, so I have the next line:
[ORDER TAGS]
[={ORDER TAG PRICE} == 0 ? ‘’ : ‘{ORDER TAG NAME} | {ORDER TAG PRICE}’]
It works well, but if order tag its zero, then samba prints a whitespace ‘’, so for every order tag with price zero it prints a return carriage in the ticket, I dont want that return carriage because its a lot of paper waste, anyone can help me? thanks in advance!
You do not have to use Ternary for that. Just using this works:
[ORDER TAGS]
[<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}]
Also it does not add an extra space if used like I just showed.
PS: it helps if you show your entire template if what I posted above does not work then it could be a mistake you made in your template other than the [ORDER TAGS] format section.