-
Notifications
You must be signed in to change notification settings - Fork 1
/
checkout.php
146 lines (130 loc) · 7.52 KB
/
checkout.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
<?php
include_once 'php/sessions.php';
if(isset($_SESSION['user'])){
include_once 'php/profile.php';
} else {
$f_name = "";
$l_name = "";
$u_num = "";
$u_email = "";
$u_addr = "";
$u_postcode = "";
$u_city = "";
$u_province = "";
$u_country = "";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- Title -->
<title>Dee Store | Checkout</title>
<!-- Favicon -->
<link rel="icon" href="img/core-img/favicon.png">
<!-- Core Style CSS -->
<link rel="stylesheet" href="css/core-style.css">
<link rel="stylesheet" href="css/style.css">
<!-- Responsive CSS -->
<link href="css/responsive.css" rel="stylesheet">
<link rel="stylesheet" href="bot/css/chat.css">
</head>
<body>
<?php include_once 'php/header.php'; ?>
<!-- ****** Checkout Area Start ****** -->
<div class="checkout_area section_padding_100">
<div class="container">
<div class="row">
<div class="col-12 col-md-6">
<div class="checkout_details_area mt-50 clearfix">
<div class="cart-page-heading">
<h5>Billing Address</h5>
</div>
<form action="#" method="post">
<div class="row">
<div class="col-md-6 mb-3">
<label for="first_name">First Name <span>*</span></label>
<input type="text" class="form-control" id="first_name" value="<?php echo $f_name; ?>" required>
</div>
<div class="col-md-6 mb-3">
<label for="last_name">Last Name <span>*</span></label>
<input type="text" class="form-control" id="last_name" value="<?php echo $l_name; ?>" required>
</div>
<div class="col-12 mb-3">
<label for="country">Country <span>*</span></label>
<select class="custom-select d-block w-100" id="country">
<option value="Sri Lanka">Sri Lanka</option>
</select>
</div>
<div class="col-12 mb-3">
<label for="street_address">Address <span>*</span></label>
<input type="text" class="form-control mb-3" id="street_address" value="<?php echo $u_addr; ?>" required>
<input type="text" class="form-control" id="street_address2" value="">
</div>
<div class="col-12 mb-3">
<label for="postcode">Postcode <span>*</span></label>
<input type="text" class="form-control" id="postcode" value="<?php echo $u_postcode; ?>">
</div>
<div class="col-12 mb-3">
<label for="city">Town/City <span>*</span></label>
<input type="text" class="form-control" id="city" value="<?php echo $u_city; ?>">
</div>
<div class="col-12 mb-3">
<label for="state">Province <span>*</span></label>
<input type="text" class="form-control" id="state" value="<?php echo $u_province; ?>">
</div>
<div class="col-12 mb-3">
<label for="phone_number">Phone No <span>*</span></label>
<input type="number" class="form-control" id="phone_number" min="0" value="<?php echo $u_num; ?>" required>
</div>
<div class="col-12 mb-4">
<label for="email_address">Email Address <span>*</span></label>
<input type="email" class="form-control" id="email_address" value="<?php echo $u_email; ?>" required>
</div>
<div class="col-12">
<div class="custom-control custom-checkbox d-block mb-2">
<input type="checkbox" class="custom-control-input" id="customCheck1" checked>
<label class="custom-control-label" for="customCheck1">Terms and conitions</label>
</div>
<?php
if(!isset($_SESSION['user'])){
echo '<div class="custom-control custom-checkbox d-block mb-2">
<input type="checkbox" class="custom-control-input" id="customCheck2" checked>
<label class="custom-control-label" for="customCheck2">Create an accout</label>
</div>';
}
?>
<div class="custom-control custom-checkbox d-block">
<input type="checkbox" class="custom-control-input" id="customCheck3" checked>
<label class="custom-control-label" for="customCheck3">Subscribe to our newsletter</label>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="col-12 col-md-6 col-lg-5 ml-lg-auto">
<div class="order-details-confirmation">
<div class="cart-page-heading">
<h5>Your Order</h5>
</div>
<ul class="order-details-form mb-4">
<li><span>Subtotal</span> <span>LKR <?php echo $cart_total; ?></span></li>
<li><span>Shipping</span> <span>Free</span></li>
<li><span>Total</span> <span>LKR <?php echo $cart_total; ?></span></li>
</ul>
<br> <br>
<a href="#" class="btn karl-checkout-btn" onclick="place_order();">Place Order</a>
</div>
</div>
</div>
</div>
</div>
<!-- ****** Checkout Area End ****** -->
<?php
include_once 'php/footer.php';
?>