generated from Code-Institute-Org/gitpod-full-template
/
checkout_success.html
240 lines (237 loc) · 9.7 KB
/
checkout_success.html
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
{% extends "base.html" %}
{% load static %}
{% block extra_css %}
<link rel="stylesheet" href="{% static 'checkout/css/checkout.css' %}">
{% endblock %}
{% block page_header %}
<div class="container header-container">
<div class="row">
<div class="col"></div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="overlay"></div>
<div class="container-fluid pt-5">
<div class="row">
<div class="col-12 text-center">
<span class="icon pt-5">
<i class="fas fa-check-circle fa-3x py-5 mt-5"></i>
</span>
<h2 class="display-font heading-lg mb-4">Thank You</h2>
<hr class="my-3">
<p class="text-dark body-font mx-5 my-3 px-4">All of us artists at Hue appreciate your business.
Below you will find your digital order, along with your order details.
<span class="text-light">
A confirmation email has also been sent to {{ order.email }} for your convenience.
</span>
</p>
</div>
</div>
<!--Order Info Starts Here-->
<div class="row d-flex justify-content-center align-items-center">
<div class="col-sm-12 text-sm-center text-md-start">
<div class="order-confirmation-wrapper p-2">
<div class="row">
<div class="col">
<p class="text-muted display-font">Order Info:</p>
</div>
</div>
<!--./end-order-info-->
<div class="row body-font">
<div class="col-sm-4 text-sm-center text-md-start">
<p class="mb-0 body-sm fwt-bold">Order #:</p>
</div>
<div class="col-sm-8 text-md-start">
<strong class="mb-0">{{ order.order_number }}</strong>
</div>
</div>
<!--order-date-row-->
<div class="row body-font my-1">
<div class="col-sm-4 text-sm-center text-md-start">
<p class="mb-0 body-sm">Order Date</p>
</div>
<div class="col-sm-8 text-md-start">
<strong class="mb-0">{{ order.date }}</strong>
</div>
</div>
<!--./end-order-date-row-->
<div class="row my-2 pt-3">
<div class="col">
<p class="text-muted display-font">Order Details:</p>
</div>
</div>
{% for item in order.orderitems.all %}
<div class="row body-font">
<div class="col-sm-4 text-sm-center text-md-start">
<p class="mb-0 body-sm">Title:</p>
</div>
<div class="col-sm-8 text-md-start">
<strong class="mb-0"> {{ item.product.title }}</strong>
</div>
</div>
<!--download-row-->
<div class="row my-2 pt-3">
<div class="col">
<p class="text-muted display-font">Order Download:</p>
</div>
</div>
<div class="row body-font">
<div class="col-12 col-md-4">
<p class="text-dark">Your Order</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<div>
<img src="{{ item.product.image.url }}" alt="{{ item.product.title }}"
class="img-thumbnail img-fluid my-1" style="width: 300px; height:auto;">
</div>
<a href="{{ item.product.image }}" download="{{ item.product.image }}"
class="btn btn-primary btn-sm mt-2">Download</a>
</div>
</div>
</div>
<!--./end-download-row-->
{% endfor %}
<!--digital-download-row-->
<div class="row my-2 pt-3">
<div class="col">
<p class="text-muted display-font">Your Information</p>
</div>
</div>
<div class="row body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Full Name</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.user_full_name }}</strong>
</div>
</div>
<div class="row body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Email:</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.email }}</strong>
</div>
</div>
<!--./end-digital-download-row-->
<!--billing-details-row-->
<div class="row my-2 pt-3">
<div class="col">
<p class="text-muted display-font">Your Billing Details</p>
</div>
</div>
<div class="row body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Address 1</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.street_address1 }}</strong>
</div>
</div>
<!--./end-billing-details-row-->
{% if order.street_address2 %}
<div class="row my-1 body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Address 2</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.street_address1 }}</strong>
</div>
</div>
{% endif %}
<!--order-county-->
{% if order.county %}
<div class="row my-1 body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">County</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.county }}</strong>
</div>
</div>
{% endif %}
<!--./order-county-->
<!--town-or-city-->
<div class="row my-1 body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Town or City</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.town_or_city }}</strong>
</div>
</div>
<!--./end-town-or-city-->
<!--order-postcode-row-->
{% if order.postcode %}
<div class="row my-1 body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Postal Code</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.postcode }}</strong>
</div>
</div>
{% endif %}
<!--./end-order-postcode-row-->
<!--order-total-row-->
<div class="row my-1 body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Country</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.country }}</strong>
</div>
</div>
<!--./order-country-->
<!--phone-number-row-->
<div class="row my-1 body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Phone Number</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.phone_number }}</strong>
</div>
</div>
<!--./end-phone-number-row-->
<!--billing info-row-->
<div class="row my-2 pt-3">
<div class="col">
<p class="text-muted display-font">Billing Info</p>
</div>
</div>
<!--./end-billing-info-row-->
<!--order-total-row-->
<div class="row my-1 body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Order Total</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.order_total }}</strong>
</div>
</div>
<!--./end-order-total-row-->
<!--summary-row-->
<div class="row my-1 body-font">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Summary</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.special_discount }}</strong>
</div>
</div>
<!--./end-summary-row-->
<!--grand-total-row-->
<div class="row">
<div class="col-12 col-md-4">
<p class="mb-0 body-sm">Grand Total</p>
</div>
<div class="col-12 col-md-8 text-md-right">
<strong class="mb-0">{{ order.grand_total }}</strong>
</div>
</div>
<!--./end-grand-total-row my-1 body-font-->
</div>
</div>
</div>
{% endblock %}