{% if fulfillment.item_count == item_count %} {% capture email_title %}Your order is on the way{% endcapture %} {% capture email_body %}Your order is on the way. Track your shipment to see the delivery status.{% endcapture %} {% elsif fulfillment.item_count > 1 %} {% if fulfillment_status == 'fulfilled' %} {% capture email_title %}The last items in your order are on the way{% endcapture %} {% capture email_body %}The last items in your order are on the way. Track your shipment to see the delivery status.{% endcapture %} {% else %} {% capture email_title %}Some items in your order are on the way{% endcapture %} {% capture email_body %}Some items in your order are on the way. Track your shipment to see the delivery status.{% endcapture %} {% endif %} {% else %} {% if fulfillment_status == 'fulfilled' %} {% capture email_title %}The last item in your order is on the way{% endcapture %} {% capture email_body %}The last item in your order is on the way. Track your shipment to see the delivery status.{% endcapture %} {% else %} {% capture email_title %}One item in your order is on the way{% endcapture %} {% capture email_body %}One item in your order is on the way. Track your shipment to see the delivery status.{% endcapture %} {% endif %} {% endif %} {% capture email_emphasis %}Estimated delivery date: {{fulfillment.estimated_delivery_at | date: "%B %-d, %Y"}}{% endcapture %} {{ email_title }}
{%- if shop.email_logo_url %} {{ shop.name }} {%- else %}

{{ shop.name }}

{%- endif %}
Order {{ order_name }}

{{ email_title }}

{{ email_body }}

{% if fulfillment.estimated_delivery_at %}

{{ email_emphasis }}

{% endif %} {% if order_status_url %}
View your order
{% if shop.url %} {% endif %}
{% else %} {% if shop.url %}
Visit our store
{% endif %} {% endif %}

Items in this shipment

{% for line in fulfillment.fulfillment_line_items %} {% endfor %}
{% if line.line_item.image %} {% endif %} {% if line.line_item.product.title %} {% assign line_title = line.line_item.product.title %} {% else %} {% assign line_title = line.line_item.title %} {% endif %} {% if line.quantity < line.line_item.quantity %} {% capture line_display %} {{ line.quantity }} of {{ line.line_item.quantity }} {% endcapture %} {% else %} {% assign line_display = line.line_item.quantity %} {% endif %} {{ line_title }} × {{ line_display }}
{% if line.line_item.variant.title != 'Default Title' %} {{ line.line_item.variant.title }}
{% endif %} {% if line.line_item.refunded_quantity > 0 %} Refunded {% endif %} {% if line.line_item.discount_allocations %} {% for discount_allocation in line.line_item.discount_allocations %} {% if discount_allocation.discount_application.target_selection != 'all' %} {{ discount_allocation.discount_application.title | upcase }} (-{{ discount_allocation.amount | money }}) {% endif %} {% endfor %} {% endif %}