-
Notifications
You must be signed in to change notification settings - Fork 6
/
shipping-confirmation.liquid
74 lines (68 loc) · 1.97 KB
/
shipping-confirmation.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<p class="lead">Dear {{ billing_address.name }},</p>
<p class="lead">
{% if fulfillment.line_items.size == line_items.size %}
All
{% elsif unfulfilled_line_items.size == 0 %}
The last
{% else %}
Some
{% endif %}
of the items from order {{ name }} have now been shipped:
</p>
<table class="products-table">
<thead>
<tr>
<th>
</th>
<th class="product-description">
Description
</th>
<th>
Qty
</th>
</tr>
</thead>
<tbody>
{% for line in fulfillment.line_items %}
<tr>
<td class="product-image">
<img src="{{ line.product.featured_image | product_img_url: 'small' }}" />
</td>
<td class="product-description">
{{ line.title }}
</td>
<td class="qty">
{{ line.quantity }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if requires_shipping %}
<p>They are being shipped {% if fulfillment.tracking_company %}via {{ fulfillment.tracking_company }} {% endif %}to the following address: </p>
<p><b>Shipping address</b><br />
{{ 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 %}
<p>
The tracking number for these items is
{% if fulfillment.tracking_company contains 'Other' %}
{% for number in fulfillment.tracking_numbers %}
{{ number }}
{% assign lnumber = number | downcase %}
{% if lnumber contains 'la' or lnumber contains 'ka' %}
<!-- Insert your shipping company -->
{% endif %}
{% endfor %}
{% else %}
{{ fulfillment.tracking_numbers }} by {{ fulfillment.tracking_company }}
{% endif %}
</p>
<p>Please allow some time for the status of the shipment to correctly display at the above address.</p>
{% endif %}
{% endif %}
<p>Thank you for ordering from {{ shop_name }}!</p>