-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcheckout.html
More file actions
294 lines (269 loc) · 10.3 KB
/
checkout.html
File metadata and controls
294 lines (269 loc) · 10.3 KB
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html>
<html>
<head>
<title>Checkout</title>
<meta name="keywords" content="">
<meta name="description" content="">
{{> partials/htmlHead }}
<script type="text/javascript">
function validateForm(form) {
form.classList.add('was-validated')
return form.checkValidity()
}
</script>
</head>
<body>
{{> partials/header }}
<section class="hero-section position-relative padding-small"
style="background-image: url(/images/banner-image-bg-1.jpg); background-size: cover; background-repeat: no-repeat; background-position: center;">
<div class="hero-content">
<div class="container">
<div class="row">
<div class="text-center">
<h1>Checkout</h1>
<div class="breadcrumbs">
<span class="item">
<a href="index.html">Home > </a>
</span>
<span class="item text-decoration-underline">Checkout</span>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="checkout-wrap padding-medium">
<div class="container">
<form class="form-group needs-validation" method="post" action="/order/place"
novalidate onsubmit="return validateForm(this)">
<div class="row d-flex flex-wrap">
<div class="col-lg-6">
<h3 class="mb-3">Your order</h3>
<div class="cart- table">
<div class="cart-header border-bottom border-top">
<div class="row d-flex text-capitalize">
<h4 class="col-5 m-0">Product</h4>
<h4 class="col-3 m-0">Quantity</h4>
<h4 class="col-4 m-0">Subtotal</h4>
</div>
</div>
{{#cartItems}}
<div class="border-bottom padding-small">
<div class="row align-items-center">
<div class="col-5">
<div class="cart-info d-flex gap-2 flex-wrap align-items-center">
<div class="col-lg-5">
<div class="card-image">
<img src="{{image}}" alt="{{title}}" class="img-fluid border rounded-3">
</div>
</div>
<div class="col-lg-6">
<div class="card-detail">
<h5 class="mt-2"><a href="/details/{{articleNo}}">{{title}}</a></h5>
<div class="card-price">
<span class="price text-primary fw-light" data-currency-usd="${{price}}">${{price}}</span>
</div>
</div>
</div>
</div>
</div>
<div class="col-3">
<div class="product-quantity">
<div class="product-qty d-flex justify-content-center">
<span class="fw-light">
{{quantity}}
</span>
</div>
</div>
</div>
<div class="col-4">
<div class="total-price">
<span class="money fw-light text-primary">${{totalPriceFormatted}}</span>
</div>
</div>
</div>
</div>
{{/cartItems}}
</div>
<div class="cart-totals padding-small mb-3">
<div class="total-price pb-3">
<table cellspacing="0" class="table text-capitalize">
<tbody>
<tr class="subtotal pt-2 pb-2 border-bottom">
<th>Subtotal</th>
<td data-title="Subtotal">
<span class="price-amount amount text-primary ps-5 fw-light">
<bdi>
<span class="price-currency-symbol">$</span>{{subTotal}}
</bdi>
</span>
</td>
</tr>
<tr class="subtotal pt-2 pb-2 border-bottom">
<th>Discount</th>
<td data-title="Discount">
<span class="price-amount amount text-primary ps-5 fw-light">
<bdi>
<span class="price-currency-symbol">- $</span>{{discount}}
</bdi>
</span>
</td>
</tr>
<tr class="subtotal pt-2 pb-2 border-top border-bottom">
<th>Shipping</th>
<td data-title="Shipping">
<span class="price-amount amount text-primary ps-5 fw-light">
<bdi>
<span class="price-currency-symbol">$</span>{{shippingCosts}}
</bdi>
</span>
</td>
</tr>
<tr class="subtotal pt-2 pb-2 border-top border-bottom">
<th>Taxes</th>
<td data-title="Taxes">
<span class="price-amount amount text-primary ps-5 fw-light">
<bdi>
<span class="price-currency-symbol">$</span>{{taxes}}
</bdi>
</span>
</td>
</tr>
<tr class="order-total pt-2 pb-2 border-bottom">
<th>Grand Total</th>
<td data-title="Total">
<span class="price-amount amount text-primary ps-5 fw-light">
<bdi>
<span class="price-currency-symbol">$</span>{{grandTotal}}</bdi>
</span>
</td>
</tr>
</tbody>
</table>
</div>
<div class="list-group">
<h3 class="">Payment method</h3>
<label class="list-group-item d-flex gap-2 border-0">
<input class="form-check-input flex-shrink-0" type="radio" name="paymentMethod"
id="listGroupRadios1" value="CREDITCARD" required>
<span>
<p class="mb-1">Credit card</p>
<small>Credit card details will be required, later.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2 border-0">
<input class="form-check-input flex-shrink-0" type="radio" name="paymentMethod"
id="listGroupRadios2" value="BANK_TRANSFER" required>
<span>
<p class="mb-1">Direct bank transfer</p>
<small>Make your payment directly into our bank account. Please use your Order ID. Your order will
shipped after funds have cleared in our account.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2 border-0">
<input class="form-check-input flex-shrink-0" type="radio" name="paymentMethod"
id="listGroupRadios3" value="CHECK" required>
<span>
<p class="mb-1">Check payments</p>
<small>Please send a check to Store Name, Store Street, Store Town, Store State / County, Store
Postcode.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2 border-0">
<input class="form-check-input flex-shrink-0" type="radio" name="paymentMethod"
id="listGroupRadios4" value="PAYPAL" required>
<span>
<p class="mb-1">Paypal</p>
<small>Pay via PayPal; you can pay with your credit card if you don’t have a PayPal account.</small>
</span>
</label>
</div>
</div>
</div>
<div class="col-lg-6">
<h3 class="mb-3">Billing Details</h3>
<div class="billing-details">
<div class="mb-3">
<label for="firstName">First Name*</label>
<input type="text" name="firstName" id="firstName" class="form-control mt-2 ps-3" required>
<span class="invalid-feedback">Please enter your first name</span>
</div>
<div class="mb-3">
<label for="lastName">Last Name*</label>
<input type="text" name="lastName" id="lastName" class="form-control mt-2 ps-3" required>
<span class="invalid-feedback">Please enter your last name</span>
</div>
<div class="mb-3">
<label for="company">Company Name (optional)</label>
<input type="text" name="company" id="company" class="form-control mt-2 mb-4">
</div>
<div class="mb-3">
<label for="country">Country / Region*</label>
<select name="country" id="country" class="form-select form-control mt-2"
aria-label="Default select example" required>
<option value="">-- Please select --</option>
<option value="US">United States</option>
<option value="UK">United Kingdom</option>
<option value="AU">Australia</option>
<option value="CA">Canada</option>
</select>
<span class="invalid-feedback">Please select your country</span>
</div>
<div class="mb-3">
<label for="street">Street Address*</label>
<input type="text" name="street" id="street" placeholder="House number and street name"
class="form-control mt-3 ps-3" required>
<span class="invalid-feedback">Please enter your house number and street name</span>
</div>
<div class="mb-3">
<label for="city">Town / City *</label>
<input type="text" name="city" id="city" class="form-control mt-3 ps-3" required>
<span class="invalid-feedback">Please enter your town or city</span>
</div>
<div class="mb-3">
<label for="state">State (optional)</label>
<select name="state" id="state" class="form-select form-control mt-2" aria-label="Default select example">
<option value="">-- Please select --</option>
<option value="Florida">Florida</option>
<option value="New York">New York</option>
<option value="Chicago">Chicago</option>
<option value="Texas">Texas</option>
<option value="San Jose">San Jose</option>
<option value="Houston">Houston</option>
</select>
</div>
<div class="mb-3">
<label for="zipCode">Zip Code *</label>
<input type="text" name="zipCode" id="zipCode" class="form-control mt-2 ps-3" required>
<span class="invalid-feedback">Please enter your town or city</span>
</div>
<div class="mb-3">
<label for="phoneNumber">Phone (optional)</label>
<input type="text" name="phoneNumber" id="phoneNumber" class="form-control mt-2 ps-3">
</div>
<div class="mb-3">
<label for="email">Email address *</label>
<input type="text" name="email" id="email" class="form-control mt-2 ps-3" required>
<span class="invalid-feedback">Please enter your Email address</span>
</div>
</div>
<div>
<h3 class="mb-3">Additional Information</h3>
<div class="billing-details">
<label for="notes">Order notes (optional)</label>
<textarea name="notes" id="notes" class="form-control pt-3 pb-3 ps-3 mt-2"
placeholder="Notes about your order. Like special notes for delivery.">Please leave the package in the right barn.
</textarea>
</div>
</div>
<div class="button-wrap mt-3">
<button type="submit" class="btn">Place order</button>
</div>
</div>
</div>
</form>
</div>
</section>
{{> partials/footer }}
</body>
</html>