App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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!
Solved! Go to the solution
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>
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>
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