-
Notifications
You must be signed in to change notification settings - Fork 0
/
product-details.php
687 lines (541 loc) · 26.5 KB
/
product-details.php
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
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(isset($_GET['action']) && $_GET['action']=="add"){
$id=intval($_GET['id']);
if(isset($_SESSION['cart'][$id])){
$_SESSION['cart'][$id]['quantity']++;
}else{
$sql_p="SELECT * FROM products WHERE id={$id}";
$query_p=mysqli_query($con,$sql_p);
if(mysqli_num_rows($query_p)!=0){
$row_p=mysqli_fetch_array($query_p);
$_SESSION['cart'][$row_p['id']]=array("quantity" => 1, "price" => $row_p['productPrice']);
echo "<script>alert('Product has been added to the cart')</script>";
echo "<script type='text/javascript'> document.location ='my-cart.php'; </script>";
}else{
$message="Product ID is invalid";
}
}
}
$pid=intval($_GET['pid']);
if(isset($_GET['pid']) && $_GET['action']=="wishlist" ){
if(strlen($_SESSION['login'])==0)
{
header('location:login.php');
}
else
{
mysqli_query($con,"insert into wishlist(userId,productId) values('".$_SESSION['id']."','$pid')");
echo "<script>alert('Product aaded in wishlist');</script>";
header('location:my-wishlist.php');
}
}
if(isset($_POST['submit']))
{
$qty=$_POST['quality'];
$price=$_POST['price'];
$value=$_POST['value'];
$name=$_POST['name'];
$summary=$_POST['summary'];
$review=$_POST['review'];
mysqli_query($con,"insert into productreviews(productId,quality,price,value,name,summary,review) values('$pid','$qty','$price','$value','$name','$summary','$review')");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="MediaCenter, Template, eCommerce">
<meta name="robots" content="all">
<title>Product Details</title>
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/green.css">
<link rel="stylesheet" href="assets/css/owl.carousel.css">
<link rel="stylesheet" href="assets/css/owl.transitions.css">
<link href="assets/css/lightbox.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/animate.min.css">
<link rel="stylesheet" href="assets/css/rateit.css">
<link rel="stylesheet" href="assets/css/bootstrap-select.min.css">
<link rel="stylesheet" href="assets/css/config.css">
<link href="assets/css/green.css" rel="alternate stylesheet" title="Green color">
<link href="assets/css/blue.css" rel="alternate stylesheet" title="Blue color">
<link href="assets/css/red.css" rel="alternate stylesheet" title="Red color">
<link href="assets/css/orange.css" rel="alternate stylesheet" title="Orange color">
<link href="assets/css/dark-green.css" rel="alternate stylesheet" title="Darkgreen color">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<!-- Fonts -->
<link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500,700' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="assets/images/favicon.ico">
</head>
<body class="cnt-home">
<header class="header-style-1">
<!-- ============================================== TOP MENU ============================================== -->
<?php include('includes/top-header.php');?>
<!-- ============================================== TOP MENU : END ============================================== -->
<?php include('includes/main-header.php');?>
<!-- ============================================== NAVBAR ============================================== -->
<?php include('includes/menu-bar.php');?>
<!-- ============================================== NAVBAR : END ============================================== -->
</header>
<!-- ============================================== HEADER : END ============================================== -->
<div class="breadcrumb">
<div class="container">
<div class="breadcrumb-inner">
<?php
$ret=mysqli_query($con,"select category.categoryName as catname,subCategory.subcategory as subcatname,products.productName as pname from products join category on category.id=products.category join subcategory on subcategory.id=products.subCategory where products.id='$pid'");
while ($rw=mysqli_fetch_array($ret)) {
?>
<ul class="list-inline list-unstyled">
<li><a href="index.php">Home</a></li>
<li><?php echo htmlentities($rw['catname']);?></a></li>
<li><?php echo htmlentities($rw['subcatname']);?></li>
<li class='active'><?php echo htmlentities($rw['pname']);?></li>
</ul>
<?php }?>
</div><!-- /.breadcrumb-inner -->
</div><!-- /.container -->
</div><!-- /.breadcrumb -->
<div class="body-content outer-top-xs">
<div class='container'>
<div class='row single-product outer-bottom-sm '>
<div class='col-md-3 sidebar'>
<div class="sidebar-module-container">
<!-- ==============================================CATEGORY============================================== -->
<div class="sidebar-widget outer-bottom-xs wow fadeInUp">
<h3 class="section-title">Category</h3>
<div class="sidebar-widget-body m-t-10">
<div class="accordion">
<?php $sql=mysqli_query($con,"select id,categoryName from category");
while($row=mysqli_fetch_array($sql))
{
?>
<div class="accordion-group">
<div class="accordion-heading">
<a href="category.php?cid=<?php echo $row['id'];?>" class="accordion-toggle collapsed">
<?php echo $row['categoryName'];?>
</a>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- ============================================== CATEGORY : END ============================================== --> <!-- ============================================== HOT DEALS ============================================== -->
<div class="sidebar-widget hot-deals wow fadeInUp">
<h3 class="section-title">hot deals</h3>
<div class="owl-carousel sidebar-carousel custom-carousel owl-theme outer-top-xs">
<?php
$ret=mysqli_query($con,"select * from products order by rand() limit 4 ");
while ($rws=mysqli_fetch_array($ret)) {
?>
<div class="item">
<div class="products">
<div class="hot-deal-wrapper">
<div class="image">
<img src="admin/productimages/<?php echo htmlentities($rws['id']);?>/<?php echo htmlentities($rws['productImage1']);?>" width="200" height="334" alt="">
</div>
</div><!-- /.hot-deal-wrapper -->
<div class="product-info text-left m-t-20">
<h3 class="name"><a href="product-details.php?pid=<?php echo htmlentities($rws['id']);?>"><?php echo htmlentities($rws['productName']);?></a></h3>
<div class="rating rateit-small"></div>
<div class="product-price">
<span class="price">
Rs. <?php echo htmlentities($rws['productPrice']);?>.00
</span>
<span class="price-before-discount">Rs.<?php echo htmlentities($row['productPriceBeforeDiscount']);?></span>
</div><!-- /.product-price -->
</div><!-- /.product-info -->
<div class="cart clearfix animate-effect">
</div><!-- /.cart -->
</div>
</div>
<?php } ?>
</div><!-- /.sidebar-widget -->
</div>
<!-- ============================================== COLOR: END ============================================== -->
</div>
</div><!-- /.sidebar -->
<?php
$ret=mysqli_query($con,"select * from products where id='$pid'");
while($row=mysqli_fetch_array($ret))
{
?>
<div class='col-md-9'>
<div class="row wow fadeInUp">
<div class="col-xs-12 col-sm-6 col-md-5 gallery-holder">
<div class="product-item-holder size-big single-product-gallery small-gallery">
<div id="owl-single-product">
<div class="single-product-gallery-item" id="slide1">
<a data-lightbox="image-1" data-title="<?php echo htmlentities($row['productName']);?>" href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>">
<img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="370" height="350" />
</a>
</div>
<div class="single-product-gallery-item" id="slide1">
<a data-lightbox="image-1" data-title="<?php echo htmlentities($row['productName']);?>" href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>">
<img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="370" height="350" />
</a>
</div><!-- /.single-product-gallery-item -->
<div class="single-product-gallery-item" id="slide2">
<a data-lightbox="image-1" data-title="Gallery" href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage2']);?>">
<img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage2']);?>" />
</a>
</div><!-- /.single-product-gallery-item -->
<div class="single-product-gallery-item" id="slide3">
<a data-lightbox="image-1" data-title="Gallery" href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage3']);?>">
<img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage3']);?>" />
</a>
</div>
</div><!-- /.single-product-slider -->
<div class="single-product-gallery-thumbs gallery-thumbs">
<div id="owl-single-product-thumbnails">
<div class="item">
<a class="horizontal-thumb active" data-target="#owl-single-product" data-slide="1" href="#slide1">
<img class="img-responsive" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" />
</a>
</div>
<div class="item">
<a class="horizontal-thumb" data-target="#owl-single-product" data-slide="2" href="#slide2">
<img class="img-responsive" width="85" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage2']);?>"/>
</a>
</div>
<div class="item">
<a class="horizontal-thumb" data-target="#owl-single-product" data-slide="3" href="#slide3">
<img class="img-responsive" width="85" alt="" src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage3']);?>" height="200" />
</a>
</div>
</div><!-- /#owl-single-product-thumbnails -->
</div>
</div>
</div>
<div class='col-sm-6 col-md-7 product-info-block'>
<div class="product-info">
<h1 class="name"><?php echo htmlentities($row['productName']);?></h1>
<?php $rt=mysqli_query($con,"select * from productreviews where productId='$pid'");
$num=mysqli_num_rows($rt);
{
?>
<div class="rating-reviews m-t-20">
<div class="row">
<div class="col-sm-3">
<div class="rating rateit-small"></div>
</div>
<div class="col-sm-8">
<div class="reviews">
<a href="#" class="lnk">(<?php echo htmlentities($num);?> Reviews)</a>
</div>
</div>
</div><!-- /.row -->
</div><!-- /.rating-reviews -->
<?php } ?>
<div class="stock-container info-container m-t-10">
<div class="row">
<div class="col-sm-3">
<div class="stock-box">
<span class="label">Availability :</span>
</div>
</div>
<div class="col-sm-9">
<div class="stock-box">
<span class="value"><?php echo htmlentities($row['productAvailability']);?></span>
</div>
</div>
</div><!-- /.row -->
</div>
<div class="stock-container info-container m-t-10">
<div class="row">
<div class="col-sm-3">
<div class="stock-box">
<span class="label">Product Brand :</span>
</div>
</div>
<div class="col-sm-9">
<div class="stock-box">
<span class="value"><?php echo htmlentities($row['productCompany']);?></span>
</div>
</div>
</div><!-- /.row -->
</div>
<div class="stock-container info-container m-t-10">
<div class="row">
<div class="col-sm-3">
<div class="stock-box">
<span class="label">Shipping Charge :</span>
</div>
</div>
<div class="col-sm-9">
<div class="stock-box">
<span class="value"><?php if($row['shippingCharge']==0)
{
echo "Free";
}
else
{
echo htmlentities($row['shippingCharge']);
}
?></span>
</div>
</div>
</div><!-- /.row -->
</div>
<div class="price-container info-container m-t-20">
<div class="row">
<div class="col-sm-6">
<div class="price-box">
<span class="price">Rs. <?php echo htmlentities($row['productPrice']);?></span>
<span class="price-strike">Rs.<?php echo htmlentities($row['productPriceBeforeDiscount']);?></span>
</div>
</div>
<div class="col-sm-6">
<div class="favorite-button m-t-10">
<a class="btn btn-primary" data-toggle="tooltip" data-placement="right" title="Wishlist" href="product-details.php?pid=<?php echo htmlentities($row['id'])?>&&action=wishlist">
<i class="fa fa-heart"></i>
</a>
</a>
</div>
</div>
</div><!-- /.row -->
</div><!-- /.price-container -->
<div class="quantity-container info-container">
<div class="row">
<div class="col-sm-2">
<span class="label">Qty :</span>
</div>
<div class="col-sm-2">
<div class="cart-quantity">
<div class="quant-input">
<div class="arrows">
<div class="arrow plus gradient"><span class="ir"><i class="icon fa fa-sort-asc"></i></span></div>
<div class="arrow minus gradient"><span class="ir"><i class="icon fa fa-sort-desc"></i></span></div>
</div>
<input type="text" value="1">
</div>
</div>
</div>
<div class="col-sm-7">
<?php if($row['productAvailability']=='In Stock'){?>
<a href="product-details.php?page=product&action=add&id=<?php echo $row['id']; ?>" class="btn btn-primary"><i class="fa fa-shopping-cart inner-right-vs"></i> ADD TO CART</a>
<?php } else {?>
<div class="action" style="color:red">Out of Stock</div>
<?php } ?>
</div>
</div><!-- /.row -->
</div><!-- /.quantity-container -->
<div class="product-social-link m-t-20 text-right">
<span class="social-label">Share :</span>
<div class="social-icons">
<ul class="list-inline">
<li><a class="fa fa-facebook" href="http://facebook.com/transvelo"></a></li>
<li><a class="fa fa-twitter" href="#"></a></li>
<li><a class="fa fa-linkedin" href="#"></a></li>
<li><a class="fa fa-rss" href="#"></a></li>
<li><a class="fa fa-pinterest" href="#"></a></li>
</ul><!-- /.social-icons -->
</div>
</div>
</div><!-- /.product-info -->
</div><!-- /.col-sm-7 -->
</div><!-- /.row -->
<div class="product-tabs inner-bottom-xs wow fadeInUp">
<div class="row">
<div class="col-sm-3">
<ul id="product-tabs" class="nav nav-tabs nav-tab-cell">
<li class="active"><a data-toggle="tab" href="#description">DESCRIPTION</a></li>
<li><a data-toggle="tab" href="#review">REVIEW</a></li>
</ul><!-- /.nav-tabs #product-tabs -->
</div>
<div class="col-sm-9">
<div class="tab-content">
<div id="description" class="tab-pane in active">
<div class="product-tab">
<p class="text"><?php echo $row['productDescription'];?></p>
</div>
</div><!-- /.tab-pane -->
<div id="review" class="tab-pane">
<div class="product-tab">
<div class="product-reviews">
<h4 class="title">Customer Reviews</h4>
<?php $qry=mysqli_query($con,"select * from productreviews where productId='$pid'");
while($rvw=mysqli_fetch_array($qry))
{
?>
<div class="reviews" style="border: solid 1px #000; padding-left: 2% ">
<div class="review">
<div class="review-title"><span class="summary"><?php echo htmlentities($rvw['summary']);?></span><span class="date"><i class="fa fa-calendar"></i><span><?php echo htmlentities($rvw['reviewDate']);?></span></span></div>
<div class="text">"<?php echo htmlentities($rvw['review']);?>"</div>
<div class="text"><b>Quality :</b> <?php echo htmlentities($rvw['quality']);?> Star</div>
<div class="text"><b>Price :</b> <?php echo htmlentities($rvw['price']);?> Star</div>
<div class="text"><b>value :</b> <?php echo htmlentities($rvw['value']);?> Star</div>
<div class="author m-t-15"><i class="fa fa-pencil-square-o"></i> <span class="name"><?php echo htmlentities($rvw['name']);?></span></div> </div>
</div>
<?php } ?><!-- /.reviews -->
</div><!-- /.product-reviews -->
<form role="form" class="cnt-form" name="review" method="post">
<div class="product-add-review">
<h4 class="title">Write your own review</h4>
<div class="review-table">
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th class="cell-label"> </th>
<th>1 star</th>
<th>2 stars</th>
<th>3 stars</th>
<th>4 stars</th>
<th>5 stars</th>
</tr>
</thead>
<tbody>
<tr>
<td class="cell-label">Quality</td>
<td><input type="radio" name="quality" class="radio" value="1"></td>
<td><input type="radio" name="quality" class="radio" value="2"></td>
<td><input type="radio" name="quality" class="radio" value="3"></td>
<td><input type="radio" name="quality" class="radio" value="4"></td>
<td><input type="radio" name="quality" class="radio" value="5"></td>
</tr>
<tr>
<td class="cell-label">Price</td>
<td><input type="radio" name="price" class="radio" value="1"></td>
<td><input type="radio" name="price" class="radio" value="2"></td>
<td><input type="radio" name="price" class="radio" value="3"></td>
<td><input type="radio" name="price" class="radio" value="4"></td>
<td><input type="radio" name="price" class="radio" value="5"></td>
</tr>
<tr>
<td class="cell-label">Value</td>
<td><input type="radio" name="value" class="radio" value="1"></td>
<td><input type="radio" name="value" class="radio" value="2"></td>
<td><input type="radio" name="value" class="radio" value="3"></td>
<td><input type="radio" name="value" class="radio" value="4"></td>
<td><input type="radio" name="value" class="radio" value="5"></td>
</tr>
</tbody>
</table><!-- /.table .table-bordered -->
</div><!-- /.table-responsive -->
</div><!-- /.review-table -->
<div class="review-form">
<div class="form-container">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="exampleInputName">Your Name <span class="astk">*</span></label>
<input type="text" class="form-control txt" id="exampleInputName" placeholder="" name="name" required="required">
</div><!-- /.form-group -->
<div class="form-group">
<label for="exampleInputSummary">Summary <span class="astk">*</span></label>
<input type="text" class="form-control txt" id="exampleInputSummary" placeholder="" name="summary" required="required">
</div><!-- /.form-group -->
</div>
<div class="col-md-6">
<div class="form-group">
<label for="exampleInputReview">Review <span class="astk">*</span></label>
<textarea class="form-control txt txt-review" id="exampleInputReview" rows="4" placeholder="" name="review" required="required"></textarea>
</div><!-- /.form-group -->
</div>
</div><!-- /.row -->
<div class="action text-right">
<button name="submit" class="btn btn-primary btn-upper">SUBMIT REVIEW</button>
</div><!-- /.action -->
</form><!-- /.cnt-form -->
</div><!-- /.form-container -->
</div><!-- /.review-form -->
</div><!-- /.product-add-review -->
</div><!-- /.product-tab -->
</div><!-- /.tab-pane -->
</div><!-- /.tab-content -->
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.product-tabs -->
<?php $cid=$row['category'];
$subcid=$row['subCategory']; } ?>
<!-- ============================================== UPSELL PRODUCTS ============================================== -->
<section class="section featured-product wow fadeInUp">
<h3 class="section-title">Realted Products </h3>
<div class="owl-carousel home-owl-carousel upsell-product custom-carousel owl-theme outer-top-xs">
<?php
$qry=mysqli_query($con,"select * from products where subCategory='$subcid' and category='$cid'");
while($rw=mysqli_fetch_array($qry))
{
?>
<div class="item item-carousel">
<div class="products">
<div class="product">
<div class="product-image">
<div class="image">
<a href="product-details.php?pid=<?php echo htmlentities($rw['id']);?>"><img src="assets/images/blank.gif" data-echo="admin/productimages/<?php echo htmlentities($rw['id']);?>/<?php echo htmlentities($rw['productImage1']);?>" width="150" height="240" alt=""></a>
</div><!-- /.image -->
</div><!-- /.product-image -->
<div class="product-info text-left">
<h3 class="name"><a href="product-details.php?pid=<?php echo htmlentities($rw['id']);?>"><?php echo htmlentities($rw['productName']);?></a></h3>
<div class="rating rateit-small"></div>
<div class="description"></div>
<div class="product-price">
<span class="price">
Rs.<?php echo htmlentities($rw['productPrice']);?> </span>
<span class="price-before-discount">Rs.
<?php echo htmlentities($rw['productPriceBeforeDiscount']);?></span>
</div><!-- /.product-price -->
</div><!-- /.product-info -->
<div class="cart clearfix animate-effect">
<div class="action">
<ul class="list-unstyled">
<li class="add-cart-button btn-group">
<button class="btn btn-primary icon" data-toggle="dropdown" type="button">
<i class="fa fa-shopping-cart"></i>
</button>
<a href="product-details.php?page=product&action=add&id=<?php echo $rw['id']; ?>" class="lnk btn btn-primary">Add to cart</a>
</li>
</ul>
</div><!-- /.action -->
</div><!-- /.cart -->
</div><!-- /.product -->
</div><!-- /.products -->
</div><!-- /.item -->
<?php } ?>
</div><!-- /.home-owl-carousel -->
</section><!-- /.section -->
<!-- ============================================== UPSELL PRODUCTS : END ============================================== -->
</div><!-- /.col -->
<div class="clearfix"></div>
</div>
<?php include('includes/brands-slider.php');?>
</div>
</div>
<?php include('includes/footer.php');?>
<script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-hover-dropdown.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/echo.min.js"></script>
<script src="assets/js/jquery.easing-1.3.min.js"></script>
<script src="assets/js/bootstrap-slider.min.js"></script>
<script src="assets/js/jquery.rateit.min.js"></script>
<script type="text/javascript" src="assets/js/lightbox.min.js"></script>
<script src="assets/js/bootstrap-select.min.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/scripts.js"></script>
<!-- For demo purposes – can be removed on production -->
<script src="switchstylesheet/switchstylesheet.js"></script>
<script>
$(document).ready(function(){
$(".changecolor").switchstylesheet( { seperator:"color"} );
$('.show-theme-options').click(function(){
$(this).parent().toggleClass('open');
return false;
});
});
$(window).bind("load", function() {
$('.show-theme-options').delay(2000).trigger('click');
});
</script>
<!-- For demo purposes – can be removed on production : End -->
</body>
</html>