-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment.html
180 lines (151 loc) · 5.64 KB
/
payment.html
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
<!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">
<title>Payment</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://kit.fontawesome.com/a9dbdcc6e4.js" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css2?family=Lato&family=Noto+Sans&family=Poppins:wght@500;700;900&family=Roboto:wght@500&display=swap" rel="stylesheet">
<style>
#main{
width: 90%;
margin: auto;
font-family: Futura-Medium, "Century Gothic", "Gill Sans", Helvetica, Arial, sans-serif;;
display: grid;
grid-template-columns: repeat(3,1fr);
}
input{
padding: 10px 5px 10px 5px;
margin-top: 10px;
margin-bottom: 10px;
}
button{
padding: 10px 5px 10px 5px ;
margin-top: 10px;
color: white;
background-color: black;
}
select{
padding: 10px 5px 10px 5px;
margin-top: 10px;
margin-bottom: 10px;
}
#M{
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
padding: 10px 10px 10px 10px;
}
#P{
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
padding: 10px 10px 10px 10px;
}
#finalp{
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
display: flex;
justify-content: space-around;
}
#BS>button{
width: 80px;
}
</style>
</head>
<body>
<a href="cart.html"><p> < back to cart </p></a>
#back_to_cart{
margin-left: 75px;
margin-bottom: 30px;
}
#BS{
margin-top: -5px;
}
</style>
</head>
<body>
<a href="cart.html"><button id="back_to_cart"> <i class="fa-solid fa-arrow-left-long"></i> Back to Cart </button></a>
<div id="main">
<div id="add">
<h3>SHIPPING ADDRESS</h3>
<P>Please enter your shipping address in the form below.</P>
<input type="radio" name="des" id="Ms." value="Ms."> <label for="Ms.">Ms.</label>
<input type="radio" name="des" id="Mrs." value="Mrs."> <label for="Mrs.">Mrs.</label>
<input type="radio" name="des" id="Mr." value="Mr."> <label for="Mr.">Mr.</label>
<br>
<input type="text" placeholder="Name*" required>
<br>
<input type="text" placeholder="street*" required>
<br>
<input type="text" placeholder="address*" required>
<br>
<input type="number" placeholder="postcode*" required>
<br>
<input type="text" placeholder="city*" required>
<br>
<select name="country" id="country" >
<option value=""><----Select Country----></option>
<option value="India">India</option>
<option value="Canada">Canada</option>
<option value="Austrelia">Austrelia</option>
<option value="USA">"USA</option>
<option value="UK">UK</option>
<option value="UAE">UAE</option>
<option value="China">China</option>
<option value="Japan">Japan</option>
<option value="Nepal">Nepal</option>
<option value="Bhutan">Bhutan</option>
</select>
<br>
<button onclick="myfunctionAdd()">ADD SHIPPING ADDRESS</button>
</div>
<hr>
<div id="pay">
<div id="M">
<h3>PAYMENT METHOD</h3>
<input name="method" type="radio"> <label for="UPI">UPI</label>
<br>
<input name="method" type="radio"> <label for="UPI">Wallet</label>
<br>
<input name="method" type="radio"> <label for="UPI">Credit/Debit/ATM Card</label>
<br>
<input name="method" type="radio"> <label for="UPI">EMI</label>
<br>
<input name="method" type="radio"> <label for="UPI">Cash on Delivery</label>
</div>
<p>100% Safe & Secure Payments</p>
<div id="P">
<h4>Payment details</h4>
<p id="priceTotal"></p>
<p>Delivery charges:- FREE</p>
<hr>
<p id="payable"></p>
</div>
<div id="finalp">
<div id="PS">
<h5 id="totalamount" ></h5>
</div>
<div id="BS">
<button onclick="myfunctionfinal()">Pay</button>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
let totalAmount=localStorage.getItem("lystTotalPrice") ||0;
document.getElementById("totalamount").innerText="Total Amount:-"+" "+totalAmount+"$";
document.getElementById("payable").innerText="Payable Amount:-"+" "+totalAmount+"$";
document.getElementById("priceTotal").innerText="Price:-"+" "+totalAmount+"$";
function myfunctionAdd(){
alert("Address is sucessfully added")
alert("Please Select payment method")
}
function myfunctionfinal(){
alert("Payment Successfully done");
alert("Your Order is placed")
window.location.assign("confirmation.html")
}
</script>