-
Notifications
You must be signed in to change notification settings - Fork 1
/
cart.html
115 lines (112 loc) · 6.18 KB
/
cart.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
<!DOCTYPE html>
<html>
<head>
<title>Cart Page</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow" />
<meta name="keywords" content="Jquery cart example, javascript cart example, ecommerce cart jquery, cart" />
<!-- boostrap cdn -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<!-- jquery ui cdn -->
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" type="text/css" media="all" />
<!-- custom css -->
<link rel="stylesheet" type="text/css" href="custom.css">
</head>
<body>
<!-- cart-page-header starts here-->
<header role="cart-page-header starts here">
<nav class="navbar navbar-light bg-light justify-content-center">
<span class="navbar-text h3">
Cart Page
</span>
</nav>
</header>
<!-- cart-page-header ends here -->
<!-- cart main starts here -->
<section role="main">
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col-sm-8" style="height: 500px; overflow-y: scroll;">
<!-- atleast one item alert -->
<div class="alert alert-warning alert-dismissible fade show d-none" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
Please Order Atleast One Item
</div>
<!-- each item alert -->
<!-- <div class="alert alert-warning alert-dismissible d-none" id="item_each" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<span id="item_remove"></span>
</div> -->
<h2>< Order Summary</h2>
<hr/>
<table class="table table-bordered table-responsive item_length">
<thead>
<tr>
<th>Product</th>
<th>Item</th>
<th>Quantity</th>
<th>Price</th>
<th>Action</th>
</tr>
</thead>
<tbody id="items_table"></tbody>
</table>
</div>
<div class="col-sm-4">
<hr class="mt-5" />
<div class="card">
<div class="card-body">
<div class="card-title h2">Total Amount</div>
<table class="table table-responsive table-bordered">
<thead>
<tr>
<th class="itemsCount">Items</th>
<th>Discount</th>
<th>Type Discount</th>
</tr>
</thead>
<tbody id="total_amt">
<tr>
<td>
<input type="text" class="form-control" id="grandTotal" disabled placeholder="0,00" autocomplete="off" />
</td>
<td>
<input type="text" class="form-control" name="discount" id="discount_items" disabled placeholder="0,00">
</td>
<td>
<input type="text" class="form-control" name="type_discount" id="type_discount" disabled placeholder="0,00">
</td>
</tr>
</tbody>
</table>
</div>
<div class="card-footer">
<h6>Order Total <span class="float-right"><input type="text" class="form-control" name="total" id="total" disabled></span></h6>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- cart main ends here -->
<!-- Jquery cdn -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<!-- popper cdn -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<!-- bootstrap cdn -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
<!-- jquery 3.2.1 cdn -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- jquery ui cdn -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<!-- custom js -->
<script src="custom.js"></script>
</body>
</html>