-
Notifications
You must be signed in to change notification settings - Fork 7
/
cart.html
267 lines (261 loc) · 11.2 KB
/
cart.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>eMercado - Todo lo que busques está aquí</title>
<link rel="shortcut icon" href="icons\singleIcon.png">
<link href="https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,700,700i,900,900i" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
<link rel="stylesheet" href="sweetalert2.min.css">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark p-1">
<div class="col-12">
<div class="row">
<div class="col-8 col-lg-2">
<a class="logoItem" href="index.html"><img class="logo" src="icons\logo(190x45px).svg"></a>
</div>
<div class="col-2 col-lg-10">
<div class="container">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav w-100 justify-content-between align-items-center">
<li class="nav-item">
<a class="nav-link" href="index.html"><i class="bi bi-house-door"></i> Inicio</a>
</li>
<li class="nav-item">
<a class="nav-link" href="categories.html"><i class="bi bi-bookmark"></i></i> Categorías</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sell.html"><i class="bi bi-cash-coin"> </i>Vender</a>
</li>
<li class="nav-item" id="dropmenu"></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</nav>
<main>
<!--Carrito-->
<div class="container">
<main class="pb-5">
<div class="text-center p-4">
<h2><i class="bi bi-cart4"></i> Carrito de compras</h2>
</div>
<div class="container">
<div class="col text-start">
<p class="lead"><i class="bi bi-box-seam"></i> Articulos a comprar</p>
</div>
<table class="table border-bottom" id="cart-table">
<tr style="border-bottom: black;">
<th>
<th>Nombre</th>
<th>Costo</th>
<th>Cantidad</th>
<th>Subtotal</th>
</tr>
<tbody id="cart-table-body">
</tbody>
</table>
</div>
<!--Opciones de envío-->
<div class="container">
<div class="row">
<div class="col-md-6">
<form id="checkoutForm">
<div class="text-start">
<p class="lead"><i class="bi bi-truck"></i> Tipo de Envío:</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="tipoEnvio" id="premiumEnvio" value="15" required>
<label class="form-check-label" for="premiumEnvio">
Premium 2 a 5 días (15%)
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="tipoEnvio" id="expressEnvio" value="7" required>
<label class="form-check-label" for="expressEnvio">
Express 5 a 8 días (7%)
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="tipoEnvio" id="standardEnvio" value="5" required>
<label class="form-check-label" for="standardEnvio">
Standard 12 a 15 días (5%)
</label>
</div>
</div>
<div class="text-start mt-3">
<p class="lead"><i class="bi bi-geo-alt"></i></i> Dirección de Envío:</p>
<div class="mb-3">
<label for="calle" class="form-label">Calle:</label>
<input type="text" class="form-control" id="calle" placeholder="Ingresa la calle" required>
<div class="invalid-feedback">
Ingresa una calle
</div>
</div>
<div class="mb-3">
<label for="numero" class="form-label">Número:</label>
<input type="text" class="form-control" id="numero" placeholder="Ingresa el número" required>
<div class="invalid-feedback">
Ingresa un número
</div>
</div>
<div class="mb-3">
<label for="esquina" class="form-label">Esquina:</label>
<input type="text" class="form-control" id="esquina" placeholder="Ingresa la esquina" required>
<div class="invalid-feedback">
Ingresa una esquina
</div>
</div>
</div>
</div>
<!--Costos del producto-->
<div class="col-md-6">
<div class="container">
<p class="lead"><i class="bi bi-tags"></i> Costos</p>
<div class="form-control">
<div class="row">
<div class="col-8 text-muted">
<h5>Subtotal</h5>
<p>Costo unitario del producto por cantidad</p>
</div>
<div class="col-4 text-muted text-end" id="subTotalFinal">
</div>
</div>
</div>
<div class="form-control">
<div class="row">
<div class="col-8 text-muted">
<h5>Costo de envio</h5>
<p>Segun el tipo de envio</p>
</div>
<div class="col-4 text-muted text-end" id="costoEnvio">
</div>
</div>
</div>
<div class="form-control">
<div class="row">
<div class="col-8 text-muted">
Total ($)
</div>
<div class="col-4 text-end" id="precioFinal">
</div>
</div>
</div>
</div>
<!--Forma de pago-->
<div class="container">
<p class="lead mt-3"><i class="bi bi-wallet2"></i> Forma de pago</p>
<div class="row">
<div class="col-12 col-md-5">
<p id="selectedPaymentText">No ha seleccionado</p>
</div>
<div class="col-12 col-md-5">
<button type="button" class="m-1 btn btn-dark" data-toggle="modal" data-target="#paymentModal">Seleccionar</button>
</div>
</div>
<button id="btnFinalizarCompra" class="col-12 btn btn-success">
Finalizar Compra <i class="bi bi-cart-check-fill"></i>
</button>
</div>
</form>
</div>
</div>
</div>
<!--Payment Modal-->
<div class="modal fade" id="paymentModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><i class="bi bi-wallet-fill"></i> Forma de Pago</h4>
</div>
<div class="modal-body">
<form id="paymentForm">
<div class="form-check">
<input class="form-check-input" type="radio" id="creditCardRadio" name="paymentOption" value="creditCard">
<label class="form-check-label" for="creditCardRadio">Tarjeta de Crédito o Débito <i class="bi bi-credit-card"></i></label>
</div>
<hr>
<div id="creditCardFields" class="form-group">
<div class="container">
<div class="row">
<div class="col-md-7">
<label for="creditCardNumber">Número de Tarjeta:</label>
<input type="number" inputmode="numeric" id="creditCardNumber" class="form-control py-2 payment-field no-arrow-input" required>
</div>
<div class="col-md-4">
<label for="securityCode">Código de Seg.:</label>
<input type="password" id="securityCode" class="form-control py-2 payment-field" required>
</div>
<div class="col-md-7 py-1">
<label for="expirationDate">Vencimiento (MM/AA):</label>
<input type="text" id="expirationDate" class="form-control py-2 payment-field" pattern="\d{2}/\d{2}" required>
</div>
</div>
</div>
</div>
<div class="form-check pt-4">
<input class="form-check-input" type="radio" id="bankTransferRadio" name="paymentOption" value="bankTransfer">
<label class="form-check-label" for="bankTransferRadio">Transferencia Bancaria <i class="bi bi-bank2"></i></label>
</div>
<hr>
<div id="bankTransferFields" class="form-group">
<div class="container">
<div class="row">
<div class="col-md-7">
<label for="accountNumber">Número de Cuenta:</label>
<input type="number" inputmode="numeric" id="accountNumber" class="form-control py-2 payment-field no-arrow-input">
</div>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer" class="form-group">
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn btn-success" id="saveButton">Guardar</button>
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="text-muted">
<div class="container">
<p class="float-end">
<a href="#">Volver arriba</a>
</p>
<p>Este sitio forma parte de <a href="https://jovenesaprogramar.edu.uy/" target="_blank">Jovenes a Programar</a>
</p>
</div>
</footer>
<div id="spinner-wrapper">
<div class="lds-ring">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="https://kit.fontawesome.com/11606f83bb.js" crossorigin="anonymous"></script>
<script src="js/init.js"></script>
<script src="js/cart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</body>
</html>