-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.html
More file actions
264 lines (234 loc) · 10.6 KB
/
checkout.html
File metadata and controls
264 lines (234 loc) · 10.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Checkout</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/vendors/handlebars.min.js"></script>
<script src="js/vanilla.js"></script>
<script src="js/checkout.js"></script>
<script src="js/shop.js"></script>
<script type="text/x-handlebars-template">
{{> partials/htmlHead }}
</script>
</head>
<body>
<div>
<script id="partial-header" type="text/x-handlebars-template">
{{> partials/header checkout='active' }}
</script>
</div>
<div>
<script type="text/x-handlebars-template">
{{> partials/hero title='Checkout' }}
</script>
</div>
<section class="checkout-wrap padding-small">
<div class="container">
<form class="form-group needs-validation" action="javascript:checkout(document.forms[1])"
novalidate onsubmit="return validateForm(this)">
<div class="row d-flex flex-wrap">
<div class="col-lg-6">
<h3 class="mb-3">Your order</h3>
<script type="text/x-handlebars-template">
<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>
{{#items}}
<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="{{#if image}}{{image}}{{else}}images/book-placeholder.png{{/if}}"
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.html?id={{id}}">{{title}}</a></h5>
<div class="card-price">
<span class="price text-primary fw-light" data-currency-usd="$">${{toFixed 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">${{toFixed total}}</span>
</div>
</div>
</div>
</div>
{{/items}}
</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 checked>
<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>
</script>
</div>
<div class="col-lg-6">
<h3 class="mb-3">Billing Details</h3>
<div class="billing-details">
<label for="fname">First Name*</label>
<input type="text" id="fname" name="firstname" class="form-control mt-2 mb-4 ps-3" required value="test">
<label for="lname">Last Name*</label>
<input type="text" id="lname" name="lastname" class="form-control mt-2 mb-4 ps-3" required value="test">
<label for="cname">Company Name(optional)*</label>
<input type="text" id="cname" name="company" class="form-control mt-2 mb-4" value="test">
<label for="country">Country / Region*</label>
<select id="country" name="country" class="form-select form-control mt-2 mb-4"
aria-label="Default select example" required>
<option value="0" selected>United States</option>
<option value="1">UK</option>
<option value="2">Australia</option>
<option value="3">Canada</option>
</select>
<label for="adr">Street Address*</label>
<input type="text" id="adr" name="address" placeholder="House number and street name"
class="form-control mt-3 ps-3 mb-3" required value="test">
<label for="city">Town / City *</label>
<input type="text" id="city" name="city" class="form-control mt-3 ps-3 mb-4" required value="test">
<label for="state">State *</label>
<select id="state" name="state" class="form-select form-control mt-2 mb-4"
aria-label="Default select example" required>
<option selected="">Florida</option>
<option value="1">New York</option>
<option value="2">Chicago</option>
<option value="3">Texas</option>
<option value="3">San Jose</option>
<option value="3">Houston</option>
</select>
<label for="zip">Zip Code *</label>
<input type="text" id="zip" name="zip" class="form-control mt-2 mb-4 ps-3" required value="test">
<label for="phone">Phone (optional)</label>
<input type="text" id="phone" name="phone" class="form-control mt-2 mb-4 ps-3" value="test">
<label for="email">Email address *</label>
<input type="text" id="email" name="email" class="form-control mt-2 mb-4 ps-3" required value="test">
</div>
<div class="button-wrap mt-3">
<button type="submit" class="btn">Place order</button>
</div>
</div>
</div>
</form>
</div>
</section>
<div>
<script type="text/x-handlebars-template">
{{> partials/footer }}
</script>
</div>
<script src="js/vendors/jquery-1.11.0.min.js"></script>
<script src="js/vendors/bootstrap.bundle.min.js"></script>
<script src="js/vendors/swiper-bundle.min.js"></script>
<script src="js/vendors/script.js"></script>
</body>
</html>