-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcart.handlebars
375 lines (299 loc) · 16 KB
/
cart.handlebars
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="./views/public/scripts/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./views/public/scripts/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./views/public/scripts/fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./views/public/scripts/fonts/themify/themify-icons.css">
<link rel="stylesheet" type="text/css" href="./views/public/scripts/fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<link rel="stylesheet" type="text/css" href="./views/public/scripts/fonts/elegant-font/html-css/style.css">
<link rel="stylesheet" type="text/css" href="./views/public/scripts/css-hamburgers/hamburgers.min.css">
<link rel="stylesheet" type="text/css" href="./views/public/css/util.css">
<link rel="stylesheet" type="text/css" href="./views/public/css/main.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,900);
</style>
</head>
<body>
<header class="header1">
<!-- Header desktop -->
<div class="container-menu-header">
<div class="wrap_header">
<!-- Logo -->
<a href="index.html" class="logo">
<img src="./public/images/logo/logo.jpg" alt="IMG-LOGO">
</a>
<div class="header-icons">
<div class="dropdown">
<img src={{userDisplayPicture}} class="header-icon1" class="dropdown-toggle" data-toggle="dropdown" alt="ICON" style="border-radius:50%; height:32px;">
<ul class="dropdown-menu">
<li>
<a href="./restaurants">Restaurants</a>
</li>
<li>
<a href="./orders">Orders</a>
</li>
<li>
<a href="./logout">Logout</a>
</li>
</ul>
</div>
<span class="linedivide1"></span>
<div class="header-wrapicon2">
<img src="./public/images/icons/cart.png" class="header-icon1 js-show-header-dropdown" alt="ICON">
<span class="header-icons-noti">{{cartQuantity}}</span>
<div class="header-cart header-dropdown">
<ul class="header-cart-wrapitem">
{{!-- cartItems notifications --}}
</ul>
<div class="header-cart-total">
{{!-- cartItems total --}}
</div>
<div class="header-cart-buttons">
<div class="header-cart-wrapbtn">
<a href="./viewCartItems" class="flex-c-m size1 bg1 bo-rad-20 hov1 s-text1 trans-0-4">
View Cart
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Header Mobile -->
<div class="wrap_header_mobile">
<!-- Logo moblie -->
<a href="index.html" class="logo-mobile">
<img src="./public/images/logo/logo.png" alt="IMG-LOGO">
</a>
<!-- Button show menu -->
<div class="btn-show-menu">
<!-- Header Icon mobile -->
<div class="header-icons-mobile">
<div class="dropdown">
<img src={{userDisplayPicture}} class="header-icon1" class="dropdown-toggle" data-toggle="dropdown" alt="ICON" style="border-radius:50%; height:32px;">
<ul class="dropdown-menu">
<li>
<a href="./restaurants">Restaurants</a>
</li>
<li>
<a href="./orders">Orders</a>
</li>
<li>
<a href="./logout">Logout</a>
</li>
</ul>
</div>
<span class="linedivide2"></span>
<div class="header-wrapicon2">
<img src="./public/images/icons/cart.png" class="header-icon1 js-show-header-dropdown" alt="ICON">
<span class="header-icons-noti cartQuantity">{{cartQuantity}}</span>
<!-- Header cart noti -->
<div class="header-cart header-dropdown">
<ul class="header-cart-wrapitem">
{{!-- mobile cart notification --}}
</ul>
<div class="header-cart-total">
{{!-- mobile total cost --}}
</div>
<div class="header-cart-buttons">
<div class="header-cart-wrapbtn">
<a href="./viewCartItems" class="flex-c-m size1 bg1 bo-rad-20 hov1 s-text1 trans-0-4">
View Cart
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<section class="cart bgwhite p-t-70 p-b-100">
<div class="container">
<!-- Cart item -->
<p style="font-size: 20px;">We accept online orders only till 7:00 pm , after 7 orders will be accepted through call(7095237775) and availability of delivery guy, we do not entertain orders post 7:30 pm either through online and offline</p>
<div class="container-table-cart pos-relative">
<div class="wrap-table-shopping-cart bgwhite">
<table class="table-shopping-cart">
<tr class="table-head">
<th class="column-1">Image</th>
<th class="column-2">Item</th>
<th class="column-3">Restaurant</th>
<th class="column-4">Cost</th>
<th class="column-5 p-l-10">Quantity</th>
<th class="column-6">Total</th>
</tr>
{{#each cartItems}}
<tr class="table-row">
<td class="column-1">
<div class="cart-img-product b-rad-4 o-f-hidden">
<img src={{itemImage}} alt="IMG-PRODUCT">
</div>
</td>
<td class="column-2">{{itemName}}</td>
<td class="column-3">{{restaurantName}}</td>
<td class="column-4">{{itemCost}}</td>
<td class="column-5">
<div class="flex-w bo5 of-hidden w-size17">
<button class="btn-num-product-down color1 flex-c-m size7 bg8 eff2">
<i class="fs-12 fa fa-minus" aria-hidden="true"></i>
</button>
<input class="size8 m-text18 t-center num-product" type="number" name="num-product1" value={{itemQuantity}}>
<button class="btn-num-product-up color1 flex-c-m size7 bg8 eff2">
<i class="fs-12 fa fa-plus" aria-hidden="true"></i>
</button>
</div>
<a href="#" class="remove-item"style="padding-right:20px; ">Remove Item </a>
</td>
{{!-- total cost of item --}}
<td class="column-6"> <span class="total-item-cost"> </span></td>
</tr>
{{/each}}
</table>
</div>
</div>
{{!-- <div class="flex-w flex-sb-m p-t-25 p-b-25 bo8 p-l-35 p-r-60 p-lr-15-sm">
<div class="flex-w flex-m w-full-sm">
<div class="size11 bo4 m-r-10">
<input class="sizefull s-text7 p-l-22 p-r-22" type="text" name="coupon-code" placeholder="Coupon Code">
</div>
<div class="size12 trans-0-4 m-t-10 m-b-10 m-r-10">
<!-- Button -->
<button class="flex-c-m sizefull bg1 bo-rad-23 hov1 s-text1 trans-0-4">
Apply coupon
</button>
</div>
</div>
<div class="size10 trans-0-4 m-t-10 m-b-10">
<!-- Button -->
<button class="flex-c-m sizefull bg1 bo-rad-23 hov1 s-text1 trans-0-4">
Update Cart
</button>
</div>
</div> --}}
<!-- Total -->
<div class="bo9 w-size18 p-l-40 p-r-40 p-t-30 p-b-38 m-t-30 m-r-0 m-l-auto p-lr-15-sm">
<h5 class="m-text20 p-b-24">
Cart Totals
</h5>
<!-- -->
<div class="flex-w flex-sb-m p-b-12">
<span class="s-text18 w-size19 w-full-sm">
Subtotal:
</span>
<span class="m-text21 w-size20 w-full-sm subtotal_cartItemsCost">
{{!-- cart items cost --}}
</span>
<span class="s-text18 w-size19 w-full-sm">
GST:
</span>
<span class="m-text21 w-size20 w-full-sm ">
5%
</span>
<span class="s-text18 w-size19 w-full-sm ">
Delivery cost
</span>
<span class="m-text21 w-size20 w-full-sm DeliveryCost">
{{!-- Total delivery cost --}}
</span>
</div>
<!-- -->
{{!-- <div class="flex-w flex-sb bo10 p-t-15 p-b-20">
<span class="s-text18 w-size19 w-full-sm">
Shipping:
</span>
<div class="w-size20 w-full-sm">
<p class="s-text8 p-b-23">
There are no shipping methods available. Please double check your address, or contact us if you need any help.
</p>
<span class="s-text19">
Calculate Shipping
</span>
<div class="rs2-select2 rs3-select2 rs4-select2 bo4 of-hidden w-size21 m-t-8 m-b-12">
<select class="selection-2" name="country">
<option>Select a country...</option>
<option>US</option>
<option>UK</option>
<option>Japan</option>
</select>
</div>
<div class="size13 bo4 m-b-12">
<input class="sizefull s-text7 p-l-15 p-r-15" type="text" name="state" placeholder="State / country">
</div>
<div class="size13 bo4 m-b-22">
<input class="sizefull s-text7 p-l-15 p-r-15" type="text" name="postcode" placeholder="Postcode / Zip">
</div>
<div class="size14 trans-0-4 m-b-10">
<!-- Button -->
<button class="flex-c-m sizefull bg1 bo-rad-23 hov1 s-text1 trans-0-4">
Update Totals
</button>
</div>
</div>
</div> --}}
<!-- -->
<div class="flex-w flex-sb-m p-t-26 p-b-30">
<span class="m-text22 w-size19 w-full-sm">
Total:
</span>
<span class="m-text21 w-size20 w-full-sm TotalItemsCost">
</span>
</div>
<div class="size15 trans-0-4">
<!-- Button -->
<button class="flex-c-m sizefull bg1 bo-rad-23 hov1 s-text1 trans-0-4" id="confirm-button">
Proceed for Payment
</button>
</div>
<p style="padding-top:20px;"> Proceed for Payment button works when you payment is more than 10 Rs</p>
<p style="padding-top:10px;"> We take orders till 7:30 pm,Incase if you order after 7:30 pm msessge to 7095237775 we will refund the money without delivery cost and gst, in three business days</p>
</div>
</div>
</section>
<footer class="bg6 p-t-45 p-b-43 p-l-45 p-r-45">
<div class="flex-w p-b-90">
<div class="w-size6 p-t-30 p-l-15 p-r-15 respon3">
<h4 class="s-text12 p-b-30">
</h4>
<div>
<p class="s-text7 w-size27">
Any issuses? Let us know ph.no 7095237775
</p>
<div class="flex-m p-t-30">
<a href="#" class="fs-18 color1 p-r-20 fa fa-facebook"></a>
<a href="#" class="fs-18 color1 p-r-20 fa fa-instagram"></a>
<a href="#" class="fs-18 color1 p-r-20 fa fa-pinterest-p"></a>
<a href="#" class="fs-18 color1 p-r-20 fa fa-snapchat-ghost"></a>
<a href="#" class="fs-18 color1 p-r-20 fa fa-youtube-play"></a>
</div>
</div>
</div>
<div class="w-size8 p-t-30 p-l-15 p-r-15 respon3">
<h4 class="s-text12 p-b-30">
Enquiries
</h4>
<form>
<div class="effect1 w-size9">
<input class="s-text7 bg6 w-full p-b-5" type="text" name="email" placeholder="email@example.com">
<span class="effect1-line"></span>
</div>
<div class="w-size2 p-t-20">
<button class="flex-c-m size2 bg4 bo-rad-23 hov1 m-text3 trans-0-4">
Send
</button>
</div>
</form>
</div>
</div>
</footer>
<script type="text/javascript" src="./views/public/scripts/jquery/dist/jquery.min.js"> </script>
<script type="text/javascript" src="./views/public/scripts/sweetalert/sweetalert.min.js"> </script>
<script type="text/javascript" src="./views/public/scripts/custom/cart.js"></script>
<script type="text/javascript" src="./views/public/scripts/custom/cartFunctions.js"></script>
</body>
</html>