Shipping Update email integration and automation with our customized Tracking page

We need assistance regarding an issue we are facing with our Shopify store’s shipping update emails.

Previously, we were using the Parcel Panel app, which automatically sent shipping update emails to customers as soon as we fulfilled an order and added the tracking number. However, we have now uninstalled the Parcel Panel app and created a tracking page from our courier aggregator.

Since making this change, the automated shipping update emails that used to be triggered immediately after fulfilling orders are no longer being sent. This is causing inconvenience as we want to ensure that customers receive shipping updates promptly.

I have included the code snippet below that was previously used to trigger the shipping update emails. It is possible that some modifications were made to this code when integrating the Parcel Panel app initially.

I kindly request your assistance in reviewing the scenario and providing guidance on how we can resolve this issue. Our goal is to reinstate the automated shipping update emails to ensure a seamless customer experience.

https://tracking.comfyfusion.in/tracking
is the url
Also please suggest me steps I would like to implement myself

{% capture email_title %}Your shipping status has been updated{% endcapture %}
{% capture email_body %}The following items have been updated with new shipping information.{% endcapture %}

{{ email_title }} .button__cell { background: #283788 !important; } a.button__text { color: #fff !important; } .button__cell { background: {{ shop.email_accent_color }}; } a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
{%- if po_number %} {%- endif %}
{%- if shop.email_logo_url %} {{ shop.name }} {%- else %}

{{ shop.name }}

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

{{ email_title }}

{{ email_body }}

{{ email_emphasis }}

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

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

{% endfor %}

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

Above code is after parcelpanel integration

and below code is before the integration

{% capture email_title %}Your shipping status has been updated{% endcapture %}
{% capture email_body %}The following items have been updated with new shipping information.{% endcapture %}

{{ email_title }} .button__cell { background: {{ shop.email_accent_color }}; } a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
{%- if po_number %} {%- endif %}
{%- if shop.email_logo_url %} {{ [shop.name](http://shop.name/) }} {%- else %}

{{ [shop.name](http://shop.name/) }}

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

{{ email_title }}

{{ email_body }}

{{ email_emphasis }}

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

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

{% endfor %}

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