Shipping email confirmation

Highlighted
New Member
6 0 0

Hi,

I recently add a customized delivery date picker on some of my products as per this topics https://docs.shopify.com/manual/configuration/store-customization/page-specific/cart-page/capture-de...

Now, I need to add this delivery date on my shipping email confirmation. 

I tried this code: 

{% if billing_address.name %}
<p>Dear {{ billing_address.name }},</p>
<p></p>
{% endif %}
<p>{% if fulfillment.item_count == item_count %}All{% elsif fulfillment_status == 'fulfilled' %}The last{% else %}Some{% endif %} of the items from order {{ name }} have now been shipped:</p>
<p>{% for line in fulfillment.fulfillment_line_items %}<img src="{{ line.line_item | img_url: 'small' }}" />{{ line.quantity }}x {{ line.line_item.title }}<br>
{% endfor %}</p>
<p>{% if requires_shipping %}They are being shipped {% if fulfillment.tracking_company %}via {{ fulfillment.tracking_company }} {% endif %}on {{% if fulfillment.additional_details % }} 
{% endif %}to the following address: </p>

<p>{{ shipping_address.name }}<br />
{{ shipping_address.street }}<br />
{{ shipping_address.city }}<br />
{{ shipping_address.province }}
{{ shipping_address.zip }}<br />
{{ shipping_address.country }}</p>

{% if fulfillment.tracking_numbers.size > 0 %}
{% if fulfillment.tracking_numbers.size == 1 %}
<p>The tracking number for these items is {{ fulfillment.tracking_numbers.first }}. <a href="{{ fulfillment.tracking_urls.first }}">Click here to see the status of your shipment.</a></p>
{% else %}
<p>The tracking details for these items are as follows:</p>
<p>{% for tracking_number in fulfillment.tracking_numbers %} {{ tracking_number }}<br>{% endfor %}</p>

<p>Click the links below for shipping status on these items:</p>
<p>{% for tracking_url in fulfillment.tracking_urls %} <a href="{{ tracking_url }}">{{ tracking_url }}</a><br>{% endfor %}</p>
{% endif %}

<p>Please allow some time for the status of the shipment to correctly display at the above address.</p>
{% endif %}{% endif %}{% if fulfillment_status != 'fulfilled' %}
<p>You will receive a confirmation email when more items from your order have been shipped.</p>
{% endif %}

<p>Thank you for ordering from {{ shop_name }}!</p>

What interest us is this line:

<p>{% if requires_shipping %}They are being shipped {% if fulfillment.tracking_company %}via {{ fulfillment.tracking_company }} {% endif %}on {{% if fulfillment.additional_details % }} 
{% endif %}to the following address: </p>

The {{% if fulfillment.additional_details % }} should provide the additional details in my order which the date from the date picker on the pdocut. 

Do you guys have any ideas? 

Thanks for your reply!

Fabien

0 Likes
Highlighted
Shopify Staff
Shopify Staff
7 0 0

Hey Fabien,

Can you try using: 

 {{ attributes.date }} 

I think this will work instead of using the additional details code you had implemented. 

 

0 Likes
Highlighted
New Member
1 0 0

Hi,

 

I will be manually fulfilling orders on my store, and need to know what liquid code titles refer to the "Tracking Number" and "Tracking URL" on the order fulfilment page.

 

i.e.

 

1. is the "tracking number" field = {{ fulfillment.tracking_numbers.first }}

2. is the "tracking URL" field = {{ fulfillment.tracking_urls.first }} or {{ fulfillment.tracking_url }} or {{ tracking_url }} and what is the difference between these three?

 

And what if the fulfilment is broken into multiple separate shipments?

 

Regards,

AL

 

0 Likes
Highlighted
New Member
2 0 0

hello can I substitute one of those html for my {cke_protected_1}All{% elsif fulfillment_status == ' fulfilled ' %} that gives it to me as an error?

0 Likes