-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcart.html
executable file
·222 lines (197 loc) · 6.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>My Cart </title>
<link href="./node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head><!--/head-->
<body>
<header><!--header-->
<h1>Your Shopping Bag</h1>
</header><!--/header-->
<section id="cart_items">
<div class="table-responsive cart_info">
<table id = "tableCart" class="table table-condensed">
<thead>
<tr class="cart_menu">
<td class="image"></td>
<td class="description"></td>
<td class="price">Size</td>
<td class="quantity">QTY</td>
<td class="total">Price</td>
<td></td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</section> <!--/#cart_items-->
<section id="do_action">
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="chose_area">
<ul class="user_option">
<li class='enquiry'>
<label>Need help or have questions?</label>
</li>
<li class='enquiry'>
<label>Call Customer service at XXXXXXXXXXX</label>
</li>
<li class='chat'>
<label class="underline">Chat with one of our stylists</label>
</li>
<li class='chat'>
<a class="underline">See return and exchange policy</a>
</li>
</ul>
</div>
</div>
<div class="col-sm-8">
<div class="total_area">
<ul>
<li><div class="rightLabel"><label>Enter promotional Code or Gift card</label></div>
<div class='pull-right voucherArea'><input type="text">
<a class="btn btn-default pull-right myButton" href="">Apply</a></div>
</li>
<hr/>
<li>
<label class="rightLabel1">subtotal</label>
<label id="subtotal" class='pull-right'></label>
</li>
<li>
<label class="rightLabel1">Promotion code XXX applied</label>
<label id = "promo" class='pull-right'></label>
</li>
<li>
<div class="rightLabel">Estimated Shipping*<label>You qualify for free shopping because your order is over <sup>$</sup>50</label></div>
<label class='pull-right'>FREE</label>
</li>
<hr/>
<li class ="borderBox">
<label class="rightLabel1">Estimated Total</label>
<label id = "finalTotal" class='pull-right'></label>
</li>
</ul>
<div class="checkOut">
<span class="checkOutMiddle pull-left"><a href="">Continue Shoping</a></span>
<button class="btn btn-default pull-right" href="">Check Out</button>
</div>
</div>
</div>
</div>
</div>
</section><!--/#do_action-->
<div class="footer-widget">
<div class="container">
</div>
</div>
<div class="footer-bottom">
<div class="container">
<div class="row">
<p class="pull-right">
<img src="assets/lock.jpg" alt="" />
Secure Checkout.Shoping is always safe and Secure</p>
</div>
</div>
</div>
</footer><!--/Footer-->
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body">
</div>
</div>
</div>
</div>
</body>
<script src="js/jquery.js"></script>
<script src="js/html5shiv.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.6/handlebars.min.js"></script>
<script src="js/helper.js"></script>
<script id="modal-template" type="text/x-handlebars-template">
<div class="product-details">
<div class="col-sm-7 col-xs-7">
<div class="product-information">
<ul>
<hr/>
<li><h2 class="nameHeading">{{modalData.p_name}}</h2></li>
<li><div><sup>$</sup><span class="modalPrice">{{modalData.p_price}}<span></div></li>
<hr/>
<li><h2 class="nameDetails">{{modalData.p_name}}</h2></li>
<li>
{{#each modalData.p_available_options.colors}}
<div class="squareHolder"><button class="square" style="background-color:{{hexcode}}"></button><div class="squareDesc">{{name}}</div></div>
{{/each}}
</li>
<li>
<div class="btn-group squareBox">
<select id="size">
{{#each modalData.p_available_options.sizes}}
<option value={{code}} {{#if (compare name ../modalData.p_selected_size.name)}} selected{{/if}}>{{name}}</option>
{{/each}}
</select>
</div>
<div class="btn-group">
<select id="qty">
{{#times 5}}
<option value={{this}} {{#if (compare this ../modalData.p_quantity)}} selected{{/if}}>{{this}}</option>
{{/times}}
</select>
</div>
</li>
<li><button type="button" id = "closeModal" class="btn btn-default editButton noRadius ">Edit</button></li>
<li><a>See Product details</a></li>
</ul>
</div>
</div>
<div class="col-sm-5 col-xs-5">
<div class="view-product"><a href=""><img src={{modalData.p_img}} alt=""></a></div>
</div>
</div>
</script>
<script id="row-template" type="text/x-handlebars-template">
{{#each data}}
<tr>
<td class="col-sm-3 col-xs-7 cart_product">
<a href="#"><img src={{p_img}} alt=""></a>
</td>
<td class="col-sm-6 col-xs-2 cart_description">
<h4><a href="#">{{p_variation}} {{p_name}}</a></h4>
<p>Style #: {{p_style}}</p>
<p>Color: {{p_selected_color.name}}</p>
<div class="align" id={{p_id}}>
<a id ="editModal" class="glyphicon glyphicon-edit" href="#"></a> |
<a id = "removeItem" class="glyphicon glyphicon-trash" href="#" ></a> |
<a href="">Save for Later</a></div>
</td>
<td class=" col-sm-1 col-xs-1 cart_price">
<p>{{p_selected_size.code}}</p>
</td>
<td class=" col-sm-1 col-xs-1 cart_quantity">
<div class="cart_quantity_button">
<input class="cart_quantity_input" type="text" name="quantity" value={{p_quantity}} autocomplete="off" size="2">
</div>
</td>
<td class=" col-sm-1 col-xs-1 cart_total">
<p class="cart_total_price"><sup>{{c_currency}}</sup>{{multiply p_quantity p_price}}</p>
</td>
</tr>
{{/each}}
</script>
<script src="js/main.js"></script>
</html>