forked from Mrinal26/green-paradise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.html
395 lines (388 loc) · 14.4 KB
/
checkout.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
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script
src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/10.1.0/swiper-bundle.min.js"
integrity="sha512-4Ooh3fl4STrmn95ZbS/J6l8csp/FvSKPaeDAH/IaPQGJIx9lmpuxXZTCYKR2W5+Bt7i74exPvAT2PsWnac+sow=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<!-- Bootstrap CSS -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link
rel="stylesheet"
href="https://unpkg.com/swiper/swiper-bundle.min.css"
/>
<link
href="https://api.fontshare.com/v2/css?f[]=clash-display@200,400,700,500,600,1,300&display=swap"
rel="stylesheet"
/>
<link rel="shortcut icon" href="GP.png" type="image/x-icon">
<link rel="stylesheet" href="./styles/index.css" />
<link rel="stylesheet" href="./styles/nav.css" />
<link rel="stylesheet" href="./styles/footer.css" />
<link rel="stylesheet" href="./styles/popularProducts.css" />
<link rel="stylesheet" href="./styles/checkout.css" />
<title>Green Paradise | Checkout</title>
</head>
<body>
<div class="background">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<nav class="navbar sticky-top navbar-expand-lg bg-light"></nav>
<section id="cart" class="mt-5 mb-5">
<div class="container">
<div class="row g-4">
<div class="col-lg-6 col-sm-12">
<!-- Personal Info Section -->
<div id="personalInfoSection">
<h1 class="heading">Check out</h1>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#"
>Personal Info</a
>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Delivery</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Payment</a>
</li>
</ul>
<form action="#" id="personal" class="form mt-4">
<div class="row">
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="text"
id="firstName"
class="form-control"
placeholder="First Name"
aria-label="First Name"
/>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="text"
id="lastName"
class="form-control"
placeholder="Last Name"
aria-label="Last Name"
/>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="number"
id="mobile"
class="form-control"
placeholder="Phone Number"
aria-label="Phone Number"
/>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="email"
id="email"
class="form-control"
placeholder="Email"
aria-label="Email"
/>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3 mt-2">
<p>Add a comment to the order</p>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="text"
class="form-control"
placeholder="Comment"
aria-label="Comment"
/>
</div>
</div>
</div>
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value=""
id="flexCheckChecked"
checked
/>
<label class="form-check-label" for="flexCheckChecked">
You can not call me to confirm the order
</label>
</div>
<!-- <button class="btn check-back w-100 mt-2" id="deliveryBack">Back</button> -->
<div class="row">
<div class="col-lg-6 col-sm-12"></div>
<div class="col-lg-6 col-sm-12">
<button
class="btn check-continue w-100 mt-2"
id="personalInfoContinue"
>
Continue
</button>
</div>
</div>
</form>
</div>
<!-- Delivery Section (Initially Hidden) -->
<div id="deliverySection" style="display: none">
<h1 class="heading">Check out</h1>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#"
>Personal Info</a
>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">Delivery</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Payment</a>
</li>
</ul>
<form action="#" class="form mt-4">
<div class="row">
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="text"
id="address"
class="form-control"
placeholder="Address"
aria-label="Address"
aria-describedby="basic-addon1"
/>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="text"
id="landmark"
class="form-control"
placeholder="Landmark"
aria-label="Landmark"
aria-describedby="basic-addon1"
/>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="number"
id="pincode"
class="form-control"
placeholder="Pincode"
aria-label="Pincode"
aria-describedby="basic-addon1"
/>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<input
type="text"
id="city"
class="form-control"
placeholder="City"
aria-label="City"
aria-describedby="basic-addon1"
/>
</div>
</div>
<!-- ... Additional form inputs ... -->
</div>
<div class="row">
<div class="col-lg-6 col-sm-12">
<button
class="btn btn-outline-success check-back w-100 mt-2"
id="deliveryBack"
>
Back
</button>
</div>
<div class="col-lg-6">
<button
class="btn check-continue w-100 mt-2"
id="add-submit"
>
Continue
</button>
</div>
</div>
</form>
</div>
<!-- Payment Section (Initially Hidden) -->
<div id="paymentSection" style="display: none">
<h1 class="heading">Check out</h1>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#"
>Personal Info</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Delivery</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">Payment</a>
</li>
</ul>
<form action="#" class="form mt-4">
<div class="row">
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<h6>First Name: <span id="d-fName"></span></h6>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<h6>Last Name: <span id="d-lName"></span></h6>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<h6>Mobile: <span id="d-mobile"></span></h6>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<h6>Email: <span id="d-email"></span></h6>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<h6>Address: <span id="d-address"></span></h6>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<h6>Landmark: <span id="d-landmark"></span></h6>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<h6>Pincode: <span id="d-pincode"></span></h6>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<div class="input-group mb-3">
<h6>City: <span id="d-city"></span></h6>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6 col-sm-12">
<button
class="btn btn-outline-success check-back w-100 mt-2"
id="paymentBack"
>
Back
</button>
</div>
<div class="col-lg-6">
<button class="btn check-continue w-100 mt-2" id="pay">
Pay
</button>
</div>
</div>
</form>
</div>
</div>
<div class="col-lg-6 col-sm-12">
<h2 class="order-heading">Your order</h2>
<div id="cart-items"></div>
<div id="total">
<div class="d-flex justify-content-between mt-3">
<p>Items</p>
<p id="itemsTotal"></p>
</div>
<div class="d-flex justify-content-between">
<p>Delivery</p>
<p>100RS</p>
</div>
<div class="d-flex justify-content-between">
<p>Total</p>
<u><p id="paymentAmount"></p></u>
</div>
</div>
</div>
</div>
</div>
</section>
<footer class="footer mt-auto py-3 bg-light"></footer>
<!-- MODAL -->
<!-- Bootstrap Modal for Validation Messages -->
<div
class="modal fade"
id="validationModal"
tabindex="-1"
role="dialog"
aria-labelledby="validationModalLabel"
aria-hidden="true"
>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="validationModalLabel">
Validation Error
</h5>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p id="validationMessage"></p>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-dismiss="modal"
id="validationCloseButton"
>
Close
</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Add any additional scripts here -->
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>
</body>
</html>
<script type="module" src="./scripts/checkout.js"></script>