-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathe-commerceCarrinho.html
57 lines (46 loc) · 1.3 KB
/
e-commerceCarrinho.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
<!DOCTYPE html>
<html>
<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>Carrinho de Compras</title>
<link rel="stylesheet" href="e-commerceCarrinho.css">
</head>
<body>
<h1>Carrinho de Compras</h1>
<table>
<thead>
<tr>
<th>Produto</th>
<th>Preço</th>
<th>Quantidade</th>
<th>Total</th>
<th>Ações</th>
</tr>
</thead>
<tbody id="cart-items">
<!-- Os itens do carrinho serão adicionados dinamicamente aqui -->
</tbody>
<tfoot>
<tr class="total">
<td colspan="3">Total da Compra:</td>
<td id="total-price">R$ 0.00</td>
<td></td>
</tr>
</tfoot>
</table>
<label for="coupon">Cupom de Desconto:</label>
<input type="text" id="coupon" placeholder="Insira o cupom">
<button id="apply-coupon">Aplicar Cupom</button>
<button id="finish-purchase" class="hide">Finalizar Compra</button>
<!-- Div para exibir a mensagem de compra finalizada -->
<div class="overlay" id="overlay">
<div class="message">
<p>Compra finalizada! Tenha um bom dia!</p>
</div>
</div>
<span id="user-name"></span>
<script src="e-commerceCarrinho.js"></script>
</body>
</html>