Hi
I wish to remove the parcel tracking number in the shopify order fulfilled/shipping email. I’m changing this email to your order is now being packed and Klaviyo will start a flow 30 minutes later with the tracking number and so on. It’s a pain that you can’t turn off this shopify email so it’s my work around.
Can someone please tell me which part of the code I need to remove so the parcel tracking number is removed from this email. Below is the code. I had a go at trying but I was getting an error.
{% if fulfillment.item_count == item_count %}
{% capture email_title %}Your order is now currently being packed.{% endcapture %}
{% capture email_body %}Hi {{ customer.first_name }},
Your order is now currently being packed by our team. You will soon recievce an email with all the tracking details of your parcel.{% 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 }}
.body {background: #F4F1E6;}
.button__cell { background: {{ shop.email_accent_color }}; }
a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
{%- if shop.email_logo_url %}
{%- else %}
{%- 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 %}
| |
|
{% if shop.url %}
{% endif %}
|
{% else %}
{% if shop.url %}
{% 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 %}
|
|
|
{% 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_display }} × {{ component_title }}
{% 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 }}
|
|
|
Thanks, This works perfectly. I was deleting stuff around this area of code, but I must have not deleted enough code or something. Thank you
1 Like