-
Notifications
You must be signed in to change notification settings - Fork 0
/
muahang.php
448 lines (408 loc) · 19.2 KB
/
muahang.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
<!DOCTYPE html>
<html>
<head>
<!-- Basic -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Site Metas -->
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="" />
<link rel="shortcut icon" href="images/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>
Hướng dẫn mua hàng - SuitAble
</title>
<!-- slider stylesheet -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" />
<!-- bootstrap core css -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet" />
<!-- responsive style -->
<link href="css/responsive.css" rel="stylesheet" />
</head>
<body>
<?php
session_start();
if (isset($_SESSION['account'])) {
$let_Account = $_SESSION['account'];
} else {
$let_Account = null; // Hoặc giá trị mặc định nếu không đăng nhập
}
?>
<div class="hero_area">
<!-- header section strats -->
<header class="header_section">
<nav class="navbar navbar-expand-lg custom_nav-container ">
<a class="navbar-brand" href="index.php">
<span>
<img src="https://img.upanh.tv/2023/07/12/Suit_able_auto_x2.jpg" alt="Suit_able_auto_x2.jpg" border="0">
</span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class=""></span>
</button>
<div class="collapse navbar-collapse innerpage_navbar" id="navbarSupportedContent">
<ul class="navbar-nav ">
<li class="nav-item">
<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<a class="nav-link" href="ao.php">
áo
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="quan.php">
quần
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="bosuutap.php">
bộ sưu tập
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="lienhe.php">liên hệ</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="">chăm sóc khách hàng</a>
<ul class="sub-menu1">
<li><a class="nav-link" href="doitra.php">Chính sách đổi trả</a></li>
<li><a class="nav-link" href="baohanh.php">Chính sách bảo hành</a></li>
<li><a class="nav-link" href="thanhvien.php">Chính sách thành viên</a></li>
<li><a class="nav-link" href="vanchuyen.php">Chính sách vận chuyển</a></li>
<li><a class="nav-link" href="muahang.php">Hướng dẫn mua hàng</a></li>
<li><a class="nav-link" href="baoquan.php">Hướng dẫn bảo quản</a></li>
</ul>
</li>
</ul>
<div class="user_option">
<?php
// Kiểm tra xem người dùng đã đăng nhập hay chưa
if (isset($_SESSION['loged'])) {
echo '<span class="welcome-msg"> Xin chào ' . $_SESSION['name'] . ' <button><a href="logout.php">Đăng xuất</a></button> </span>';
}
else {
// Nếu chưa đăng nhập, hiển thị nội dung đăng nhập và đăng ký
echo '
<a href="login.php">
<i class="fa fa-user" aria-hidden="true"></i>
<span>
Đăng nhập
</span>
</a>
<a href="register.php">
<i class="fa fa-user2" aria-hidden="true"></i>
<span>
Đăng kí
</span>
</a>';
}
?>
<!-- Giỏ hàng -->
<div class="header__cart">
<div class="header__cart-wrap">
<i class="fa fa-shopping-bag" ></i>
<span class="header__cart-notice">
<?php
include "connect.php";
$sql = "SELECT Count(id) AS soLuong FROM tb_giohang";
$result = mysqli_query($conn, $sql);
$row1 = mysqli_fetch_assoc($result);
echo$row1['soLuong'];
?>
</span>
<!-- No cart: header__cart-list--no-cart -->
<div class="header__cart-list">
<img src="./no-cart.png" alt="" class="header__cart-no-cart-img">
<span class="header__cart-list-no-cart-msg">
Chưa có sản phẩm
</span>
<h4 class="header__cart-heading">Sản phẩm đã thêm</h4>
<ul class="header__cart-list-item">
<!-- cart item -->
<?php
include "connect.php";
$id_xoa_sp =0;
$sql = "SELECT * FROM tb_giohang gh
INNER JOIN sanpham sp ON sp.masp = gh.masp WHERE gh.taikhoanID = '$let_Account'";
$result = mysqLi_query($conn, $sql);
while($row = mysqLi_fetch_array($result)){
$id_xoa_sp = $row['id'] ?>
<li class="header__cart-item">
<img src=<?php echo$row['hinhanh1']?> alt="" class="header__cart-img">
<div class="header__cart-item-info">
<div class="header__cart-item-head">
<h5 class="header__cart-item-name"><?php echo$row['tensp']?></h5>
<div class="header__cart-item-price-wrap">
<span class="header__cart-item-price"><?php echo$row['giaca']?></span>
<span class="header__cart-item-multiply">x</span>
<span class="header__cart-item-qnt"><?php echo$row['SoLuong']?></span>
</div>
</div>
<div class="header__cart-item-body">
<span class="header__cart-item-description">
Phân loại: <?php echo$row['loai']?>
</span>
<form action="muahang.php" method='post' enctype='multipart/form-data'>
<span class="header__cart-item-remove">
<input type='hidden' id='xoa_SP' name='id_xoa_sp' value="<?php echo$id_xoa_sp ?>">
<button class="btn nav_delete-btn" name='xoa_sp' type="submit">
Xóa
</button>
</span>
</form>
</div>
</div>
</li>
<?php } ?>
</ul>
<a href="gio-hang.php" class="header__cart-view-cart btn btn--primary">Xem giỏ hàng</a >
</div>
</div>
</div>
<form action="search.php" method="get" class="form-inline">
<input type="text" value="" placeholder="Nội dung tìm kiếm" name="noidungtimkiem" id="Timkiem" style="font-size: 12px; border: none; padding: 6px; margin-right: 12px;">
<button class="btn nav_search-btn" type="submit">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</form>
</div>
</div>
</nav>
</header>
<!-- end header section -->
</div>
<!-- end hero area -->
<!-- shop section -->
<section class="client_section layout_padding">
<div class="container">
<div class="heading_container heading_center">
<h2>
hướng dẫn mua hàng
</h2>
</div>
</div>
<div class="container px-0">
<div id="customCarousel2" class="carousel carousel-fade" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div class="box">
<div class="client_info">
<div class="client_name">
<h5>
Hiện SuitAble hoạt động chính trên các kênh sau:
</h5>
<h6>
</h6>
</div>
<i class="fa fa-quote-left" aria-hidden="true"></i>
</div>
<p>- Facebook: SuitAble</p>
<p>- Instagram: SuitAble.official</p>
<p>- Website: SuitAble.asia</p>
<p>- TMĐT: Shopee</p>
<p>- Tiktok shop: SuitAble.vn</p>
<p>- Cửa hàng</p>
</div>
</div>
<div class="carousel-item">
<div class="box">
<div class="client_info">
<div class="client_name">
<h5>
Hướng dẫn mua hàng tại Facebook/ Instagram
</h5>
<h6>
</h6>
</div>
<i class="fa fa-quote-left" aria-hidden="true"></i>
</div>
<p>- Tìm kiếm và chọn sản phẩm bạn yêu thích, muốn sở hữu.</p>
<p>- Gửi tin nhắn trực tiếp đến hộp thư Facebook/ Instagram của SuitAble. Nhân viên tư vấn sẽ hỗ trợ bạn tư vấn về thông tin sản phẩm (giá, kích cỡ, tình trạng hiện tại của sản phẩm,…)</p>
<p>- Cuối cùng tụi mình sẽ gọi cho bạn và xác nhận thông tin đơn hàng và tiến hành đóng gói, vận chuyển đơn hàng.</p>
</div>
</div>
<div class="carousel-item">
<div class="box">
<div class="client_info">
<div class="client_name">
<h5>
Hướng dẫn mua hàng tại Website
</h5>
<h6>
</h6>
</div>
<i class="fa fa-quote-left" aria-hidden="true"></i>
</div>
<p>BƯỚC 1: Tìm kiếm và chọn sản phẩm bạn yêu thích, muốn sở hữu trên Website theo 1 trong 2 cách:</p>
<p>- Gõ tên hoặc mã sản phẩm vào thanh tìm kiếm</p>
<p>- Tìm theo danh mục sản phẩm dựa trên thanh menu chính</p>
<p>Mỗi sản phẩm trên WEBSITE đều có đầy đủ thông tin sản phẩm, bảng kích cỡ, hình ảnh chi tiết của sản phẩm.</p>
<p>Tại đây, bạn có thể chọn Màu sắc, Kích cỡ và Số lượng sản phẩm muốn mua bằng cách click vào nút THÊM VÀO GIỎ.</p>
<p>Khi bạn Bấm vào nút THÊM VÀO GIỎ, bên góc phải màn hình sẽ hiện ra khung chứa đầy đủ thông tin giỏ hàng. Bạn có thể chỉnh sửa đơn hàng (nếu có) và bấm vào nút THANH TOÁN trong khung giỏ hàng.</p>
<p>Bạn cung cấp đầy đủ thông tin cá nhân và chọn TIẾP TỤC ĐẾN PHƯƠNG THỨC THANH TOÁN, thêm Mã giảm giá (nếu có).</p>
<p>BƯỚC 2: Tiến hành đặt hàng và thanh toán đơn hàng</p>
<p>Trên trang thanh toán, khách hàng lưu ý điền đầy đủ thông tin bắt buộc cho đơn hàng:</p>
<p>- Thông tin người mua hàng</p>
<p>- Phương thức vận chuyển có 2 phương thức:</p>
<p>+ Vận chuyển thông thường</p>
<p>+ Vận chuyển hỏa tốc nội thành HCM</p>
<p>- Phương thức thanh toán có thể chọn 1 trong 2 phương thức thanh toán có sẵn:</p>
<p>+ Thanh toán khi nhận hàng bằng tiền mặt.</p>
<p>+ Thanh toán khi đặt hàng bằng các loại thẻ ATM nội địa, Visa,…</p>
<p>BƯỚC 3: Xác nhận đơn hàng</p>
<p>- Sau khi hoàn tất quy trình mua hàng trực tuyến trên website SuitAble, bạn sẽ nhận được xác nhận qua email và điện thoại trực tiếp từ SuitAble. Bạn vui lòng kiểm tra email Xác Nhận Đặt Hàng với thông tin chi tiết về đơn hàng nhé</p>
<p>- Trường hợp có thay đổi thông tin của đơn hàng, vui lòng liên hệ trực tiếp qua Đường dây tiếp nhận phản hồi 0123 456 789 SuitAble</p>
</div>
</div>
<div class="carousel-item">
<div class="box">
<div class="client_info">
<div class="client_name">
<h5>
Hướng dẫn mua hàng trên sàn TMĐT
</h5>
<h6>
</h6>
</div>
<i class="fa fa-quote-left" aria-hidden="true"></i>
</div>
<p>Truy cập ứng mua hàng bạn yêu thích và đến gian hàng SuitAble để chọn mua ngay món đồ bạn ưng ý nhé!</p>
</div>
</div>
<div class="carousel-item">
<div class="box">
<div class="client_info">
<div class="client_name">
<h5>
Hướng dẫn mua hàng trên Tiktok shop
</h5>
<h6>
</h6>
</div>
<i class="fa fa-quote-left" aria-hidden="true"></i>
</div>
<p>Truy cập kênh Tiktok https://www.tiktok.com/@SuitAble.vn, đến biểu tượng giỏ hàng để lựa chọn món hàng yêu thích của bạn và thanh toán đơn hàng trực tiếp trên ứng dụng.</p>
</div>
</div>
<div class="carousel-item">
<div class="box">
<div class="client_info">
<div class="client_name">
<h5>
Hướng dẫn mua hàng trực tiếp
</h5>
<h6>
</h6>
</div>
<i class="fa fa-quote-left" aria-hidden="true"></i>
</div>
<p>Bạn có thể đến mua các sản phẩm Levents® trực tiếp tại hệ thống cửa hàng:</p>
<p>+ 70 Tô Ký, Tân Hưng Thuận, Quận 12, Thành phố Hồ Chí Minh</p>
</div>
</div>
</div>
<div class="carousel_btn-box">
<a class="carousel-control-prev" href="#customCarousel2" role="button" data-slide="prev">
<i class="fa fa-angle-left" aria-hidden="true"></i>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#customCarousel2" role="button" data-slide="next">
<i class="fa fa-angle-right" aria-hidden="true"></i>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</section>
<!-- end shop section -->
<!-- info section -->
<section class="info_section layout_padding2-top">
<div class="social_container">
<div class="social_box">
<a href="https://www.facebook.com/profile.php?id=100094763028645&mibextid=ZbWKwL">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a>
<a href="https://twitter.com/Shop_Suit_Able">
<i class="fa fa-twitter" aria-hidden="true"></i>
</a>
<a href="https://instagram.com/shopsuit_able?utm_source=qr&igshid=MzNlNGNkZWQ4Mg%3D%3D">
<i class="fa fa-instagram" aria-hidden="true"></i>
</a>
<a href="">
</a>
</div>
</div>
<div class="info_container ">
<div class="container">
<div class="row">
<div class="col-md-6 col-lg-3">
<h6>
SuitAble
</h6>
<p>
Thời trang trẻ trung, năng động, phong cách.
</p>
</div>
<div class="col-md-6 col-lg-3">
<div class="info_form ">
<h5>
Người dùng mới
</h5>
<form action="register.php">
<input type="email" placeholder="Enter your email">
<button>
Đăng kí ngay
</button>
</form>
</div>
</div>
<div class="col-md-6 col-lg-3">
<h6>
Hỗ trợ
</h6>
<p>
Đội ngũ của chúng tôi sẽ hỗ trợ tư vấn mọi thắc mắc, khó khăn của bạn trong thời gian sớm nhất có thể
</p>
</div>
<div class="col-md-6 col-lg-3">
<h6>
Liên hệ
</h6>
<div class="info_link-box">
<a>
<p> Quận 12, Thành phố Hồ Chí Minh </p>
</a>
<a>
<p>0123 456 789</p>
</a>
<a>
<p> shopsuitable.uth@gmail.com</p>
</a>
</div>
</div>
</div>
</div>
</div>
<?php
include "connect.php";
if(isset($_POST['xoa_sp'])){
$id_sp = $_POST['id_xoa_sp'];
$account = $_SESSION['account'];
$xoa_sp = "DELETE FROM tb_giohang WHERE id = '$id_sp'";
$check_result = mysqli_query($conn, $xoa_sp);
}
?>
</section>
<!-- end info section -->
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js">
</script>
<script src="js/custom.js"></script>
</body>
</html>