help with shipping confirmation email

Oh yes you’re right, I was in the wrong template! :roll_eyes:

Ok now that I’m in the right one I can see what the problem is. It’s the code I have highlighted in the screenshot (it goes for longer than this). I want to remove all of this code that changes the messaging based on whether items have been fulfiled prior. Back story is I’m using a bundles app where the ‘bundle item’ is fulfiled automatically only leaving the children SKU’s. This is so the ‘bundle’ doesn’t go through to fulfilment.

So basically, I just want the shipment email to ALWAYS say “your order is on the way” rather than “the last items are on their way”

Does that makes sense? Ill pop the screen shot below followed by HTML.

{% 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: format: ‘date’}}{% endcapture %}

{{ email_title }} .button__cell { background: {{ shop.email_accent_color }}; } a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
{%- if shop.email_logo_url %} {{ shop.name }} {%- else %}

{{ shop.name }}

{%- endif %}
{%- if po_number %} {%- endif %}
Order {{ order_name }}
PO number #{{ po_number }}

{{ email_title }}

{{ email_body }}

{% if fulfillment.estimated_delivery_at %}

{{ email_emphasis }}

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

{% else %}
{% if shop.url %}

Visit our store
{% endif %}

{% endif %}
{% if fulfillment.tracking_numbers.size > 0 %}


{% if fulfillment.tracking_numbers.size == 1 and fulfillment.tracking_company and fulfillment.tracking_url %} {{ fulfillment.tracking_company }} tracking number: {{ fulfillment.tracking_numbers.first }} {% elsif fulfillment.tracking_numbers.size == 1 %} Tracking number: {{ fulfillment.tracking_numbers.first }} {% else %} {{ fulfillment.tracking_company }} tracking numbers:
{% for tracking_number in fulfillment.tracking_numbers %} {% if fulfillment.tracking_urls[forloop.index0] %} {{ tracking_number }} {% else %} {{ tracking_number }} {% endif %}
{% endfor %} {% endif %}

{% endif %}

Items in this shipment

{% for line in fulfillment.fulfillment_line_items %}

{% endfor %}

{% assign expand_bundles = false %} {% if expand_bundles and line.line_item.bundle_parent? %} {% else %} {% endif %}
{% if line.line_item.image %} {% else %}
{% endif %}
{% if line.line_item.image %} {% else %}
{% 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’ and line.line_item.bundle_parent? == false %}
{{ line.line_item.variant.title }}

{% elsif line.line_item.variant.title != ‘Default Title’ and line.line_item.bundle_parent? and expand_bundles == false %}
{{ line.line_item.variant.title }}

{% endif %}

{% if expand_bundles %}
{% for component in line.line_item.bundle_components %}

{% if component.image %} {% else %}
{% endif %}
{% if component.product.title %} {% assign component_title = component.product.title %} {% else %} {% assign component_title = component.title %} {% endif %}

{% assign component_display = component.quantity %}

{{ component_title }} × {{ component_display }}

{% if component.variant.title != ‘Default Title’%}
{{ component.variant.title }}
{% endif %}

{% endfor %} {% else %} {% for group in line.line_item.groups %} Part of: {{ group.display_title }}
{% endfor %} {% endif %}

{% if line.line_item.selling_plan_allocation %}
{{ line.line_item.selling_plan_allocation.selling_plan.name }}

{% 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 %}

If you have any questions, reply to this email or contact us at {{ shop.email }}