forked from Vimall03/Alimento
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.php
196 lines (165 loc) · 6.18 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
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
<?php
session_start();
//connect to database
include 'partials/_dbconnect.php';
$order=$_SESSION['Order'];
$amount=$_SESSION['amount'];
$userId= $_SESSION['user_id'];
$rid = $_SESSION['rest_id'];
$oid = mt_rand(10000, 99999);
$_SESSION['orderid'] = str_pad($oid, 5, '0', STR_PAD_LEFT);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checkout</title>
<link rel="stylesheet" href="checkout.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href=".css">
<link rel="stylesheet" href="main.css">
</head>
<body>
<nav class="nav" style="topo:0">
<div class="nav__wrapper grid">
<div class="grid__span2 nav__logo-wrap">
<a href="home.php">
<img class="nav__logo-img" src="images/logo/Logo.png">
</a>
</div>
<div class="grid__span10 nav__links-wrap">
<ul class="nav__links">
<li class="nav__link">
<a href="track_order.php">
<img class="nav__link-icon" style="width: 1.8rem" src="images/favicons/tableware_50px.png">
<span class="nav__link-item">Orders</span>
</a>
</li>
<li class="nav__link">
<a href="#contact">
<img class="nav__link-icon" src="images/favicons/phone_32px.png">
<span class="nav__link-item">Contact </span>
</a>
</li>
<li class="nav__link">
<a href="user_logout.php">
<img class="nav__link-icon" style="width: 1.9rem" src="images/favicons/user_male_circle_32px.png">
<span class="nav__link-item">Logout</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<br>
<br>
<br>
<br>
<br>
<br>
<div >
<form action="pay.php" method="post">
<div class="container">
<!-- Contact and Shipping Form -->
<div class="form-section">
<h3>Contact Information</h3>
<!-- <label for="email">Email address</label> -->
<input type="email" id="email" placeholder="Enter your email" required="">
<!-- <label for="phone">Phone</label> -->
<input type="text" id="phone" placeholder="Enter your phone number" required="">
<div class="form-group">
<div>
<!-- <label for="first-name">First name</label> -->
<input type="text" id="first-name" placeholder="First name" required="">
</div>
<div>
<!-- <label for="last-name">Last name</label> -->
<input type="text" id="last-name" placeholder="Last name" required="">
</div>
</div>
<h3>Billing & Shipping</h3>
<!-- <label for="address">House number and street name</label> -->
<input type="text" id="address" placeholder="Enter your address" required="">
<!-- <label for="city">Town / City</label> -->
<input type="text" id="city" placeholder="Town / City" required="">
<!-- <label for="state">State</label> -->
<select id="state">
<option value="Madhya Pradesh">Madhya Pradesh</option>
<option value="Uttar Pradesh">Uttar Pradesh</option>
<option value="Delhi">Delhi</option>
</select>
<!-- <label for="zip">ZIP Code</label> -->
<input type="text" id="zip" placeholder="ZIP Code">
<h3>Additional information</h3>
<!-- <label for="notes">Notes about your order</label> -->
<textarea id="notes" rows="4" placeholder="Special notes for delivery"></textarea>
</div>
<!-- Order Summary Section -->
<div class="summary-section">
<h3>Order Summary</h3>
<br><br>
<?php foreach ($order as $item) {
?>
<div class="item">
<div class="item-details">
<h5><strong><?php echo $item; ?></strong></h5>
</div>
<!-- <div class="item-price">$9.48</div> -->
</div>
<?php } ?>
<!-- <h3>Shipping</h3>
<label><input type="radio" name="shipping" checked> Local pickup</label><br>
<label><input type="radio" name="shipping"> Local Delivery: $2.99</label>
<label for="pickup-date">Pickup Date</label>
<select id="pickup-date">
<option>As soon as possible</option>
<option>Tomorrow</option>
<option>Later this week</option>
</select>
<h3>Tip Amount</h3>
<div class="tip-options">
<button class="tip-btn">15%</button>
<button class="tip-btn">18%</button>
<button class="tip-btn">22%</button>
<button class="tip-btn active">No Tip</button>
<button class="tip-btn">Custom Tip</button>
</div> -->
<div class="total">
<div>Subtotal</div>
<div><?php echo $amount; ?></div>
</div>
<div class="total">
<div>Shipping</div>
<div>Free</div>
</div>
<div class="total">
<div>Tax</div>
<div>$1.16</div>
</div>
<div class="total">
<div>Total</div>
<div>$15.63</div>
</div>
<button style="width:100%;height:30px;background-color:#e64a19;color:white;border:none;border-radius:3px;margin-top:12px">Order Place</button>
</div>
</div>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
window.embeddedChatbotConfig = {
chatbotId: "gvEIQuZ1QCpui9UuF1UWX",
domain: "www.chatbase.co"
}
</script>
<script
src="https://www.chatbase.co/embed.min.js"
chatbotId="gvEIQuZ1QCpui9UuF1UWX"
domain="www.chatbase.co"
defer>
</script>
</body>
</html>