-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.php
110 lines (105 loc) · 4.23 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
<?php
include('includes/connect.php');
include('./functions/common_funcs.php');
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checkout - SHAROD</title>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@500;600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/cart.css">
<link rel="stylesheet" type="text/css" href="css/body.css">
<link rel="stylesheet" type="text/css" href="css/footer.css">
<link rel="stylesheet" type="text/css" href="css/navbar.css">
</head>
<body>
<header>
<div class="navbar">
<pre><a class="logo" href="index.php">{ SHAROD }</a></pre>
<ul class="nav-list">
<li class=""><a href="index.php">Home</a></li>
<li><a href="shop.php">Shop</a></li>
<li><a href="">About</a></li>
<li><a href="">Contact</a></li>
</ul>
<div class="nav-icon">
<?php
if (!isset($_SESSION['email'])) {
echo "<i class='fas'><a href='login.php'></a></i>
<i class='fas'><a href='login.php'></a></i>";
} else {
echo "<i class='fas'><a href='profile.php'></a></i>
<i class='fas'><a href='wishlist.php'></a></i>
<i class='fas'><a href='cart.php'></a></i><sup class='text-danger'>";
if (cart_item() > 0) {
echo cart_item();
}
echo "</sup>";
}
?>
</div>
<div class="menu-toggle">
<i class="fas fa-bars"></i>
<i class="fas fa-times"></i>
</div>
</div>
</header>
<header class="cartHead text-center">
<h1><b>- <u>CHECKOUT PAGE</u> -</b></h1>
</header>
<main>
<?php
if(!isset($_SESSION['email'])){
echo "<script>window.open('login.php','_self')</script>";
}
else
{
echo "<script>window.open('payment.php','_self')</script>";
}
?>
</main>
<footer>
<div class="footer-box">
<div class="footer-text">
<pre class="logo">{ SHAROD }</pre>
<p>Bringing your home closer to you, one piece at a time.</p>
</div>
<div class="footer-text">
<h4>Help</h4>
<ul>
<li><a href="#">Plans</a></li>
<li><a href="#">Track Order</a></li>
<li><a href="#">Store Locator</a></li>
<li><a href="#">Return Policy</a></li>
</ul>
</div>
<div class="footer-text">
<h4>About Us</h4>
<ul>
<li><a href="#">Our Story</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Affiliate</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div class="footer-text">
<h4>Follow Us</h4>
<ul>
<li><a href="#">Facebook</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Instgram</a></li>
<li><a href="#">YouTube</a></li>
</ul>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-qKXV1j0HvMUeCBQ+QVp7JcfGl760yU08IQ+GpUo5hlbpg51QRiuqHAJz8+BrxE/N" crossorigin="anonymous"></script>
</body>
</html>