-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart-checkout.html
279 lines (273 loc) · 19.1 KB
/
cart-checkout.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<html>
<head>
<title>Cart Checkout</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/cart-checkout-style.css" />
<link rel="stylesheet" href="css/default-style.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body style="margin: 0;">
<div class="callout">
<div class="text-left">
<h1>Checkout (2 Items)</h1>
</div>
</div>
<div class="grid-container">
<div class="products-container">
<div class="step-form-cart">
<div class="form">
<div class="step-form email-add" id="add-email">
<div class="row">
<div class="large-1 columns">
<span class="no-check">1</span>
<span class="check" style="display: none;">+</span>
</div>
<div class="large-7 columns">
<h2 class="heading">Add email address for download</h2>
<input type="text" value="" class="emailAdd" id="emailaddress" name="emailaddress" placeholder="Enter your email address..." onkeypress="checkEmail(this.value)">
<span class="error-msg">Please enter valid email address</span>
</div>
<div class="large-4 columns">
<a class="btn-disabled" id="saveEmail" href="javascript:void(0)">Save</a>
</div>
</div>
</div>
<div class="step-form email-edit" id="edit-email">
<div class="row">
<div class="large-1 columns">
<span class="no-check">✔</span>
</div>
<div class="large-7 columns">
<h2 class="heading">Add email address for download</h2>
<a href="javascript:void(0)" class="edit-btn" id="edit-email-sect">Edit</a>
<input for="user-email" class="user-email" id="setEmail" disabled>
</div>
<div class="large-4 columns"></div>
</div>
</div>
<div class="step-form billing" id="add-billing">
<div class="row">
<div class="large-1 columns">
<span class="no-check">2</span>
</div>
<div class="large-7 columns"><h2 class="heading">Billing Information</h2>
<label for="name"><b>Billing Name</b></label>
<input type="text" name="billingName" id="billName" placeholder="Billing name" onblur="isNotEmpty('#billName')">
<span class="error-bill-name">Name cannot be blank</span>
<label for="add1"><b>Address (line1)</b></label>
<input type="text" name="add1" id="add1" value="" placeholder="Address" onblur="isNotEmpty('#add1')">
<span class="error-bill-add1">Enter address</span>
<label for="add2"><b>Address (line2)</b></label>
<input type="text" name="add2" id="add2" value="" placeholder="Address">
<label for="state"><b>State</b></label>
<input type="text" id="cust-state" name="cust-state" value="" onblur="isNotEmpty('#cust-state')">
<span class="error-cust-state">State cannot be blank</span>
<div class="row">
<div class="large-6 columns">
<label for="city"><b>City</b></label>
<input type="text" id="cust-city" name="cust-city" value="" onblur="isNotEmpty('#cust-city')">
<span class="error-cust-city">City cannot be blank</span>
</div>
<div class="large-6 columns">
<label for="zip-code"><b>Zipcode</b></label>
<input type="text" name="zip-code" id="zipCode" value="" onblur="isNotEmpty('#zipCode')">
<span class="error-zipcode">Zipcode cannot be blank</span>
</div>
</div>
</div>
<div class="large-4 columns">
<a href="javascript:void(0)" class="btn-disabled" id="saveBilling">Save</a>
</div>
</div>
</div>
<div class="step-form billing-edit" id="edit-billing">
<div class="row">
<div class="large-1 columns">
<span class="no-check">✔</span>
</div>
<div class="large-7 columns">
<div><h2 class="heading">Billing Information</h2>
<a href="javascript:void(0)" class="edit-btn" id="edit-billing-sect">Edit</a></div>
<label for="name"><b>Billing Name</b></label>
<input type="text" name="billingName" id="set_billName" disabled>
<label for="add1"><b>Address (line1)</b></label>
<input type="text" name="add1" id="set_add1" value="" disabled>
<label for="add2"><b>Address (line2)</b></label>
<input type="text" name="add2" id="set_add2" value="" disabled>
<label for="state"><b>State</b></label>
<input type="text" id="set_cust_state" name="cust-state" value="" disabled>
<div class="row">
<div class="large-6 columns">
<label for="city"><b>City</b></label>
<input type="text" id="set_cust_city" name="cust-city" value="" disabled>
</div>
<div class="large-6 columns">
<label for="zip-code"><b>Zipcode</b></label>
<input type="text" name="zip-code" id="set_zipCode" value="" disabled>
</div>
</div>
</div>
<div class="large-4 columns"></div>
</div>
</div>
<div class="step-form payment" id="add-payment">
<div class="row">
<div class="large-1 columns">
<span class="no-check">3</span>
</div>
<div class="large-7 columns"><h2 class="heading">Payment method</h2>
<label for="name"><b>name on card</b></label>
<input type="text" name="fullName" placeholder="Full name as it appears on card" oninput="CC_name_format()" id="ccName">
<span class="error-cc-name">Name cannot be blank</span>
<label for="cardNo"><b>card number</b></label>
<input type="text" name="cardNo" id="ccNo" value="" placeholder="xxxx xxxx xxxx xxxx" onkeypress="validateCCnumber()">
<span class="error-cc-no">Please enter valid credit card number</span>
<div class="row">
<div class="large-6 columns">
<label for="expDate"><b>exp. date</b></label>
<input type="text" id="ccDate" name="date" maxlength="7" placeholder="MM / YYYY" value="" oninput="checkDateFormat(value)">
<span class="error-cc-date">Please enter a valid date in MM/YY format</span>
</div>
<div class="large-6 columns">
<label for="ccv"><b>ccv</b></label>
<input type="text" name="ccv" id="cvvNo" placeholder="..." maxlength="4" value="" oninput="checkCvvFormat(value)">
<span class="error-cvv">Please enter valid CVV number</span>
</div>
</div>
</div>
<div class="large-4 columns">
<a href="javascript:void(0)" class="btn-disabled" id="saveCC">Save</a>
</div>
</div>
</div>
<div class="step-form payment-edit" id="edit-payment">
<div class="row">
<div class="large-1 columns">
<span class="no-check">✔</span>
</div>
<div class="large-7 columns">
<div><h2 class="heading">Payment method</h2>
<a href="javascript:void(0)" class="edit-btn" id="edit-payment-sect">Edit</a></div>
<label for="name"><b>name on card</b></label>
<input type="text" name="fullName" placeholder="Full name as it appears on card" id="set_ccName" disabled>
<span class="error-cc-name">Name cannot be blank</span>
<label for="cardNo"><b>card number</b></label>
<input type="text" name="cardNo" id="set_ccNo" value="" placeholder="xxxx xxxx xxxx xxxx" disabled>
<span class="error-cc-no">Please enter valid credit card number</span>
<div class="row">
<div class="large-6 columns">
<label for="expDate"><b>exp. date</b></label>
<input type="text" id="set_ccDate" name="date" maxlength="7" placeholder="MM / YYYY" value="" disabled>
<span class="error-cc-date">Please enter a valid date in MM/YY format</span>
</div>
<div class="large-6 columns">
<label for="ccv"><b>ccv</b></label>
<input type="text" name="ccv" id="set_cvvNo" placeholder="..." maxlength="4" value="" disabled>
<span class="error-cvv">Please enter valid CVV number</span>
</div>
</div>
</div>
<div class="large-4 columns"></div>
</div>
</div>
<div class="step-form review-edit">
<div class="row">
<div class="large-1 columns">
<span class="no-check">4</span>
</div>
<div class="large-11 columns">
<h2 class="heading">Review and edit items</h2>
<div class="review-product-scroller">
<div class="review-product">
<img src="img/product-image.jpg" alt="">
<h2>LGBT Benefits Around the World - Global Edition</h2>
<p class="prod-price">$750.00</p>
<a href="javascript:void(0)">Digital Download (PDF)</a>
<a href="javascript:void(0)">Remove</a>
</div>
<div class="review-product">
<img src="img/product-image.jpg" alt="">
<h2>LGBT Benefits Around the World - Global Edition</h2>
<p class="prod-price">$750.00</p>
<a href="javascript:void(0)">Digital Download (PDF)</a>
<a href="javascript:void(0)">Remove</a>
</div>
<div class="review-product">
<img src="img/product-image.jpg" alt="">
<h2>LGBT Benefits Around the World - Global Edition</h2>
<p class="prod-price">$750.00</p>
<a href="javascript:void(0)">Digital Download (PDF)</a>
<a href="javascript:void(0)">Remove</a>
</div>
<!-- <div class="review-product">
<img src="img/product-image.jpg" alt="">
<h2>LGBT Benefits Around the World - Global Edition</h2>
<p class="prod-price">$750.00</p>
<a href="javascript:void(0)">Digital Download (PDF)</a>
<a href="javascript:void(0)">Remove</a>
</div> -->
</div>
</div>
</div>
<div class="row">
<div class="large-8 promo-container">
<h3 class="promo-label"><a href="javascript:void(0)" id="getPromo" onclick="hasPromoCode()">Do you have a promo code?</a></h3>
<div class="promo-apply" style="display:none;">
<div class="promo-appl-field">
<input type="text" name="promoApply" id="promoApply" oninput="promoCodeApply()" placeholder="Enter your promo code...">
</div>
<a href="javascript:void(0)" class="promo-appl-btn disabled">Apply</a>
<p><a href="javascript:void(0)" id="showPromo">How do I get one of these?<span class="tooltiptext tooltip-bottom">Tooltip text here</span></a></p>
</div>
<div class="promo-update" id="promoUpdate" style="display:none;">
<h3 class="disc-label"><a href="#">If you add to cart now you will save $50!</a></h3>
<input type="text" name="promoUpdate" value="" id="promoCode_value" disabled>
<a href="javascript:void(0)" class="edit-btn" onclick="promoCodeApply()">Edit</a>
<a href="javascript:void(0)" class="remove-btn" onclick="hasPromoCode()">Remove</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="place-order-footer">
<div class="place-order-details">
<a href="#" class="order-btn" id="place-order">Place your order ></a>
<div class="place-order-quote">
<p class="ord-total">Order total: <span>$1,500.00</span></p>
<p class="disclaimer">By placing your order, you agree to Mercer's <a href="#">privacy notice</a> and <a href="#">conditions of use.</a></p>
</div>
</div>
</div>
</div>
<!-- Product right components -->
<div class="product-sidebar">
<!-- Proceed to checkout components-->
<div class="products-left-container">
<div class="place-order">
<a href="#" class="order-btn">Place your order ></a>
<p class="disclaimer">By placing your order, you agree to Mercer's <a href="#">privacy notice</a> and <a href="#">conditions of use.</a></p>
</div>
<div class="order-summary">
<h3>Order Summary</h3>
<div class="row">
<div class="order-items">Items</div>
<div class="order-price">$1,500.00</div>
</div>
<div class="row">
<div class="order-items">Sales Tax:*</div>
<div class="order-price">$00.00</div>
</div>
</div>
<div class="order-total">
order total: <span> $1,500.00</span>
</div>
</div>
<!-- Proceed to checkout components ends-->
</div>
<!-- Product right components ends-->
</div>
<script src='js/jquery.min.js'></script>
<script src="js/validation.js"></script>
</body>
</html>