Order Printer - Tip added as a line item

11 1 4

Hi Everyone, hoping someone can help with the coding of this..

We added the function for people to "Tip" but we did it in a different way. We are encouraging people to use this function to "donate" where we will match their donation to a food bank dollar for dollar (we wanted to help contribute to helping people).

Now I have run in to an issue with order printer which we use to accompany a delivery. the word "1 x TIP" shows as a line item now. Can someone suggest an edit that:
- ideally will remove this altogether
- or rename tip to "thank you for your donation" as a last resort. 

here is the code I am currently working with:

<table class="table-tabular" style="margin: 0 0 1.5em 0;">
      {% if show_line_item_taxes %}
      {% endif %}
      <th style="text-align: center;">&nbsp;Fulfilled &nbsp;<br> Today</th>
    {% for line_item in unfulfilled_line_items %}
        <td>{{ line_item.quantity }} x</td>
        <td><b>{{ line_item.title }}</b></td>
        {% if line_item.tax_lines %}
            {% for tax_line in line_item.tax_lines %}
              {{ tax_line.price | ☐ }} {{ tax_line.title }}<br/>
            {% endfor %}
        {% endif %}
        <td style="text-align: center; vertical-align: middle;">☐</td>
    {% endfor %}

 I should imagine the code is {{if line_item.title = "Tip" }} or something along those lines.. please help you coding geniuses!


Shopify Partner
1174 34 229

Try this @Myusernameis 


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



Available for hiring. Reach me at lixon@ecommercestudio.in