Snippets

Easily add content to your packing slip and confirmation email.

Show content on the packing slip

Edit the packing slip template and paste this code:

{% if line_item.properties != blank %} {% for line_property in line_item.properties %} {% assign property_first_char = line_property.first | slice: 0 %} {% if line_property.last != blank and property_first_char != '_' %} <span class="line-item-description-line"> {{ line_property.first }} : {{line_property.last}} </span> {% endif %} {% endfor %} {% endif %}

Show content on the order confirmation email

Edit the order confirmation template and paste this code:

{% for property in line.properties %} {% assign property_first_char = property.first | slice: 0 %} {% if property.last != blank and property_first_char != '_' %} <div class="order-list__item-property"> <dt>{{ property.first }}:</dt> <dd> {% if property.last contains '/uploads/' %} <a href="{{ property.last }}" class="link" target="_blank"> {{ property.last | split: '/' | last }} </a> {% else %} {{ property.last }} {% endif %} </dd> </div> {% endif %} {% endfor %}