[Resolved] Print Format Question

OK, I’ve pretty much got my tickets printing as I want them with one small exception. I wanted to only print the quantity of an order tag if it was greater than 1 (1 is implied).

My first attempt resulted in this:

Ticket 1

But as you can see the 1’s appeared.

My second attempt got rid of the 1’s but the ‘x’ was beside a blank.

I’m here now:

Ticket 2

Which will be fine however I would really like an ‘x’ after the quantity:

e.g. 2 x Sugar

This is the code I’m using:

- [=(’{ORDER TAG QUANTITY}’>1 ? {ORDER TAG QUANTITY} : ’ ')] {ORDER TAG NAME}

I’ve tried many different things but just haven’t cracked the code :sleepy:

Your help is appreciated :+1:

Try this:

[={ORDER TAG QUANTITY}>1?‘{ORDER TAG QUANTITY} X ‘:’’]{ORDER TAG NAME}

Pretty sure I tried that :sleepy:
This prints no quantity and no x
Thanks for the suggestion though :+1:

I figured out the issue, when you copy and paste it from the forum into SambaPOS it messes up the apostrophe. After you paste the code I shared, delete all the apostrophes and manually enter the apostrophes again in the same spot.

Yep that was it!!! cheers
As I said I’m sure I tried that but to be fair I had copied some code from the forum elsewhere and the apostrophes would have been messed up. Thanks for the help!! :+1: :+1: :+1: