-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeranjang.php
More file actions
69 lines (58 loc) · 2.52 KB
/
keranjang.php
File metadata and controls
69 lines (58 loc) · 2.52 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
<?php
include_once __DIR__ . '/header.php';
?>
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Material+Icons" rel="stylesheet" />
<div class="page-container">
<div class="cart-page-header">
<h1>Keranjang Belanja</h1>
</div>
<main class="full-width-cart">
<div id="cart-empty-message" class="cart-empty" style="display: none;">
<span class="material-icons cart-empty-icon">shopping_cart</span>
<h2>Keranjang Anda Kosong</h2>
<p>Ayo jelajahi produk terbaik kami dan temukan aroma favoritmu!</p>
<a href="products.php" class="btn-primary">Mulai Belanja</a>
</div>
<div id="cart-container" class="cart-container" style="display: none;">
<div class="cart-table-header">
<div class="header-product">
<input type="checkbox" id="select-all-checkbox-header" class="cart-checkbox">
<label for="select-all-checkbox-header">Produk</label>
</div>
<div class="header-price">Harga Satuan</div>
<div class="header-quantity">Kuantitas</div>
<div class="header-total">Total Harga</div>
<div class="header-action">Aksi</div>
</div>
<div id="cart-item-list" class="cart-item-list">
</div>
<div class="cart-footer-actions">
<div class="footer-left">
<input type="checkbox" id="select-all-checkbox-footer" class="cart-checkbox">
<label for="select-all-checkbox-footer">Pilih Semua</label>
<button id="delete-selected-btn" disabled>Hapus</button>
</div>
<div class="footer-right">
<div class="total-summary">
<span>Total (<span id="total-selected-count">0</span> Produk):</span>
<span class="total-price" id="grand-total-price">Rp 0</span>
</div>
<button id="checkout-button" class="btn-checkout" disabled>Checkout</button>
</div>
</div>
</div>
</main>
</div>
<script src="js/keranjang.js"></script>
<script>
document.addEventListener('contextmenu', event => event.preventDefault());
document.onkeydown = function(e) {
if(e.key === "F12" || (e.ctrlKey && e.shiftKey && e.key === "I")) {
return false;
}
}
</script>
<?php
include_once __DIR__ . '/footer.php';
?>