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.
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:
{% unless line_item.title contains 'Tip' %} to detect tip line itemsRoot 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.
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.