Solved

How can I show customer tips on printed orders using Order Printer app?

frankiebuttons
Excursionist
40 2 11

I've added the ability to add the tip on checkout (we will be donating the tips to charity)

I'd like this to show on the order when printed through Order Printer, so when we're packing orders, we can send them a free gift when they leave a tip.

Any suggestions on what code to add to the template? TIA!

Accepted Solution (1)

frankiebuttons
Excursionist
40 2 11

This is an accepted solution.

Solved

        <td><b>{% unless line_item.title contains  'Tip' %} {{ line_item.quantity }} x {%endunless%} </td>
   <td>{% unless line_item.title contains  'Tip' %}<b>{{ line_item.title }}</b> {%else%}<b>Thanks for your donation to Coffee4Craig!</b>{%endunless%}
</td></b>

View solution in original post

Replies 2 (2)

frankiebuttons
Excursionist
40 2 11

This is an accepted solution.

Solved

        <td><b>{% unless line_item.title contains  'Tip' %} {{ line_item.quantity }} x {%endunless%} </td>
   <td>{% unless line_item.title contains  'Tip' %}<b>{{ line_item.title }}</b> {%else%}<b>Thanks for your donation to Coffee4Craig!</b>{%endunless%}
</td></b>
Birdrockeats
Visitor
2 0 0

Hello! I am trying to do the same thing but it isnt working for me. Only an X appears or when I move it to another line there isnt anything that shows