-
Notifications
You must be signed in to change notification settings - Fork 6
/
new-order-notification.liquid
68 lines (62 loc) · 1.6 KB
/
new-order-notification.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
<p class="lead">{{ shop_name }},</p>
<p class="lead">{{ billing_address.name }} placed a new order with you today ({{ date | date: "%b %d %I:%M%p" }}).</p>
<h4>Payment method:</h4>
<p>{{ gateway }}</p>
{% if requires_shipping %}
<h4>Delivery method:</h4>
<p>
{% for shipping_method in shipping_methods %}
{{ shipping_method.title }}{% unless forloop.last %}<br />{% endunless %}
{% endfor %}
</p>
<h4>Shipping address:</h4>
<p>
{{ shipping_address.name }}<br />
{{ shipping_address.street }}<br />
{{ shipping_address.city }}<br />
{{ shipping_address.province }} {{ shipping_address.zip }}<br />
{{ shipping_address.country }}
</p>
<p>{{ shipping_address.phone }}</p>
{% endif %}
<table class="products-table">
<thead>
<tr>
<th>
</th>
<th class="product-description">
Description
</th>
<th>
Qty
</th>
<th>
Price
</th>
</tr>
</thead>
<tbody>
{% for line in line_items %}
<tr>
<td class="product-image">
<img src="{{ line.product.featured_image | product_img_url: 'small' }}" />
</td>
<td class="product-description">
{{ line.title }}
{% for p in line.properties %}
{% unless p.last == blank %}
<br /> - {{ p.first }}: {{ p.last }}
{% endunless %}
{% endfor %}
</td>
<td class="qty">
{{ line.quantity }}
</td>
<td class="price">
{{ line.price | money }} each
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p><a href="{{ shop.url }}/admin/orders/{{ id }}">View order {{order_name}}</a></p>