-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreturn-instructions.liquid
107 lines (95 loc) · 4.17 KB
/
return-instructions.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ email_title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
<style>
.button { background: {{ shop.email_accent_color }}; }
a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
</style>
</head>
<body>
{%- if shop.email_logo_url %}
<img src="{{ shop.email_logo_url }}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
{%- else %}
<h1>
<a href="{{ shop.url }}">{{ shop.name }}</a>
</h1>
{%- endif %}
<h2>Order {{ order.name }}</h2>
{% for return_delivery in return.deliveries %}
{% if return_delivery.type == 'shopify_label' %}
<h2>Your return shipping label is ready</h2>
<p>Print your return shipping label and attach it to the package containing your return items</p>
<a href="{{ return_delivery.return_label.public_file_url }}">Print return label</a>
or <a target="_blank" href="{{ order.order_status_url }}">View your order</a>
{% elsif return_delivery.type == 'manual' %}
<h2>Complete your return</h2>
<p>
<strong>We’ve sent you a return shipping label, or you will receive one soon.</strong>
Once you receive your return shipping label, get your returned items and follow the instructions to complete your return.
</p>
{% endif %}
{% endfor %}
<h3>Returned items</h3>
{% for line_item in return.line_items %}
{% if line_item.image %}
<img src="{{ line_item | img_url: 'compact_cropped' }}" align="left" width="60" height="60" />
{% endif %}
{% assign line_display = line_item.quantity %}
{{ line_item.title }} × {{ line_display }}
{% if line_item.variant_title != 'Default Title' %}
{{ line_item.variant_title }}
{% endif %}
{% if line_item.discount_allocations %}
{% for discount_allocation in line_item.discount_allocations %}
<img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" />
{{ discount_allocation.discount_application.title | upcase }}
(-{{ discount_allocation.amount | money }})
{% endfor %}
{% endif %}
{% if line_item.original_line_price != line_item.final_line_price %}
<del>{{ line_item.original_line_price | money }}</del>
{% endif %}
<p>
{% if line_item.final_line_price > 0 %}
{{ line_item.final_line_price | money }}
{% else %}
Free
{% endif %}
</p>
{% endfor %}
<h3>Instructions</h3>
{% for return_delivery in return.deliveries %}
<ol>
<li>Pack the items you're returning.</li>
{% if return_delivery.type == 'shopify_label' %}
<li>Print your return shipping label and attach it to the package. Cover or remove any old shipping labels.</li>
<li>
{% if return_delivery.carrier_name %}
Give the package to {{ return_delivery.carrier_name }}.
{% else %}
Give the package to the carrier identified on the label.
{% endif %}
</li>
{% elsif return_delivery.type == 'manual' %}
<li>Print your return shipping label. If you haven’t received it yet, we’ll send it to you soon.</li>
<li>Attach the label to the package. Cover or remove any old shipping labels.</li>
<li>
{% if return_delivery.carrier_name %}
Give the package to {{ return_delivery.carrier_name }}.
{% else %}
Give the package to the carrier identified on the label.
{% endif %}
</li>
<li>
Track your return using <a target="_blank" href="{{ return_delivery.tracking_url) }}">your tracking number</a> to make sure we get it.
</li>
{% endif %}
</ol>
{% endfor %}
<p>If you have any questions, reply to this email or contact us at <a href="mailto:{{ shop.email }}">{{ shop.email }}</a></p>
</body>
</html>