-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcart.php
More file actions
514 lines (500 loc) · 36.3 KB
/
cart.php
File metadata and controls
514 lines (500 loc) · 36.3 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
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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
<?php include('db.php'); require("cart-logic.php"); require 'messages.php';
?>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-174043292-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-174043292-1');
</script> -->
<meta charset="utf-8">
<meta name="description" content="Gemasglam Home is a Fashion clothing and accessories ladies’ boutique. We take pride in supplying great quality items to all our customers at pocket friendly prices. We are located in Kampala Uganda.">
<meta name="keywords" content="boutique, Uganda, Kampala, women clothes, bags, shoes, beauty products, blazers, skirts, Namugema Bridget, gemasglam GemasGlamHome, quality, accessories, ladies Fashion">
<meta name="author" content="Tumuhimbise Usher Godwin">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GemasGlamHome | Shopping Cart</title>
<link rel="icon" href="imgs/gemasglam.ico">
<link rel="stylesheet" type="text/css" href="css/custom.css"/>
<link rel="stylesheet" href="css/header.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.1.0/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script defer src="js/jquery.js"></script>
<script src="live.js"></script>
<script>$(document).ready(function(){$("#proceedMobile").on("click", function(){let size = $(".size").val();if(size == ""){ let conf = confirm("You Did Not Select the item size! Do you wish to continue without a variation?");if(!conf){return false; }}}); $("#proceedDesktop").on("click", function(){let size = $("#size").val();if(size == ""){let conf = confirm("You Did Not Select the item size! Do you wish to continue without a variation?");if(!conf){ return false; }}});});</script>
<script type="text/javascript">$(document).ready(function(){$('[data-toggle=tooltip]').tooltip();})</script>
<style type="text/css">/* Extra small devices (phones, 600px and down) */@media only screen and (max-width: 600px) {#desktop{display: none}}/* Small devices (portrait tablets and large phones, 600px and up) */@media only screen and (min-width: 600px) { #desktop{display: none}}/* Medium devices (landscape tablets, 768px and up) */@media only screen and (min-width: 768px) {#desktop{display: block} #mobile{display: none}}/* Large devices (laptops/desktops, 992px and up) */ @media only screen and (min-width: 992px) {#mobile{display: none} #desktop{display: block}}/* Extra large devices (large laptops and desktops, 1200px and up) */@media only screen and (min-width: 1200px) {#mobile{display: none} #desktop{display: block}}</style>
<style type="text/css">#top_nav{background-color: rgba(0,0,0,1);} #top_nav a{color: aliceblue} #top_nav a:hover{text-decoration-color: orange; text-decoration: underline} #mobile_nav{background-color: rgba(0,0,0,1);} #mobile_nav a{color: aliceblue} #mobile_nav a:hover{text-decoration-color: orange; text-decoration: underline} #card{width: 350px;} #cart_count{border: 2px solid orange; border-radius: 50%; background-color: orange; color: white; position: absolute;
width: 18px;
height: 13px;
padding-bottom: 20px;
padding-right: 20px; top: 5px; margin-left: 10px; font-size: 15px; text-align: center;} #dropdown-link a{color: black} #mobile_nav{width: 100%} #card-call a:hover{text-decoration: none}.fa-phone-alt{background-color: orange; color: aliceblue; font-size: 20pt; border: 2px solid orange; border-radius: 50%;} #card-call a{font-weight: 600} .fa-money-check-alt{font-size: 20pt; background-color: orange; color: aliceblue; border: 2px solid orange; border-radius: 5px;} .fa-check-circle{background-color: orange; color: green; font-size: 20pt;border: 2px solid orange; border-radius: 50%;} #dropdown-link a:hover{text-decoration: none}
#tablets_nav a{color: aliceblue} #tablets_nav a:hover{text-decoration-color: orange; text-decoration: underline} #tablets_nav{background-color: rgba(0,0,0,1);}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) { #top_nav{display: none}#desktop_view{display: none} #tablets_nav{display: none} }
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) { #top_nav{display: none}#desktop_view{display: none} #tablets_nav{display: none} }
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {#tablets_nav{display: inline-flex; width: 100%} #mobile_nav{display: none}#desktop_view{display: none}#top_nav{display: none} }
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {#tablets_nav{display: none} #mobile_nav{display: none}#top_nav{display: inline-flex; width: 100%}#desktop_view{display: inline-flex} #mobile_view{display: none} }
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {#mobile_nav{display: none} #top_nav{display: inline-flex; width: 100%} #desktop_view{display: inline-flex} #mobile_view{display: none} #tablets_nav{display: none} }.description:hover{cursor: pointer}.card-size{max-width: 250px;} #login{color: orange} #dropdown2-link a{color: orange} #circle{margin-left: 20px;}
#mobileSearch{border-radius: 50px; border-top-right-radius: 1px; border-bottom-right-radius: 1px;}</style>
</head>
<body> <a name="top"></a>
<!-- navigation bar for desktop -->
<nav class="navbar navbar-expand-md sticky-top" id="top_nav"><a href="index.php" class="navbar-brand"><img src="imgs/gemasglam.jpg" height="50" width="100" style="border-radius: 5px;"></a><div class="collapse navbar-collapse justify-content-between" id="navbarCollapse"><div class="navbar-nav"><a href="about.php" class="nav-item nav-link"><h5>About Us</h5></a></div> <div class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle"
data-toggle="dropdown"><h5>Categories</h5></a> <div class="dropdown-menu" id="dropdown-link"> <a href="accessories.php"
class="dropdown-item"><img src="imgs/watch.PNG" width="40" height="40" style="border-radius: 50%"> Accessories</a> <a
href="blazers.php" class="dropdown-item"><img src="imgs/suit.jpg" width="40" height="40" style="border-radius: 50%">
Blazers</a> <a href="bags.php" class="dropdown-item"><img src="imgs/bag.PNG" width="40" height="40" style="border-radius:
50%">Bags</a> <a href="shoes.php" class="dropdown-item"> <img src="imgs/shoeswomen.PNG" width="40" height="40" style="border-radius: 50%">Shoes</a>
<a href="skirts.php" class="dropdown-item"> <img src="imgs/skirt.PNG" width="40" height="40" style="border-radius: 50%">
Skirts</a> <a href="trousers.php" class="dropdown-item"> <img src="imgs/trouser.PNG" width="40" height="40"
style="border-radius: 50%">Trousers</a> <a href="tops.php" class="dropdown-item"><img src="imgs/top.PNG" width="40"
height="40" style="border-radius: 50%"> Tops/Brouse</a> <a href="dresses.php" class="dropdown-item"> <img
src="imgs/dress.png" width="40" height="40" style="border-radius: 50%"> Dresses</a> <a href="beauty-products.php"
class="dropdown-item"> <img src="imgs/beauty.PNG" width="40" height="40" style="border-radius: 50%">Beauty Products</a>
</div> </div> <form action="catalog.php" method="get" class="form-inline"><div class="input-group"><div class="search-box"> <input type="search" class="form-control here" placeholder="Search for products" id="search" name="term" style="width: 450" autocomplete="off" required="required"/> <div class="result"></div></div><div class="input-group-append"><button type="submit" class="btn btn-light"><i class="fa fa-search text-primary"></i></button></div></div></form> <div class="nav-item dropdown"><a href="#" class="dropdown-toggle text-light" data-toggle="dropdown"><h5><i class="fas fa-user"></i> Login</h5></a><div class="dropdown-menu"> <a href="user/user-login.php" class="dropdown-item"><button class="btn btn-warning btn-sm" style="width: 100%">LOGIN</button></a> <hr><a href="user/Create-Account.php" class="dropdown-item"><button class="btn btn-outline-warning btn-sm">CREATE ACCOUNT</button></a></div></div> <a href="cart.php"><h4><i class="fas fa-shopping-cart text-light"></i></h4><span id="cart_count"> <?php echo $cart_count; ?></span></a> <a href="tel:+256709655944" class="btn btn-outline-warning btn-sm" id="help">HELP?</a> </div></nav>
<!-- navigation bar for potrait tablets -->
<nav class="navbar navbar-expand-md sticky-top" id="tablets_nav"><a href="index.php" class="navbar-brand"><img src="imgs/gemasglam.jpg" height="50" width="100" style="border-radius: 5px;"></a><div class="collapse navbar-collapse justify-content-between" id="navbarCollapse"><div class="navbar-nav"><a href="about.php" class="nav-item nav-link"><h5>About Us</h5></a></div> <div class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle"
data-toggle="dropdown"><h5>Categories</h5></a> <div class="dropdown-menu" id="dropdown2-link"> <a href="accessories.php"
class="dropdown-item"><img src="imgs/watch.PNG" width="40" height="40" style="border-radius: 50%"> Accessories</a> <a
href="blazers.php" class="dropdown-item"><img src="imgs/suit.jpg" width="40" height="40" style="border-radius: 50%">
Blazers</a> <a href="bags.php" class="dropdown-item"><img src="imgs/bag.PNG" width="40" height="40" style="border-radius:
50%">Bags</a> <a href="shoes.php" class="dropdown-item"> <img src="imgs/shoeswomen.PNG" width="40" height="40" style="border-radius: 50%">Shoes</a>
<a href="skirts.php" class="dropdown-item"> <img src="imgs/skirt.PNG" width="40" height="40" style="border-radius: 50%">
Skirts</a> <a href="trousers.php" class="dropdown-item"> <img src="imgs/trouser.PNG" width="40" height="40"
style="border-radius: 50%">Trousers</a> <a href="tops.php" class="dropdown-item"><img src="imgs/top.PNG" width="40"
height="40" style="border-radius: 50%"> Tops/Brouse</a> <a href="dresses.php" class="dropdown-item"> <img
src="imgs/dress.png" width="40" height="40" style="border-radius: 50%"> Dresses</a> <a href="beauty-products.php"
class="dropdown-item"> <img src="imgs/beauty.PNG" width="40" height="40" style="border-radius: 50%">Beauty Products</a>
</div> </div> <form action="catalog.php" method="get" class="form-inline"><div class="input-group"><div class="search-box"> <input type="search" class="form-control here" placeholder="Search for products" id="search" name="term" style="width: 200" autocomplete="off" required="required"/> <div class="result"></div></div><div class="input-group-append"><button type="submit" class="btn btn-light"><i class="fa fa-search text-primary"></i></button></div></div></form> <div class="nav-item dropdown"><a href="#" class="dropdown-toggle text-light" data-toggle="dropdown"><h5 id="login"><i class="fas fa-user"></i> Login</h5></a><div class="dropdown-menu"> <a href="user/user-login.php" class="dropdown-item"><button class="btn btn-warning btn-sm" style="width: 100%">LOGIN</button></a> <hr><a href="user/Create-Account.php" class="dropdown-item"><button class="btn btn-outline-warning btn-sm">CREATE ACCOUNT</button></a></div></div> <a href="cart.php"><span id="cart_count"> <?php echo $cart_count; ?></span><h4><i class="fas fa-shopping-cart text-light"></i></h4></a> <a href="tel:+256709655944" class="btn btn-outline-warning btn-sm" id="help">HELP?</a> </div></nav> <!-- end of -->
<!--navigation bar for mobile -->
<nav class="navbar navbar-expand-md sticky-top" id="mobile_nav"><a href="#" class="open"><h3><i class="fa fa-bars text-light" id="bar_icon"></i></h3></a><a href="index.php" class="navbar-brand"><img src="imgs/gemasglam.jpg" height="50" width="100" style="border-radius: 5px;"></a><a href="user/user-login.php"><h3><i class="fas fa-user-circle text-light"></i> </h3></a><a href="cart.php"><h4><i class="fas fa-shopping-cart text-light"></i></h4><small id="cart_count"> <?php echo $cart_count; ?></small></a> <div class="mobileSearch">
<form action="catalog.php" method="get" class="form-inline"> <div class="input-group">
<div
class="search-box"> <input type="search" class="form-control here" placeholder="Search for products"
id="mobileSearch" name="term" style="width: 250" autocomplete="off" required="required"/> <div class="result"></div> </div>
<div class="input-group-append"> <button type="submit" class="btn btn-light"><i class="fa fa-search
text-primary"></i></button> </div> </div> </form> </div><div class="collapse navbar-collapse justify-content-between" id="navbarCollapse"><div class="navbar-nav"></div> </div></nav>
<!-- side bar -->
<div class="container-fluid"><div id="hidden" class="bg-light"> <nav class="sidebar bg-light" id="sidebar"><div class="nav-item"><div class="jumbotron text-center py-1"><h2 class="text-warning">Cart</h2></div> <div class="card"><div class="card-header py-1"><h4>Categories</h4></div> <div class="card-body"><ul><li><a href="blazers.php" class="dropdown-item"> <img src="imgs/suit.jpg" width="40" height="40" style="border-radius: 50%"> Blazers</a></li> <li><a href="bags.php" class="dropdown-item"> <img src="imgs/watch.PNG" width="40" height="40" style="border-radius: 50%">Accessories</a><li><li><a href="shoes.php" class="dropdown-item"> <img src="imgs/shoeswomen.PNG" width="40" height="40" style="border-radius: 50%">Shoes</a></li><li><a href="skirts.php" class="dropdown-item"> <img src="imgs/skirt.PNG" width="40" height="40" style="border-radius: 50%"> Skirts</a></li><li> <a href="trousers" class="dropdown-item"> <img src="imgs/trouser.PNG" width="40" height="40" style="border-radius: 50%">Trousers</a></li><li> <a href="tops.php" class="dropdown-item"><img src="imgs/top.PNG" width="40" height="40" style="border-radius: 50%"> Tops/Brouse</a></li><li> <a href="dresses.php" class="dropdown-item"> <img src="imgs/dress.PNG" width="40" height="40" style="border-radius: 50%"> Dresses</a></li><li><a href="beauty-products.php" class="dropdown-item"> <img src="imgs/beauty.PNG" width="40" height="40" style="border-radius: 50%">Beauty Products</a></li> </ul></div> </div></div></nav></div></div>
<div class="container-fluid">
<div class="card" id="desktop">
<div class="card-body">
<div class="row">
<div class="col-md-6 col-lg-6">
<h4 class="text-success text-center">Your Shopping Cart <span class="text-muted">(<?php echo $cart_count." ".$word; ?>)</span></h4>
</div>
<div class="col-md-6 col-lg-6">
<?php echo $cart_status; ?>
</div>
</div>
<?php
$get = "select * from cart where user_agent = '$user_agent'";
$ex = mysqli_query($con, $get);
if(mysqli_num_rows($ex)>0){
echo " <div class='table-responsive'>
<table class='table table-dark'>
<tr>
<th></th>
<th>ITEM NAME</th>
<th>QUANTITY</th>
<th>ITEM VARIATION</th>
<th>ITEM UNIT PRICE</th>
<th>ITEM COST</th>
</tr>";
while($product = mysqli_fetch_assoc($ex)){
?>
<tr>
<td><img src='<?php echo $product["image"]; ?>' width="50" height="40" /></td>
<td><?php echo $product["name"]; ?><br />
<form method='post' action='' onsubmit="return confirm('Delete Item?');">
<input type='hidden' name='code' value="<?php echo $product["code"]; ?>" />
<input type='hidden' name='action' value="remove" />
<button type='submit' class='btn btn-danger btn-sm'><i class="fa fa-trash"></i> Remove</button>
</form>
</td>
<td> <form method='post' action=''>
<input type='hidden' name='code' value="<?php echo $product["code"]; ?>" />
<input type='hidden' name='action' value="change" />
<select name="quantity" onchange="this.form.submit();" class="custom-select"><option> <?php echo $product['quantity']; ?> </option>
<option>1</option>
<option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>7</option> <option>8</option><option>9</option> <option>10</option>
</select> </form>
</td>
<input type="hidden" value="<?php echo $product['size']; ?>" id="size">
<td> <form method='post' action=''>
<input type='hidden' name='code' value="<?php echo $product["code"]; ?>" />
<input type='hidden' name='action' value="change_size" />
<select name="size" onchange="this.form.submit();" class="custom-select"><option> <?php echo $product['size']; ?> </option>
<option>XS</option>
<option>S</option>
<option>M</option> <option>L</option> <option>XL</option> <option>XXL</option>
</select> </form>
</td>
<td><?php echo "uxg ".number_format($product['price']); ?></td>
<td><?php echo "uxg ".number_format($product['it_total_price']); ?></td>
</tr>
<?php }?>
<tr>
<td><a href="index.php" class="btn btn-primary btn-sm">Continue Shopping</a></td>
<td colspan="2"><em>Shippment Fee Not yet Included</em></td>
<td colspan="4" align="right">
<strong>TOTAL COST: <?php echo $currency.number_format($sum); ?></strong>
<a href="user/customer-order.php" class="btn btn-primary btn-sm" id="proceedDesktop">PROCEED TO CHECKOUT</a>
</td>
</tr>
<?php echo "</table>"; ?>
</div>
<?php
}else{
echo "
<div class='container'>
<div class='row justify-content-center'>
<div class='col-md-6 col-lg-6'>
<div class='card bg-light' style='width: 200'>
<div class='rounded-circle' id='circle'>
<h5 class='text-danger' id='empty'><i class='fa fa-shopping-cart'><small>0</small></i> </h5> </div>
<div class='card-body text-center'>
<h4 class='text-info'>Your Cart is Empty!!</h4>
<a href='HOME' class='btn btn-warning btn-sm'>START SHIPPING</a>
</div>
</div>
</div>
</div>
</div>
";
}
?>
</div>
</div>
<!-- mobile phone and tablets cart-->
<div class="container-fluid">
<div class="card" id="mobile">
<?php echo $cart_status; ?>
<h5 class="card-header text-light bg-dark fixed">Your Shopping Cart <span class="text-muted">(<?php echo $cart_count." ".$word; ?>)</span></h5>
<div class="card-body">
<div class="row justify-content-center">
<div class="col-md-12 col-sm-12">
<div class="card">
<?php
$get = "select * from cart where user_agent = '$user_agent'";
$ex = mysqli_query($con, $get);
if(mysqli_num_rows($ex)>0){
while($product = mysqli_fetch_assoc($ex)){
?>
<div class="card-body">
<input type="hidden" value="<?php echo $product['size']; ?>" class="size">
<div align="center">
<img src='<?php echo $product["image"]; ?>' width="200" height="200" /><br>
<?php echo $product["name"]; ?>
<form method='post' action='' onsubmit="return confirm('Delete Item?');">
<input type='hidden' name='code' value="<?php echo $product["code"]; ?>" />
<input type='hidden' name='action' value="remove" />
<button type='submit' class='btn btn-danger btn-sm'><i class="fa fa-trash"></i> Remove</button>
</form> </div> <br>
<form method='post' action=''>
<input type='hidden' name='code' value="<?php echo $product["code"]; ?>" />
<input type='hidden' name='action' value="change" />
<div class="input-group"><label class="font-weight-bold">ITEM QUANTITY</label>
<select name="quantity" onchange="this.form.submit();" class="custom-select"><option> <?php echo $product['quantity']; ?> </option>
<option>1</option>
<option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>7</option> <option>8</option><option>9</option> <option>10</option>
</select></div> </form>
<form method='post' action=''>
<input type='hidden' name='code' value="<?php echo $product["code"]; ?>" />
<input type='hidden' name='action' value="change_size" />
<div class="input-group"><label class="font-weight-bold">ITEM VARIATION</label>
<select name="size" onchange="this.form.submit();" class="custom-select"><option> <?php echo $product['size']; ?> </option>
<option>XS</option>
<option>S</option>
<option>M</option> <option>L</option> <option>XL</option> <option>XXL</option>
</select></div> </form>
<div class="input-group"><label class="font-weight-bold">ITEM PRICE:</label>
<?php echo "UGX: ".number_format($product['price']); ?>
</div>
<div class="input-group"><label class="font-weight-bold">ITEM TOTAL COST:</label>
<?php echo "UGX: ".number_format($product['it_total_price']); ?>
</div>
</div>
<?php } ?>
<div class="card-footer"> <div class="input-group"><label class="font-weight-bold">TOTAL COST:</label>
<?php echo $currency.number_format($sum); ?> <small class="text-muted">Shippment Fee Not yet Included</small>
</div>
<div class="input-group">
<div class="card mt-2" style="border: none;">
<div class="card-body">
<a href="index.php" class="btn btn-primary btn-sm"><i class="fas fa-arrow-left"></i> Continue Shopping</a>
</div>
</div> <div class="card mt-2" style="border: none;">
<div class="card-body">
<a href="user/customer-order.php" class="btn btn-success btn-sm" id="proceedMobile">PROCEED TO CHECKOUT <i class="fas fa-arrow-right"></i></a>
</div>
</div></div> </div>
<?php }else{
echo "
<div class='container'>
<div class='row justify-content-center'>
<div class='col-md-6 col-lg-6'>
<div class='card bg-light'style='width: 200'>
<div class='rounded-circle' id='circle'>
<h1 class='text-danger' id='empty'><i class='fa fa-shopping-cart'><small>0</small></i> </h1> </div>
<div class='card-body text-center'>
<h4 class='text-info'>Your Cart is Empty!!</h4>
<a href='HOME.php' class='btn btn-warning btn-sm'>START SHIPPING</a>
</div>
</div>
</div>
</div>
</div>
";
} mysqli_close($con);?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=" bg-secondary">
<div class="card mt-3" style="border: none;">
<div class="card-body bg-secondary">
<div class="row">
<div class="col-md-6 col-lg-6">
<div class="card mt-3" id="message_box">
<div class="card-body" id="message_body">
<?php echo $message_status; ?>
<h4 class="text-secondary" style="text-decoration: underline;">Contact Us</h4>
<form action="" method="post">
<div class="form-group">
<input type="email" name="email" class="form-control" placeholder="type your email here" autocomplete="off" required="required">
<small class="text-danger"><?php echo $email_error; ?></small>
</div>
<div class="form-group">
<input type="text" name="subject" class="form-control" placeholder="type the message subject here" required="required">
<small class="text-danger"><?php echo $subject_error; ?></small>
</div>
<div class="form-group">
<textarea class="form-control" name="message" placeholder="type your message here" cols="5" rows="5" id="textarea"></textarea>
<small class="text-danger"><?php echo $message_error; ?></small>
</div>
<div class="form-group">
<button type="submit" class="btn btn-warning" name="send">SEND MESSAGE</button>
</div>
</form>
<small class="text-muted">You information is not shared with anyone!</small>
</div>
</div>
</div>
<div class="col-md-6 col-lg-6">
<div class="card mt-3">
<div class="card-body">
<h4 class="text-secondary" style="text-decoration: underline;">Working Days And Hours</h4>
<div class="row">
<p class="col-lg-6 col-md-6 text-muted">Sunday</p>
<p class="col-md-6 col-lg-6 text-primary">08:00 AM - 03:00 PM</p>
</div>
<div class="row">
<p class="col-lg-6 col-md-6 text-muted">Monday</p>
<p class="col-md-6 col-lg-6 text-primary">08:00 AM - 06:00 PM</p>
</div>
<div class="row">
<p class="col-lg-6 col-md-6 text-muted">Tuesday</p>
<p class="col-md-6 col-lg-6 text-primary">08:00 AM - 06:00 PM</p>
</div>
<div class="row">
<p class="col-lg-6 col-md-6 text-muted">Wednesday</p>
<p class="col-md-6 col-lg-6 text-primary">08:00 AM - 06:00 PM</p>
</div>
<div class="row">
<p class="col-lg-6 col-md-6 text-muted">Thursday</p>
<p class="col-md-6 col-lg-6 text-primary">08:00 AM - 06:00 PM</p>
</div>
<div class="row">
<p class="col-lg-6 col-md-6 text-muted">Friday</p>
<p class="col-md-6 col-lg-6 text-primary">08:00 AM - 06:00 PM</p>
</div>
<div class="row">
<p class="col-lg-6 col-md-6 text-muted">Satarday</p>
<p class="col-md-6 col-lg-6 text-primary">08:00 AM - 06:00 PM</p>
</div>
<br/><small class="text-muted">The above are store hours. GemasglamHome works 24/7</small> <br/>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-lg-6">
<div class="card mt-3" style="height: 300px; overflow: scroll;">
<a href="#myModal" class="btn btn-sm btn-warning sticky-top" data-toggle="modal">POST YOUR REVIEW</a>
<div class="card-body">
<h4 class="text-muted">Customer Reviews</h4>
<?php foreach ($reviews as $key => $value):
?>
<div class="input-group">
<h1><i class="fas fa-user-circle text-primary"></i></h1>
<b class="text-secondary"> <?php echo $value['name'];?></b>
</div>
<div class="">
<b class="text-muted"> <?php echo $value['comment'];?></b>
</div>
<?php endforeach?>
</div>
</div>
</div>
<div class="col-md-6 col-lg-6">
<div class="card mt-3">
<div class="card-body">
<h4 class="text-muted">Contact Information</h4>
<div>
<p style="font-size: 20pt;"> <a href="tel:+256709655944"> <i class="fas fa-phone-square-alt"></i> +256709655944 </a></p>
<p style="font-size: 20pt;"><a href ="mailto:wecare@gemasglam.com"><i class="fas fa-envelope"></i> wecare@gemasglam.com</a></p>
<p style="font-size: 20pt;" class="text-muted"><a href="https://wa.me/+256709655944" style="font-size: 30pt;"><i class="fab fa-whatsapp-square text-success"></i></a><small>Live Chat</small></p><br><br>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 col-lg-4">
<div class="card bg-secondary mt-3" style="border: none;">
<div class="card-body">
<h6 class="text-light" style="text-decoration: underline;">LET US HELP YOU </h6>
<p class="text-muted">
<a href="tel:+256709655944" class="text-light">Help Center <img src="imgs/call-center.PNG" width="70" height="70" style="border-radius: 50%;"></a>
</p>
<p>
<a href="how-to-buy.php" class="text-light">How to buy on Gemasglam</a>
</p>
<p>
<a href="#paymentmethod" class="text-light" data-toggle="modal">Payment Methods</a>
</p>
<p>
<a href="#delivery-timeline" class="text-light" data-toggle="modal">Delivery Timeline</a>
</p>
<p><a href="faqs.php" class="text-light">FAQs</a></p>
</div>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="card bg-secondary mt-3" style="border: none;">
<div class="card-body">
<h6 class="text-light" style="text-decoration: underline;">About GemasglamHome</h6>
<p class="text-muted">
<a href="about.php" class="text-light">About Us</a>
</p>
<p>
<a href="terms&conditions.php" class="text-light">Terms & Coditions</a>
</p>
<p>
<a href="privacy.php" class="text-light">Privacy Policy</a>
</p>
<p>
<a href="shipping-policy.php" class="text-light">Shipping Policy</a>
</p>
<p>
<a href="return-policy.php" class="text-light">Return Policy</a>
</p>
</div>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="card bg-secondary mt-3" style="border: none;">
<div class="card-body">
<h6 class="text-light" style="text-decoration: underline;">FOLLOW US </h6>
<p class="text-muted">
<a href="https://www.facebook.com/gemasglamhome/" class="text-light" style="font-size: 18pt;"><i class="fab fa-facebook"></i> </a>
</p>
<p>
<a href="https://www.instagram.com/invites/contact/?i=15weuew9rnlhg&utm_content=i1du1qd" class="text-light" style="font-size: 18pt;"><i class="fab fa-instagram"></i></a>
</p>
<p>
<a href="" class="text-light"><i class="fab fa-twitter"></i></a>
</p>
<p>
<a href="https://www.linkedin.com/company/gemas-glam-home" class="text-light" style="font-size: 18pt;"><i class="fab fa-linkedin"></i></a>
</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-lg-12 d-flex justify-content-center">
<p class="text-light">© GemasglamHome <?php echo date("Y"); ?> All Rights Reserved</p>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" id="myModal">
<div class="modal-dialog">
<div class="modal-content" id="message_body">
<div class="modal-header">
<h5 class="modal-title text-muted">CUSTOMER REVIEW</h5>
</div>
<div class="modal-body">
<?php echo $review_status;?>
<p class="text-secondary">Hello, Please share your review with us. <br>
<small class="text-success">Thank you for choosing GemasGlamHome</small> <i class="fa fa-heart text-danger"></i></p>
</div>
<form method="POST" action="">
<div class="form-group">
<input type="text" name="reviewer" placeholder="enter your name" class="form-control" required="required"> <span><?php echo $name_error; ?></span>
</div>
<textarea class="form-control" placeholder="type your review here" required="required" cols="10" rows="5" name="comment" id="textarea"></textarea> <span><?php echo $comment_error; ?></span>
<div class="row">
<div class="col-lg-6 col-md-6 text-center">
<button type="submit" class="btn btn-warning btn-sm" name="review">POST REVIEW <i class="fas fa-arrow-circle-up"></i></button>
</div>
</div>
</form>
<div class="modal-footer justify-content-center">
<button type="button" class="btn btn-secondary" data-dismiss="modal">REVIEW LATER</button>
</div>
</div>
</div>
</div>
<!-- Modal HTML FOR DELIVERY TIMELINE -->
<div id="delivery-timeline" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Delivery Timeline Notification <i class="fas fa-bell"></i></h5>
</div>
<div class="modal-body">
<h5 class="text-muted">Delivery dates for all clothing items and other items ordered through the website are typically the same day or 1-2days for stock items. We can 'RUSH' orders if you need a quick delivery. We are fairly flexible and hope to accommodate as many orders as possible. To rush an order please contact us on WhatsApp <a href="https://wa.me/+256709655944" style="font-size: 30pt;"><i class="fab fa-whatsapp-square text-success"></i></a><small>click to whatsapp</small> or give a phone call <a href="tel:+256709655944" style="font-size: 30pt;"><i class="fas fa-phone"></i></a><small>click to call</small><br>Thank You for choosing Gemasglam Home <i class="fas fa-heart text-danger"></i></h5>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<!-- Modal HTML FOR PAYMENT METHODS -->
<div id="paymentmethod" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Payment Method Notification <i class="fas fa-bell"></i></h5>
</div>
<div class="modal-body">
<h5 class="text-muted">We apparently accept <b>Cash on Develivery</b> and <b>Airtel Money</b> payments</h5> <h5 class="text-muted">In case you choose Mobile Money, please follow the steps that will guide you to complete your payment.<br>Thank You for choosing Gemasglam Home <i class="fas fa-heart text-danger"></i></h5>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="js/purejs.js"></script>
</body>
</html>