Create HTML code for shipping confirmation email

Hi guys how are you? This is Juan. I am not very good at coding so I am requesting this help from you.

What I really need is the next: I would like my customers to receive an email that links https://www.17track.net/en with my tracking number for example:

When they click track your order I would like that the order number is shown and then a button that say track your order. The email they are receiving right now is the regular one from shopify and this is a big mistake because they receive wrong locating information of their package.

What I have realized is the next: if you go to: https://www.17track.net/en and you insert the tracking number then it becomes https://t.17track.net/en#nums=YT2017021266102502 where what is red would be the tracking numbe provided by my supplier that is fulfilled by oberlo or udroppy.

With that said I would like to have let’s say this link https://t.17track.net/en#nums= and then automatically put the tracking code provided by the email flow that brings it from shopify.

I hope I am clear and I tried to explain my self very well

Thank you so much guys I hope you can help me.

This is the code I have right now

{% 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 }} .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 %}
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 %}
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 %} Tracking numbers:
{% for tracking_number in fulfillment.tracking_numbers %} {{ tracking_number }}
{% endfor %} {% endif %}

{% endif %}

Items in this shipment

{% for line in fulfillment.fulfillment_line_items %} {% endfor %}
{% if line.line_item.image %} {% 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.line_item.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 %}

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