-
Notifications
You must be signed in to change notification settings - Fork 1
/
cart.html
205 lines (197 loc) · 6.55 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Google Font -->
<link
href="https://fonts.googleapis.com/css?family=Bellota&display=swap"
rel="stylesheet"
/>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
/>
<link rel="stylesheet" type="text/css" href="css/contact.css" />
<title>Yum Yum!</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<!-- Nav -->
<nav
class="navbar navbar-expand-lg navbar-light"
style="background-color: #feffab;"
>
<a class="navbar-brand" href="landing_page.html"
><img src="pics/Yumma.png" class="logo" alt="Yumma"
/></a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="landing_page.html">Home </a>
</li>
<li class="nav-item">
<a class="nav-link" href="menu.html">Menu</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html"
>Contact </a
>
</li>
<li class="nav-item active">
<a class="nav-link" href="cart.html">Cart<span class="sr-only">(current)</span></a>
</li>
<!-- Search form -->
<div
class="md-form active-cyan-2 3"
style="align-content: left;"
>
<input
class="form-control"
type="text"
placeholder="Search"
aria-label="Search"
/>
</div>
</ul>
</div>
</nav>
</div>
</div>
<div class="mb-3 row">
<!-- Carousel and Feature section -->
<div class="col-md-12">
<!-- Cart Buttons -->
<div class="mt-3 buttonSection">
<button
type="button"
class="btn btn-light cart"
data-toggle="modal"
data-target="#cart"
>
Cart (<span class="total-count"></span>)
</button>
<button class="btn btn-light clear-cart">Clear Cart</button>
</div>
<h2 class="featurehead">Get in touch.</h2>
<p class="featuretext">
Here's you cart. And might we add? <br />
You've got great taste.
</p>
</div>
</div>
<div class="mb-4 row">
<!-- Defines main cart section of page -->
<div class="col-md-12">
<div class="table" tabindex="-1" role="dialog" aria-hidden="true">
<div class="table light" style="background-color: #feffab; padding: 8px" role="document">
<div class="table-content">
<div class="table-header">
<h5 class="table-title">Cart</h5>
</div>
<div class="table-body">
<table class="show-cart table">
</table>
<div class="text-center">Subtotal: R<span class="total-cart"></span> (vat excluded)</div>
</div>
<br>
<div class="shipping text-center">
<form style="display: inline">
<label for="sel1">Select shipping option:</label>
<select class="form-control" id="selectValue" onchange="shippingTotal()">
<option>--Choose option--</option>
<option>Next-day delivery: R30</option>
<option>Same-day delivery: R40</option>
<option>Pick-up: Free</option>
</select>
</form>
</div><br>
</div>
<br>
<div class="mt-3 table-footer text-center"><span id="plusShipping">Total price: R</span><br>
<div class="mt-3 table-footer-two text-center"><span id="grandTotal">Plus 15% VAT: R</span><br>
<div class="mt-3 table-footer-three">
<form onsubmit="">
<label><input type="text" name="coupon" id="in" class="coupon" title="Enter coupon" >
<span id="usernameError"></span></label>
<input type="button" class="btn-light" value="Submit" onclick="validateCoupon()" onclick="myFunction()" /></form>
<span id="message"></span><br>
<span id="err"></span><br>
<a href="#" class="mt-3 btn btn-light text-center" onclick="checkoutAlert()" >Checkout</a>
<div class="checkout-footer text-center">
</div>
</div>
</div>
</div>
</div>
<!-- Quote section -->
<div class="row">
<div class="col-md-12">
<blockquote class="blockquote">
<p class="mb-0">
One cannot think well, love well, sleep well, if one has not dined
well.
</p>
<footer class="blockquote-footer">
Virginia Woolf <cite>A Room of One's Own</cite>
</footer>
</blockquote>
</div>
</div>
<!-- Address section -->
<div class="row">
<div class="col-md-12">
<address>
<strong>Yumma Cakes</strong><br />
128 Venlor Avenue<br />Eastleigh, Johannesburg, 1609<br />
(011) 290 3697
</address>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="cart" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"
>
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content" style="background-color: #feffab;">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Cart</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<table class="show-cart table">
</table>
<div>Total price: R<span class="total-cart"></span></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light" data-dismiss="modal">Close</button>
<a href="cart.html" class="btn btn-light">Order now</a>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>