-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.html
327 lines (292 loc) · 13.4 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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<!DOCTYPE html>
<!-- saved from url=(0049)https://getbootstrap.com/docs/4.3/examples/album/ -->
<html lang="en">
<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">
<meta name="description" content="">
<title>eMercado - Todo lo que busques está aquí</title>
<link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/album/">
<link href="https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,700,700i,900,900i" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/css/bootstrap4-toggle.min.css"
rel="stylesheet">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/dropzone.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">JAP E-Mercado</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="row collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav col-12 justify-content-between">
<li class="nav-item active mx-4">
<a class="nav-link" href="home.html">Inicio <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item mx-4">
<a class="nav-link" href="categories.html">Categorías </a>
</li>
<li class="nav-item mx-4">
<a class="nav-link" href="products.html">Productos </a>
</li>
<li class="nav-item mx-4">
<a class="nav-link" href="sell.html">Vender </a>
</li>
<li class="nav-item dropdown ml-auto ">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<span class="d-flex-py-2" id="nombreUsuario"></span>
</a>
<div class="dropdown-menu mr-auto" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="my-profile.html">Mi perfil</a>
<a class="dropdown-item" href="cart.html">Ver mi carrito <span><i
class="fas fa-shopping-cart"></i></span></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" onclick="cerrarSesion()">Cerrar sesión</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="container-fluid p-5">
<div class="text-center p-4">
<h2>Carrito de compra</h2>
<p class="lead">Revisa y confirma tu compra</p>
</div>
<div class="container">
<div class="text-right">
<input onchange="cambiarMoneda(this.checked)" type="checkbox" checked data-toggle="toggle" data-on="UYU"
data-off="USD" data-onstyle="success" data-offstyle="danger">
</div>
<div class="row">
<div class="col-12" id="contenedorCarrito">
<div class="row p-2">
<div class="col-2 text-center">
<h6>Foto</h6>
</div>
<div class="col-5">
<h6 class="">Nombre producto</h6>
</div>
<div class="col-2">
<h6 class="text-center">Precio unitario</h6>
</div>
<div class="col-1">
<h6>Unid.</h6>
</div>
<div class="col-2">
<h6 class="text-center">Subtotal</h6>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-8">
<h3 class="mt-5">Datos de envío:</h3>
<p>Usaremos estos datos para generar tu factura.</p>
<br>
<form>
<div class="form-group">
<label for="inputAddress">Dirección:</label>
<input type="text" class="form-control" id="inputAddress"
placeholder="Nombre de calle, número de puerta, apto o piso">
<small class="obligatorio-envio d-none form-text text-danger">Campo requerido</small>
</div>
<div class="form-group">
<label for="inputAddress2">Esquina:</label>
<input type="text" class="form-control" id="inputAddress2" placeholder="Esquina">
<small class="obligatorio-envio d-none form-text text-danger">Campo requerido</small>
</div>
<div class="form-group">
<label for="inputTelephone">Teléfono de contacto:</label>
<input type="text" class="form-control" id="inputTelephone" placeholder="(+598) 098572881">
<small class="obligatorio-envio d-none form-text text-danger">Campo requerido</small>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputCity">Ciudad:</label>
<input type="text" class="form-control" id="inputCity">
<small class="obligatorio-envio d-none form-text text-danger">Campo requerido</small>
</div>
<div class="form-group col-md-4">
<label for="inputState">País:</label>
<input type="text" class="form-control" id="inputCountry">
<small class="obligatorio-envio d-none form-text text-danger">Campo requerido</small>
</div>
<div class="form-group col-md-2">
<label for="inputZip">Código postal</label>
<input type="text" class="form-control" id="inputZip">
<small class="obligatorio-envio d-none form-text text-danger">Campo requerido</small>
</div>
</div>
<fieldset class="form-group">
<div class="row">
<legend class="col-form-label col-sm-2 pt-0">Tipo de envío:</legend>
<div class="col-sm-10">
<div class="form-check">
<input onclick="actualizarSubtotal()" class="form-check-input" type="radio" name="gridRadios"
id="gridRadios1" value="premium" checked>
<label class="form-check-label" for="gridRadios1">
Premium (2-5 días) - Costo del 15% sobre el subtotal.
</label>
</div>
<div class="form-check">
<input onclick="actualizarSubtotal()" class="form-check-input" type="radio" name="gridRadios"
id="gridRadios2" value="express">
<label class="form-check-label" for="gridRadios2">
Express (5-8 días) - Costo del 7% sobre el subtotal.
</label>
</div>
<div class="form-check">
<input onclick="actualizarSubtotal()" class="form-check-input" type="radio" name="gridRadios"
id="gridRadios3" value="standard">
<label class="form-check-label" for="gridRadios3">
Standard (12 a 15 días) - Costo del 5% sobre el subtotal
</label>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<div class="col-4">
<div id="resumenCompra" class="mt-5 text-right">
<h3 class="text-right">Detalle de la compra:</h3>
<br>
<p class="text-right">Producto: <span id="subtotal" class="ml-5">UYU 12 500</span></p>
<p class="text-right">Tipo de envío: <span id="tipoEnvio" class="ml-5">Premium</span></p>
<p class="text-right">Costo de envío:<span id="costoEnvio" class="ml-5">UYU 500</span></p>
<p class="text-right">Total a pagar:<span id="total" class="ml-5">UYU 13 000</span></p>
<h3 class="text-right mb-3">Método de pago:</h3>
<p id="metodoSeleccionado" ><strong>Sin método agregado</strong></p>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-sm mb-3" data-toggle="modal" data-target="#staticBackdrop">
Seleccionar método
</button>
<br>
<button onclick="checkFinal()" type="button" class="btn btn-block m-3 btn-primary">Confirmar compra</button>
<br>
<button onclick="seguirComprando()" type="button" class="btn btn-block m-3 btn-outline-primary">Seguir
comprando </button>
</div>
</div>
</div>
</div>
</div>
<div id="spinner-wrapper">
<div class="lds-ring">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="staticBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Selecciona tu método de pago</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<input checked id="radioCC" type="radio" name="metodoDePago" value="Tarjeta de Crédito" class="for-control">
<label for="card-radio">
<span id="card-icon"><i class="far fa-credit-card"></i></span> TARJETA
</label>
<form id="formCC">
<fieldset id="opcionCC">
<div class="form-row">
<div class="form-group col-md-12">
<label for="inputCardNumber">Número de tarjeta:</label>
<input type="text" class="form-control" placeholder= "Ingrese su número de tarjeta..." id="inputCardNumber">
<small class="text-danger d-none form-text obligatorio-cc">Campo requerido</small>
</div>
<div class="form-group col-md-6">
<label for="inputPhone">Vencimiento (MM/AA)</label>
<input type="month" class="form-control paymentInputData" data-method="card" id="inputDateCard" min="2021-10" >
<small class="text-danger form-text d-none obligatorio-cc">Campo requerido</small>
</div>
<div class="form-group col-md-6">
<label for="inputPinCard" >CCV</label>
<input type="number" placeholder="Ver al dorso..." class="form-control" id="inputPinCard" >
<small class="form-text text-danger d-none obligatorio-cc">Campo requerido</small>
</div>
</div>
</fieldset>
</form>
</div>
<div class="form-group">
<input id="radioBank" type="radio" value="Transferencia Bancaria" name="metodoDePago" class="for-control">
<label for="metodoDePago">
<span id="bank-icon"><i class="fas fa-money-check-alt"></i></span>
TRANSFERENCIA BANCARIA
</label>
<form action="">
<fieldset disabled id="opcionBank">
<div class="form-row">
<div class="form-group col-md-12">
<label for="inputBankacc">Número de cuenta bancaria:</label>
<input type="text" class="form-control" id="inputBankacc">
<small class="text-danger form-text d-none obligatorio-bank"></small>
</div>
</div>
</fieldset>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Seleccionar</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="compraModal" data-backdrop="static" data-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="compraHeader"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="compraBody" class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Cerrar</button>
</div>
</div>
</div>
</div>
<script src="js/jquery-3.4.1.min.js"></script>
<!-- <script src="js/confetti.js"></script> -->
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/dropzone.js"></script>
<script src="js/init.js"></script>
<script src="js/cart.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/js/bootstrap4-toggle.min.js"></script>
</body>
</html>