-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment.php
More file actions
59 lines (54 loc) · 2.11 KB
/
payment.php
File metadata and controls
59 lines (54 loc) · 2.11 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
<?php
include "includes/header.php";
if(!isset($_SESSION['username'])){
header("Location: login.php");
}
if($getUserSetting['website_status']=="Close"){
header("Location: shop.php");
}
include "includes/navbar.php";
$getCartTotalPrice=getCartTotalPrice();
if($getCartTotalPrice <= $getUserSetting['cart_min_price']){
$_SESSION['cart_min_message']=$getUserSetting['cart_min_message'];
header("Location: cart.php");
}
?>
<div class="container-fluid">
<div class="container pt-3">
<nav class="breadbcrumb shadow-sm">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active" area-current="page">shop</li>
</ol>
</nav>
<div class="row">
<div class="col-md-3">
<?php
include "includes/sidebar.php";
?>
</div>
<div class="col-md-9">
<div class="card">
<div class="card-body">
<h3 class="text-center mb-5">Payment Options</h3>
<?php
$user=$_SESSION['username'];
$get_user="select * from customers where cus_username='$user'";
$run_user=mysqli_query($conn,$get_user);
$row=mysqli_fetch_assoc($run_user);
$cus_id=$row['cus_id'];
$cus_email=$row['cus_email'];
echo '<h5 class="text-center"><a href="order.php?c_id='.$cus_id.'">Pay Offline</a></h5>';
?>
<h5 class="text-center mt-4"><a href="">Pay Using Paypal
<div class="card-img-bottom float-center w-100 px-5" style="height:200px;width:300px;"><img src="img/product_images/paypal.jpg" class="w-100 h-100 responsive-img" alt=""></div>
</a></h5>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include "includes/footer.php";
?>