-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer-wishlist.php
191 lines (187 loc) · 9.16 KB
/
customer-wishlist.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
<?php require_once('init.php') ?>
<!DOCTYPE html>
<html>
<?php
$str = '';
if(!isset($_SESSION['in'])){
$items = json_decode(DevHelper::getCookies("wish"), TRUE);
foreach($items as $current_item){
print_r($current_item);
$id = $current_item['id'];
$str.="&id[]=$id";
//echo "$str<br>";
}
}else{
$items = [];
$cid = $_SESSION['id'];
$res = DevHelper::select("SELECT `id` from `whishlist` where `userID` = '$cid'");
if($res){
$wish_id = $res[0]['id'];
$res1 = DevHelper::select("SELECT * from `whishlist_product` where `whishlistID` = '$wish_id'");
if($res1){
//$items[$i]['id'] = $res1[$i]['productID'];
foreach($res1 as $current_item){
print_r($current_item);
$id = $current_item['productID'];
$str.="&id[]=$id";
// echo "$str<br>";
}
}
}
}
$str = 'shop-category-left.php?w=1&'.substr($str,1);
//echo $str;
header("location: $str");
/*
require_once('inc/head.php');?>
<body>
<div class="wide" id="all">
<?php require_once('inc/topbar.php');?>
<?php require_once('system/modals/login_modal.php'); ?>
<?php require_once('inc/navbar.php')?>
<!-- WISHLIST SECTION-->
<section class="py-5">
<div class="container py-4">
<div class="row g-5">
<div class="col-lg-9">
<p class="lead mb-5">Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
<div class="row gy-5 align-items-stretch">
<div class="col-lg-3 col-md-6">
<!-- Product-->
<div class="product h-100">
<div class="product-image"><a href="shop-detail.php"><img class="img-fluid" src="assets/img/product1.jpg" alt="Fur coat with very but very very long name"></a></div>
<div class="py-4 px-3 text-center">
<h3 class="h5 text-uppercase mb-3"><a class="reset-link" href="shop-detail.php">Fur coat with very but very very long name</a></h3>
<p class="mb-0">$143.00
</p>
</div>
<ul class="list-unstyled p-0 ribbon-holder mb-0">
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6">
<!-- Product-->
<div class="product h-100">
<div class="product-image"><a href="shop-detail.php"><img class="img-fluid" src="assets/img/product2.jpg" alt="White Blouse Armani"></a></div>
<div class="py-4 px-3 text-center">
<h3 class="h5 text-uppercase mb-3"><a class="reset-link" href="shop-detail.php">White Blouse Armani</a></h3>
<p class="mb-0">
<del class="text-gray-500 me-2">$200.00</del>$143.00
</p>
</div>
<ul class="list-unstyled p-0 ribbon-holder mb-0">
<li class="mb-1">
<div class="ribbon sale ribbon-primary">SALE</div>
</li>
<li class="mb-1">
<div class="ribbon new ribbon-info">NEW</div>
</li>
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6">
<!-- Product-->
<div class="product h-100">
<div class="product-image"><a href="shop-detail.php"><img class="img-fluid" src="assets/img/product3.jpg" alt="Black Blouse Versace"></a></div>
<div class="py-4 px-3 text-center">
<h3 class="h5 text-uppercase mb-3"><a class="reset-link" href="shop-detail.php">Black Blouse Versace</a></h3>
<p class="mb-0">$143.00
</p>
</div>
<ul class="list-unstyled p-0 ribbon-holder mb-0">
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6">
<!-- Product-->
<div class="product h-100">
<div class="product-image"><a href="shop-detail.php"><img class="img-fluid" src="assets/img/product4.jpg" alt="Black Blouse Versace"></a></div>
<div class="py-4 px-3 text-center">
<h3 class="h5 text-uppercase mb-3"><a class="reset-link" href="shop-detail.php">Black Blouse Versace</a></h3>
<p class="mb-0">$143.00
</p>
</div>
<ul class="list-unstyled p-0 ribbon-holder mb-0">
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6">
<!-- Product-->
<div class="product h-100">
<div class="product-image"><a href="shop-detail.php"><img class="img-fluid" src="assets/img/product3.jpg" alt=" White Blouse Armani"></a></div>
<div class="py-4 px-3 text-center">
<h3 class="h5 text-uppercase mb-3"><a class="reset-link" href="shop-detail.php"> White Blouse Armani</a></h3>
<p class="mb-0">
<del class="text-gray-500 me-2">$200.00</del>$143.00
</p>
</div>
<ul class="list-unstyled p-0 ribbon-holder mb-0">
<li class="mb-1">
<div class="ribbon sale ribbon-primary">SALE</div>
</li>
<li class="mb-1">
<div class="ribbon new ribbon-info">NEW</div>
</li>
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6">
<!-- Product-->
<div class="product h-100">
<div class="product-image"><a href="shop-detail.php"><img class="img-fluid" src="assets/img/product4.jpg" alt="White Blouse Versace"></a></div>
<div class="py-4 px-3 text-center">
<h3 class="h5 text-uppercase mb-3"><a class="reset-link" href="shop-detail.php">White Blouse Versace</a></h3>
<p class="mb-0">$143.00
</p>
</div>
<ul class="list-unstyled p-0 ribbon-holder mb-0">
<li class="mb-1">
<div class="ribbon new ribbon-info">NEW</div>
</li>
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6">
<!-- Product-->
<div class="product h-100">
<div class="product-image"><a href="shop-detail.php"><img class="img-fluid" src="assets/img/product2.jpg" alt="White Blouse Versace"></a></div>
<div class="py-4 px-3 text-center">
<h3 class="h5 text-uppercase mb-3"><a class="reset-link" href="shop-detail.php">White Blouse Versace</a></h3>
<p class="mb-0">$143.00
</p>
</div>
<ul class="list-unstyled p-0 ribbon-holder mb-0">
<li class="mb-1">
<div class="ribbon new ribbon-info">NEW</div>
</li>
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6">
<!-- Product-->
<div class="product h-100">
<div class="product-image"><a href="shop-detail.php"><img class="img-fluid" src="assets/img/product1.jpg" alt="Fur coat"></a></div>
<div class="py-4 px-3 text-center">
<h3 class="h5 text-uppercase mb-3"><a class="reset-link" href="shop-detail.php">Fur coat</a></h3>
<p class="mb-0">$143.00
</p>
</div>
<ul class="list-unstyled p-0 ribbon-holder mb-0">
</ul>
</div>
</div>
</div>
</div>
<div class="col-lg-3">
<h3 class="h4 text-uppercase lined mb-4">Customer section</h3>
<nav class="nav flex-column nav-pills"><a class="nav-link text-sm" href="customer-orders.php"> <i class="me-2 fas fa-list"></i><span>My orders</span></a><a class="nav-link text-sm active" href="customer-wishlist.php"> <i class="me-2 fas fa-heart"></i><span>My wishlist</span></a><a class="nav-link text-sm" href="customer-account.php"> <i class="me-2 fas fa-user"></i><span>My account</span></a><a class="nav-link text-sm" href="index.php"> <i class="me-2 fas fa-door-open"></i><span>Logout</span></a>
</nav>
</div>
</div>
</div>
</section>
<?php require_once('inc/footer.php'); ?>
</div>
<?php require_once ('inc/load_last.php'); ?>
</body>
</html>*/