Order Printer - Add thanks for tip line on invoice

Topic summary

A user migrated from the legacy Order Printer app to the new version and found their custom code for thanking customers who leave tips (donated to charity) no longer works.

The Problem:

  • Original code used {% unless line_item.title contains 'Tip' %} to detect tip line items
  • Code worked in legacy app but fails in new Order Printer app
  • Multiple users confirmed the conditional logic itself works when testing with other item titles

Root Cause Identified:
After investigation, a community member determined the new Order Printer app cannot detect tip line items when looping through order.line_items, even though tips appear in the order’s JSON data. The app only sees physical products, making title-based detection impossible.

Solution Found:
Shopify support provided a working alternative using order.total_tip property instead of checking line item titles:

{% if order.total_tip > 0 %}
  Charity Donation
  {{ order.total_tip | money }}
  **❤ Thanks for your donation to akt! ❤**
{% endif %}

This code is placed in the totals summary section rather than within the line items loop. Users experiencing similar issues are encouraged to contact Shopify support directly and leave app reviews to highlight this limitation.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

aaaah, how strange! thanks for looking into this for me.

the code works fine on the Legacy order printer app, so odd that it doesn’t work on the new one.