-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct-details.php
380 lines (345 loc) · 19.6 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
<?php
session_start();
?>
<!doctype html>
<html class="no-js" lang="zxx">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Yoginee - Jewellery Shop eCommerce Bootstrap 4 Template</title>
<meta name="robots" content="noindex, follow" />
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico">
<script src="https://kit.fontawesome.com/8f7c5a9c29.js" crossorigin="anonymous"></script>
<!-- CSS
============================================ -->
<!-- google fonts -->
<link href="https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i,700,900" rel="stylesheet">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Pe-icon-7-stroke CSS -->
<!-- <link rel="stylesheet" href="css/pe-icon-7-stroke.css"> -->
<link rel="stylesheet" href="https://template.hasthemes.com/corano/corano/assets/css/vendor/pe-icon-7-stroke.css">
<!-- Font-awesome CSS -->
<!-- <link rel="stylesheet" href="css/font-awesome.min.css"> -->
<!-- Slick slider css -->
<link rel="stylesheet" href="css/plugins/slick.min.css">
<!-- animate css -->
<link rel="stylesheet" href="css/plugins/animate.css">
<!-- Nice Select css -->
<link rel="stylesheet" href="css/plugins/nice-select.css">
<!-- jquery UI css -->
<link rel="stylesheet" href="css/plugins/jqueryui.min.css">
<!-- main style css -->
<link rel="stylesheet" href="css/style.css">
</head>
<style>
/* .pro-nav-thumb img{
max-width: 150px;
} */
</style>
<body>
<!-- Start Header Area -->
<?php
include "component/_navbar.php";
$sessionCheck = true;
// $_GET = $product-query;
$id = $_GET['product-query'];
// $username = $_SESSION['name'];
?>
<main>
<!-- breadcrumb area start -->
<div class="breadcrumb-area">
<div class="container">
<div class="row">
<div class="col-12">
<div class="breadcrumb-wrap">
<nav aria-label="breadcrumb">
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php"><i class="fa fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="shop.php">shop</a></li>
<li class="breadcrumb-item active" aria-current="page">product details</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- breadcrumb area end -->
<div id="notif-alert">
</div>
<!-- page main wrapper start -->
<div class="shop-main-wrapper section-padding pb-0">
<div class="container">
<div class="row">
<!-- product details wrapper start -->
<div class="col-lg-12 order-1 order-lg-2">
<!-- product details inner end -->
<div class="product-details-inner">
<div class="row">
<div class="col-lg-5">
<div class="product-large-slider">
<div class="pro-large-img img-zoom" id="featured">
<!-- product image -->
</div>
</div>
<!-- extra image -->
<!-- <div class="pro-nav slick-row-10 slick-arrow-style" id="otherimages">
<div class="pro-nav-thumb">
<img src="images/product/product-1.webp" alt="product-details" />
</div>
<div class="pro-nav-thumb">
<img src="images/product/product-2.webp" alt="product-details" />
</div>
<div class="pro-nav-thumb">
<img src="images/product/product-3.webp" alt="product-details" />
</div>
</div> -->
</div>
<div class="col-lg-7">
<div class="product-details-des">
<div class="manufacturer-name">
<!-- product category -->
<a href="product-details.php" id="pCategory">
</a>
</div>
<!-- product name -->
<h3 class="product-name" id="pName"> </h3>
<div class="ratings d-flex">
<span><i class="fa fa-star-o"></i></span>
<span><i class="fa fa-star-o"></i></span>
<span><i class="fa fa-star-o"></i></span>
<span><i class="fa fa-star-o"></i></span>
<span><i class="fa fa-star-o"></i></span>
<div class="pro-review">
<span>1 Reviews</span>
</div>
</div>
<div class="price-box">
<!-- product price -->
<span class="price-regular"> ₹ <span id="sellprice"></span></span>
<span class="price-old"><del> ₹ <span id="mrp"></span></del></span>
</div>
<!-- <h5 class="offer-text"><strong>Hurry up</strong>! offer ends in:</h5>
<div class="product-countdown" data-countdown="2021/12/20"></div> -->
<div class="availability">
<i class="fa fa-check-circle"></i>
<!-- product stock -->
<span id="stock"></span>
</div>
<!-- product short description -->
<p class="pro-desc" id="description"></p>
<p><b>Manufactured by</b> : <span style="color: #c29958;"
id="manufactured">abcd</span></p>
<div class="quantity-cart-box d-flex align-items-center">
<h6 class="option-title">qty:</h6>
<div class="quantity">
<div class="pro-qty">
<input type="text" id="productQuanty<?php echo $id;?>" value="1">
</div>
</div>
<div class="pro-size" style="margin-bottom:0px;">
<h6 class="option-title">size :</h6>
<select class="nice-select" id="productSize<?php echo $id;?>">
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
</div>
</div>
<!-- attribute -->
<!-- <div class="color-option">
<h6 class="option-title">color :</h6>
<ul class="color-categories">
<li>
<a class="c-lightblue" href="#" title="LightSteelblue"></a>
</li>
<li>
<a class="c-darktan" href="#" title="Darktan"></a>
</li>
<li>
<a class="c-grey" href="#" title="Grey"></a>
</li>
<li>
<a class="c-brown" href="#" title="Brown"></a>
</li>
</ul>
</div> -->
<!-- hidden form start -->
<input type="hidden" name="" id="prid" value="<?php echo $id;?>">
<input type="hidden" name="userid" id="user" value="<?php echo $_SESSION['id'];?>">
<input type="hidden" name="pid" id="poductid<?php echo $id;?>" value="">
<input type="hidden" name="pname" id="poductname<?php echo $id;?>" value="">
<input type="hidden" name="pprice" id="poductprice<?php echo $id;?>" value="">
<input type="hidden" name="piamge" id="poductimage<?php echo $id;?>" value="">
<div class="useful-links my-3">
<?php
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] != true) {
$sessionCheck = false;
echo '<a href="#" data-bs-toggle="tooltip" title="Wishlist" class="addtowish" id="nowishlist"><i
class="pe-7s-like"></i>wishlist</a>';
}else {
echo '<a href="#" data-bs-toggle="tooltip" title="Wishlist" class="addtowish" id="'.$id.'"><i
class="pe-7s-like"></i>wishlist</a>';
}
?>
<!-- <a href="#" data-bs-toggle="tooltip" title="Wishlist" class="addtowish" id="<?php echo $id;?>"><i
class="pe-7s-like"></i>wishlist</a> -->
</div>
<div class="action_link">
<?php
// $_SESSION['loggedin'] = true;
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] != true) {
echo '
<button type="button" class="btn btn-cart2" id = "nologin">Add to cart</button>
';
}else {
echo '<button type="button" class="btn btn-cart2 cartBtn" id="'.$id.'">Add to cart</button>';
}
?>
</div>
<!-- hidden form end -->
<!-- <div class="useful-links my-3">
<a href="#" data-bs-toggle="tooltip" title="Wishlist"><i
class="pe-7s-like"></i>wishlist</a>
</div> -->
</div>
</div>
</div>
</div>
<!-- product details inner end -->
<!-- product details reviews start -->
<div class="product-details-reviews section-padding pb-0">
<div class="row">
<div class="col-lg-12">
<div class="product-review-info">
<ul class="nav review-tab">
<li>
<a class="active" data-bs-toggle="tab" href="#tab_one">description</a>
</li>
<li>
<a data-bs-toggle="tab" href="#tab_two">information</a>
</li>
<li>
<a data-bs-toggle="tab" href="#tab_three">reviews (1)</a>
</li>
</ul>
<div class="tab-content reviews-tab">
<div class="tab-pane fade show active" id="tab_one">
<div class="tab-one">
<!-- product details -->
<p>Dummy description</p>
</div>
</div>
<div class="tab-pane fade" id="tab_two">
<table class="table table-bordered">
<tbody id="info">
<!-- product attribute -->
</tbody>
</table>
</div>
<!-- review system -->
<div class="tab-pane fade" id="tab_three">
<form action="#" class="review-form">
<?php
include "operation/add_review.php";
include "operation/fetch_reviews.php";
?>
</form>
</div>
<!-- end of review-form -->
</div>
</div>
</div>
</div>
</div>
<!-- product details reviews end -->
</div>
<!-- product details wrapper end -->
</div>
</div>
</div>
<!-- page main wrapper end -->
<!-- related products area start -->
<section class="related-products section-padding">
<div class="container">
<div class="row">
<div class="col-12">
<!-- section title start -->
<div class="section-title text-center">
<h2 class="title">Related Products</h2>
<p class="sub-title">Add related products to weekly lineup</p>
</div>
<!-- section title start -->
</div>
</div>
<div class="row">
<div class="col-12">
<div class="product-carousel-4 slick-row-10 slick-arrow-style">
<!-- product item start -->
<?php include "component/_product.php"; ?>
</div>
</div>
</div>
</div>
</section>
<!-- related products area end -->
</main>
<!-- Scroll to top start -->
<div class="scroll-top not-visible">
<i class="fa fa-angle-up"></i>
</div>
<!-- Scroll to Top End -->
<!-- footer area start -->
<?php
include "component/_footer.php";
?>
<!-- footer area end -->
<!-- Quick view modal start -->
<!-- Quick view modal end -->
<!-- offcanvas mini cart start -->
<?php
include "component/_mini_cart.php";
?>
<!-- offcanvas mini cart end -->
<!-- JS
============================================ -->
<!-- Modernizer JS -->
<script src="js/modernizr-3.6.0.min.js"></script>
<!-- jQuery JS -->
<script src="js/jquery-3.6.0.min.js"></script>
<!-- Bootstrap JS -->
<script src="js/bootstrap.bundle.min.js"></script>
<!-- slick Slider JS -->
<script src="js/plugins/slick.min.js"></script>
<!-- Countdown JS -->
<script src="js/plugins/countdown.min.js"></script>
<!-- Nice Select JS -->
<script src="js/plugins/nice-select.min.js"></script>
<!-- jquery UI JS -->
<script src="js/plugins/jqueryui.min.js"></script>
<!-- Image zoom JS -->
<script src="js/plugins/image-zoom.min.js"></script>
<!-- Images loaded JS -->
<script src="js/plugins/imagesloaded.pkgd.min.js"></script>
<!-- mail-chimp active js -->
<script src="js/plugins/ajaxchimp.js"></script>
<!-- contact form dynamic js -->
<script src="js/plugins/ajax-mail.js"></script>
<!-- google map api -->
<!-- <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCfmCVTjRI007pC1Yk2o2d_EhgkjTsFVN8"></script> -->
<!-- google map active js -->
<script src="js/plugins/google-map.js"></script>
<!-- Main JS -->
<script src="js/main.js"></script>
<script src="js/cart.js"></script>
<!-- fetch data from api -->
<script src="js/shopScript/getjsondata.js"></script>
<!-- prodct append -->
<script src="js/shopScript/product-details.js"></script>
</body>
</html>