-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.ejs
70 lines (69 loc) · 1.92 KB
/
cart.ejs
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
<% layout("layouts/boilerplate.ejs") %>
<% if(product){ %>
Your cart
<br>
<div class="row justify-content-evenly">
<div class="col-8">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Item</th>
<th scope="col">Qty</th>
<th scope="col">Price</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td><%= product.title %> </td>
<td><ul class="pagination set_quantity">
<li class="page-item">
<button class="page-link " onclick="decreaseNumber('textbox','itemval')">
<i class="fas fa-minus"></i> </button>
</li>
<li class="page-item"><input type="text" name="" class="page-link" value="<%= qty %> " id="textbox" >
</li>
<li class="page-item">
<button class="page-link" onclick="increaseNumber('textbox','itemval')"> <i class="fas fa-plus"></i></button>
</li>
</ul> </td>
<!-- quantity inc dec -->
<div class="col-6">
</div>
</div>
<!-- //remover move and price -->
<div class="row">
<div class="col-8 d-flex justify-content-between remove_wish">
<p><i class="fas fa-trash-alt"></i> REMOVE ITEM</p>
<p><i class="fas fa-heart"></i>MOVE TO WISH LIST </p>
</div>
<div class="col-4 d-flex justify-content-end price_money">
<h3>$<span id="itemval">0.00 </span></h3>
</div>
</div>
<td><%= product.price %> </td>
</tr>
</tbody>
</table>
</div>
<div class="col-4">
Subtotal
<table class="table table-borderless table-sm">
<th><%= product.title %> </th>
<td><%- product.price*qty %> </td>
</table>
<div class="row justify-content-evenly">
<div>
Total
</div>
<div>
<%- product.price*qty %>
</div>
</div>
</div>
</div>
<% } %>
<% if(!product){ %>
<h1 style="text-align: center; margin-top: 10%">Cart is Empty</h1>
<% } %>