-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.php
More file actions
132 lines (130 loc) · 5.34 KB
/
checkout.php
File metadata and controls
132 lines (130 loc) · 5.34 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
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
<?php
session_start();
require "dbclass.php";
$user_id = $_SESSION['$user_id'];
if(!isset($user_id)){
header('location:index.php');
}
$getUserobj = new register_login();
$getUser = $getUserobj->getUser($user_id);
foreach($getUser as $u){
$name = $u['nom'];
$prenom = $u['prenom'];
$codepostal = $u['codepostal'];
$adresseLiv = $u['adresseLiv'];
$tele = $u['tele'];
$email = $u['email'];
$contry = $u['contry'];
}
?>
<!DOCTYPE html>
<html lang="en">
<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">
<script src="https://kit.fontawesome.com/8579b38148.js" crossorigin="anonymous"></script>
<link rel="icon" href="images/favicon.png" >
<link rel="stylesheet" href="styles/template.css">
<script src="js/cart.js" defer></script>
<script src="js/run.js" defer></script>
<script src="jquery/jquery-3.6.0.min.js"></script>
<script src="js/checkoutpageajx.js" defer></script>
<link rel="stylesheet" href="styles/checkout.css">
<title>OrdiShop - Maroc</title>
</head>
<body>
<!-- cart -->
<?php include "includes/cart.php" ?>
<!-- cart -->
<?php include "includes/acountpopup.php" ?>
<!-- header -->
<?php include "includes/header.php" ?>
<!-- checkoutandcart -->
<div class="maincheckoutbodyP">
<div class="alreadycartP">
<div class="cardcontainerP">
<div class="cardheaderP">
<div class="xP">
<h2>Cart(<?php echo count($getcartstock) ?>)</h2>
</div>
<p>Free Shipping, 30 Days Return, 1 Year Warranty</p>
<!-- <div class="divider"></div> -->
</div>
<div class="cardbodyP">
<?php
foreach($getcartstock as $cart){
?>
<ul class="productslistP">
<li>
<div class="startP">
<p><?php echo $cart['name'];?></p>
<p class="priceP"><?php echo $cart['price'];?> DH x <?php echo $cart['quantity'];?></p>
</div>
<div class="endP">
<img src="<?php echo $cart['image'];?>" alt="err" style="height: 100px;">
</div>
</li>
</ul>
<?php
}
?>
<form action="">
<input class="codepromo1P" type="text" placeholder="code promo">
<button>Apply</button>
</form>
</div>
<div class="cardfooterP">
<div class="totalP">
<p>Subtotal</p>
<p>4,000.00 Dh</p>
</div>
<div class="btncheckoutcardP">
<!-- <form action="">
<input type="submit" value="CONFIRM">
</form> -->
<a href="thankyoupage.php" id="confirm">CONFIRM</a>
</div>
</div>
</div>
</div>
<div class="checkoutinfo">
<div class="personalinfo">
<h3>Personal Information</h3>
<form action="">
<div>
<input type="text" placeholder="votre Nom" value="<?php echo $name ?>">
<input type="text" placeholder="votre Prenom*" id="prenom" value="<?php echo $prenom ?>">
</div>
<div>
<input type="text" placeholder="company">
<input type="email" placeholder="email" value="<?php echo $email ?>">
</div>
<div>
<input type="text" placeholder="pays*" id="country" value="<?php echo $contry ?>">
<input type="number" placeholder="code postal*" id="codepostal" value="<?php echo $codepostal ?>">
</div>
<div>
<input type="text" placeholder="adresse*" id="adresse" value="<?php echo $adresseLiv ?>">
</div>
<div>
<input type="text" placeholder="numero de telephone*" id="tele" value="<?php echo $tele ?>">
</div>
</form>
</div>
<div class="paymentsdetails">
<h3>Payments Details</h3>
<form action="">
<div>
<input type="text" placeholder="Credit Card Number">
</div>
<div>
<input type="text" placeholder="Security code">
<input type="text" placeholder="Expiration Date">
</div>
</form>
</div>
</div>
</div>
</body>
</html>