Order Printer - Tip added as a line item

Highlighted
Tourist
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;">
  <thead>
    <tr>
      <th>Quantity</th>
      <th>Item</th>
      {% if show_line_item_taxes %}
      <th>Taxes</th>
      {% endif %}
      <th style="text-align: center;">&nbsp;Fulfilled &nbsp;<br> Today</th>
    </tr>
  </thead>
  <tbody>
    {% for line_item in unfulfilled_line_items %}
      <tr>
        <td>{{ line_item.quantity }} x</td>
        <td><b>{{ line_item.title }}</b></td>
        {% if line_item.tax_lines %}
          <td>
            {% for tax_line in line_item.tax_lines %}
              {{ tax_line.price | ☐ }} {{ tax_line.title }}<br/>
            {% endfor %}
          </td>
        {% endif %}
        <td style="text-align: center; vertical-align: middle;">☐</td>
      </tr>
    {% endfor %}
  </tbody>
</table>

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

Thanks!! 

0 Likes
Highlighted
Shopify Partner
1165 32 211

Try this @Myusernameis 

 

 
<td> {% 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%} Thanks for the Tip!{%endunless%}
</td>
       

 

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
- Available for hiring. lixon@ecommercestudio.in
0 Likes