-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcart.html
More file actions
71 lines (63 loc) · 2.85 KB
/
Copy pathcart.html
File metadata and controls
71 lines (63 loc) · 2.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shopping Cart</title>
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="cart.css">
</head>
<body>
<!-- Header -->
<header class="bg-success text-white text-center py-3">
<h1>My Cart</h1>
</header>
<!-- Navigation Bar -->
<nav class="side-nav bg-dark">
<ul class="d-flex justify-content-around list-unstyled p-2">
<li><a href="login.html"><img src="src/img/login.png" alt="Login" class="img-fluid" width="40"></a></li>
<li><a href="index.html"><img src="src/img/home.png" alt="Home" class="img-fluid" width="40"></a></li>
<li><a href="product.html"><img src="src/img/products.png" alt="Products" class="img-fluid" width="40"></a></li>
<li><a href="userProfile.html"><img src="src/img/profile.png" alt="Profile" class="img-fluid" width="40"></a></li>
<li><a href="contacts.html"><img src="src/img/contact and support.png" alt="Contact" class="img-fluid" width="40"></a></li>
</ul>
</nav>
<!-- Main Content -->
<main class="container my-5">
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead class="thead-dark">
<tr>
<th>Product Name</th>
<th>Price (₹)</th>
<th>Quantity</th>
<th>Total (₹)</th>
<th>Action</th>
</tr>
</thead>
<tbody id="cart-items">
<!-- Cart items will be populated here dynamically -->
<tr id="cart-message">
<!-- Message for empty cart will appear here -->
</tr>
</tbody>
</table>
</div>
<div class="cart-actions text-center mt-4">
<button class="btn btn-secondary" onclick="clearCart()">Clear Cart</button>
<button class="btn btn-primary" onclick="proceedToCheckout()">Proceed to Checkout</button>
</div>
</main>
<!-- Footer -->
<footer class="bg-dark text-white text-center py-3">
<p>© 2024 AgriBazaarConnect. All rights reserved.</p>
</footer>
<!-- Bootstrap JS and dependencies -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="cart.js"></script>
</body>
</html>