-
Notifications
You must be signed in to change notification settings - Fork 1
/
checkout.html
449 lines (443 loc) · 19.5 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
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
<!DOCTYPE html>
<html>
<head>
<title>Customnesia</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link href="//fonts.googleapis.com/css?family=Poppins:300,400,500,600" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/animate.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/customesia.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script>
var app = angular.module("myShoppingList", []);
app.controller("myCtrl", function($scope) {
$scope.products = [
["The Hoodie Biru Muda", "assets/img/hoodie/hoodie_birumuda.png", 189000, 1],
["The Hoodie Biru Tua", "assets/img/hoodie/hoodie_birutua.png", 189000, 1],
["The Kaos Hijau", "assets/img/kaos/kaos_hijau.png", 157000, 1],
["The Mugs Kerens", "assets/img/mug/mug_putih.png", 55000, 2],
["The Totebag Kerens", "assets/img/totebag/totebag.png",114000, 1]
];
$scope.removeItem = function(x) {
$scope.products.splice(x, 1);
}
$scope.total = function() {
var total = 0;
angular.forEach($scope.products, function(x) {
total += x[3] * x[2];
})
return total;
}
$scope.diskon = function(harga){
return harga * 0.1;
}
$scope.shipping = function(){
return 30000;
}
});
</script>
</head>
<body>
<header id="header">
<div>
<div id="logoAndNav" class="container">
<nav class="js-mega-menu navbar navbar-expand-md u-header__navbar">
<a class="navbar-brand" href="index.html" aria-label="Front">
<img src="assets/img/costumnesia-fixx.png" width="200">
</a>
<button type="button" class="navbar-toggler btn u-hamburger"
aria-label="Toggle navigation"
aria-expanded="false"
aria-controls="navBar"
data-toggle="collapse"
data-target="#navBar">
<span id="hamburgerTrigger" class="u-hamburger__box">
<span class="u-hamburger__inner"></span>
</span>
</button>
<div id="navBar" class="collapse navbar-collapse py-3">
<ul class="navbar-nav ml-lg-auto">
<li class="nav-item mx-2">
<a href="katalog.html" class="nav-link">KATALOG</a>
</li>
<li class="nav-item mx-2">
<a href="#" class="nav-link">PROMO</a>
</li>
<li class="nav-item mx-2">
<a href="login.html" class="nav-link">LOGIN</a>
</li>
<li class="nav-item mx-2">
<a href="register.html" class="nav-link"><i class="fa fa-user"></i> REGISTER</a>
</li>
<li class="nav-item ml-2">
<a href="desain.html" class="nav-link btn btn-outline-primary"><i class="fa fa-pencil"></i> BUAT DESAIN</a>
</li>
</ul>
</div>
</nav>
<div class="border-bottom-1"></div>
<div id="#navBar" class="navbar-expand-md">
<div class="nav-scroller py-1 mb-2">
<nav class="d-flex justify-content-between">
<a class="p-2 text-muted nav-item" href="desain-kaos.html">KAOS</a>
<a class="p-2 text-muted nav-item" href="desain-jaket.html">HODIE & JAKET</a>
<a class="p-2 text-muted nav-item" href="desain-totebag.html">TOTE BAG</a>
<a class="p-2 text-muted nav-item" href="desain-bantal.html">BANTAL</a>
<a class="p-2 text-muted nav-item" href="desain-case.html">CASE HP</a>
<a class="p-2 text-muted nav-item" href="desain-mug.html">MUG</a>
</nav>
</div>
</div>
</div>
</div>
</header>
<main id="content" role="main" ng-app="myShoppingList" ng-controller="myCtrl">
<div class="container u-space-1">
<div class="mb-9">
<h1 class="h2 font-weight-normal">Checkout</h1>
</div>
<div class="row">
<div class="col-lg-4 order-lg-2 mb-9 mb-lg-0">
<div class="mb-4">
<h2 class="h5">Order summary</h2>
</div>
<div class="shadow-sm rounded p-5">
<div class="media align-items-center mb-5" ng-repeat="x in products">
<div class="d-flex position-relative mr-3">
<img class="rounded" src="{{x[1]}}" width="50" height="50" alt="{{x[0]}}">
<span class="badge">{{x[3]}}</span>
</div>
<div class="media-body">
<h2 class="h6 mb-0">{{x[0]}}</h2>
</div>
<div class="media-body text-right">
<span>{{x[2] * x[3] | currency: "Rp "}}</span>
</div>
</div>
<hr class="my-5">
<form class="js-focus-state input-group u-form mb-2" method="post" action="thankyou.html">
<input type="search" class="form-control u-form__input" placeholder="Discount" aria-label="Discount" id="#diskon">
<div class="input-group-append">
<button type="button" class="btn btn-primary u-btn-primary">Apply</button>
</div>
</form>
<div class="bg-success text-white rounded p-3">
Diskon 10% Berhasil di tambahkan
</div>
<hr class="my-5">
<div class="media align-items-center">
<div class="d-flex mr-3">
<h3 class="h6 text-secondary">Subtotal</h3>
</div>
<div class="media-body text-right">
<span>{{ total() | currency: "Rp "}}</span>
</div>
</div>
<hr>
<div class="media align-items-center">
<div class="d-flex mr-3">
<h3 class="h6 text-secondary">Pengiriman</h3>
</div>
<div class="media-body text-right">
<span>{{shipping() | currency : "Rp "}}</span>
</div>
</div>
<hr class="my-5">
<div class="media align-items-center">
<div class="d-flex mr-3">
<h3 class="h6 text-secondary">Total</h3>
</div>
<div class="media-body text-right">
<strong>{{total() - diskon(total()) + shipping() | currency: "Rp "}}</strong>
</div>
</div>
</div>
</div>
<div class="col-lg-8 order-lg-1">
<form class="form">
<div class="mb-4">
<h2 class="h5">Billing address</h2>
</div>
<div class="row mb-2">
<div class="col-md-6">
<div class="mb-3">
<label class="h6 small d-block text-uppercase">
Nama Depan
<span class="text-danger">*</span>
</label>
<div class="input-group u-form">
<input class="form-control" type="text" required
placeholder="Davin"
aria-label="Davin">
</div>
</div>
</div>
<div class="col-md-6">
<div class="mb-3">
<label class="h6 small d-block text-uppercase">
Nama Belakang
<span class="text-danger">*</span>
</label>
<div class="input-group">
<input class="form-control" type="text" required
placeholder="Zander"
aria-label="Zanda">
</div>
</div>
</div>
<div class="w-100"></div>
<div class="col-md-6">
<div class="mb-3">
<label class="h6 small d-block text-uppercase">
Alamat Email
<span class="text-danger">*</span>
</label>
<div class="input-group">
<input class="form-control" type="email" required
placeholder="email@gmail.com"
aria-label="email@gmail.com">
</div>
</div>
</div>
<div class="col-md-6">
<div class="mb-3">
<label class="h6 small d-block text-uppercase">
No. HP
</label>
<div class="input-group u-form">
<input class="form-control" type="text"
placeholder="+628 5000 39939"
aria-label="+628 5000 39939">
</div>
</div>
</div>
<div class="w-100"></div>
<div class="col-md-8">
<div class="mb-3">
<label class="h6 small d-block text-uppercase">
Alamat Lengkap
<span class="text-danger">*</span>
</label>
<div class="js-focus-state input-group u-form">
<input class="form-control" type="text" required
placeholder="Jl. Bhayangkara"
aria-label="Jl. Bhayangkara">
</div>
</div>
</div>
<div class="col-md-4">
<div class="js-form-message mb-6">
<label class="h6 small d-block text-uppercase">
Kode Pos
</label>
<div class="input-group">
<input class="form-control" type="text"
placeholder="540444"
aria-label="540444">
</div>
</div>
</div>
<div class="col-md-12">
<div class="mb-3">
<label class="h6 small d-block text-uppercase">
Provinsi
<span class="text-danger">*</span>
</label>
<div class="input-group">
<input class="form-control" type="text" required
placeholder="Sleman"
aria-label="Sleman">
</div>
</div>
</div>
<div class="w-100"></div>
<div class="col-md-6">
<div class="mb-3">
<label class="h6 small d-block text-uppercase">
Kabupaten
<span class="text-danger">*</span>
</label>
<div class="input-group">
<input class="form-control" type="text" required
placeholder="Indonesia"
aria-label="Indonesia">
</div>
</div>
</div>
<div class="col-md-6">
<div class="mb-3">
<label class="h6 small d-block text-uppercase">
Kecamatan
<span class="text-danger">*</span>
</label>
<div class="input-group">
<input class="form-control" type="text" required
placeholder="Congcatur"
aria-label="Condongcatur">
</div>
</div>
</div>
</div>
<div class="mb-4">
<h2 class="h5">Metode Pembayaran</h2>
</div>
<div class="row mt-2">
<div class="col-md-7 mb-2 mb-md-0">
<div class="bg-white rounded p-3">
<div class="custom-control custom-radio d-flex align-items-center small text-muted">
<input type="radio" class="custom-control-input" id="deliveryRadio1" name="deliveryRadio" checked>
<label class="custom-control-label ml-1" for="deliveryRadio1">
<span class="d-block h6 text-dark font-weight-normal mb-1">
<img src="assets/img/bca.png" width="100">
</span>
<span class="d-block">No. Rekening : 39948484848 a.n PT. Customnesia Indonesia</span>
</label>
</div>
</div>
<div class="bg-white rounded p-3">
<div class="custom-control custom-radio d-flex align-items-center small text-muted">
<input type="radio" class="custom-control-input" id="deliveryRadio2" name="deliveryRadio">
<label class="custom-control-label ml-1" for="deliveryRadio2">
<span class="d-block h6 text-dark font-weight-normal mb-1">
<img src="assets/img/mandiri.png" width="100">
</span>
<span class="d-block">No. Rekening : 39948484848 a.n PT. Customnesia Indonesia</span>
</label>
</div>
</div>
<div class="bg-white rounded p-3">
<div class="custom-control custom-radio d-flex align-items-center small text-muted">
<input type="radio" class="custom-control-input" id="deliveryRadio3" name="deliveryRadio" checked>
<label class="custom-control-label ml-1" for="deliveryRadio3">
<span class="d-block h6 text-dark font-weight-normal mb-1">
<img src="assets/img/bri.png" width="100">
</span>
<span class="d-block">No. Rekening : 39948484848 a.n PT. Customnesia Indonesia</span>
</label>
</div>
</div>
<div class="bg-white rounded p-3">
<div class="custom-control custom-radio d-flex align-items-center small text-muted">
<input type="radio" class="custom-control-input" id="deliveryRadio4" name="deliveryRadio">
<label class="custom-control-label ml-1" for="deliveryRadio4">
<span class="d-block h6 text-dark font-weight-normal mb-1">
<img src="assets/img/bni.png" width="100">
</span>
<span class="d-block">No. Rekening : 39948484848 a.n PT. Customnesia Indonesia</span>
</label>
</div>
</div>
</div>
</div>
<div class="d-flex justify-content-between align-items-center">
<a href="cart.html"><span class="fa fa-angle-left mr-2"></span> Return to cart</a>
<button type="submit" class="btn btn-primary u-btn-primary transition-3d-hover">Place order</button>
</div>
</form>
</div>
</div>
</div>
<hr class="my-0">
</main>
<footer>
<div class="container">
<div class="row justify-content-lg-between u-space-2">
<div class="col-12 col-sm-4">
<div class="mb-2">
<img src="assets/img/costumnesia-fixx.png" width="150">
</div>
<p>Customesia adalah perusahaan di bidang industri kreatif yang fokus pada produk-produk merchandise. Sesuai dengan visi dan misi kami yang ingin memberikan kepuasan terhadap pelanggan dengan cara merealisasikan sebuah gambar digital menjadi produk yang bermakna.</p>
</div>
<div class="col-6 col-sm-4 col-lg-3 order-lg-2 ml-lg-auto mb-7 mb-lg-0">
<!-- Title -->
<h3 class="h6 font-weight-bold">Account</h3>
<!-- End Title -->
<!-- List -->
<ul class="list-unstyled u-list">
<li><a class="u-list__link" href="cart.html">Keranjang Belanja</a></li>
<li><a class="u-list__link" href="#">Metode Pengiriman</a></li>
<li><a class="u-list__link" href="#">Lacak Pengiriman</a></li>
<li><a class="u-list__link" href="konfirmasi.html">Konfirmasi Pemesanan</a></li>
<li><a class="u-list__link" href="#">Bantuan Pengguna</a></li>
</ul>
</div>
<div class="col-6 col-sm-4 col-lg-3 order-lg-3 mb-7 mb-lg-0">
<!-- Title -->
<h3 class="h6 font-weight-bold">Company</h3>
<ul class="list-unstyled u-list">
<li><a class="u-list__link" href="#">Tentang Kami</a></li>
<li><a class="u-list__link" href="#">Kontak</a></li>
<li><a class="u-list__link" href="#">Syarat dan Ketentuan</a></li>
<li><a class="u-list__link" href="#">FAQ</a></li>
<li><a class="u-list__link" href="#">Privacy Policy</a></li>
</ul>
</div>
</div>
<div class="row u-space-1">
<div class="col-md-4 mb-4 mb-lg-0">
<ul class="list-inline mb-0">
<li class="list-inline-item">
<a class="u-bg-transparent u-icon u-icon-secondary--air" href="#">
<span class="fa fa-facebook-f u-icon__inner"></span>
</a>
</li>
<li class="list-inline-item">
<a class="u-bg-transparent u-icon u-icon-secondary--air" href="#">
<span class="fa fa-google u-icon__inner"></span>
</a>
</li>
<li class="list-inline-item">
<a class="u-bg-transparent u-icon u-icon-secondary--air" href="#">
<span class="fa fa-twitter u-icon__inner"></span>
</a>
</li>
<li class="list-inline-item">
<a class="u-bg-transparent u-icon u-icon-secondary--air" href="#">
<span class="fa fa-github u-icon__inner"></span>
</a>
</li>
</ul>
</div>
<div class="border-bottom-1"></div>
<div class="col-md-8 text-md-right">
<!-- Links -->
<ul class="list-inline">
<li class="list-inline-item u-list__item">
<a class="u-list__link" href="#">Privacy & policy</a>
</li>
<li class="list-inline-item u-list__item">
<a class="u-list__link" href="#">Terms & conditions</a>
</li>
<li class="list-inline-item u-list__item">
<a class="u-list__link" href="#">Karir</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<a class="btn btn-success scroll-top" href="https://api.whatsapp.com/send?phone=089618676114&text=Halo,%20saya%20masih%20bingung%20dengan%20customnesia,%20bisa%20dijelaskan%20cara%20pesannya?" target="_blank">
<i class="fa fa-whatsapp"></i> Support
</a>
</footer>
<script type="text/javascript" src="assets/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script type="text/javascript" src="assets/js/app.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$('.scroll-top').fadeIn();
} else {
$('.scroll-top').fadeOut();
}
});
});
</script>
</body>
</html>