-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcart.html
157 lines (143 loc) · 4.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<link
rel="icon"
type="image/png"
href="https://i1.lmsin.net/website_images/in/favicons/max/favicon-32x32.png"
sizes="32x32"
/>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<script
src="https://kit.fontawesome.com/498dbb26da.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="/styles/main.css" />
<link rel="stylesheet" href="/styles/cart.css" />
<link rel="stylesheet" href="./styles/cart.mediaQuery.css">
<title>cart page</title>
</head>
<body>
<!-- navbar main section (importing) -->
<div id="nav_container"></div>
<!-- <div id="main_container"> -->
<div id="section_heading_title">
<div>
<p>Your Shopping Basket</p>
</div>
<div class="Offer_text">
<span>Get the offer</span>
<p>Flat 200 Off on 1999 & above, code- MAX200</p>
</div>
<div class="Offer_text">
<span>Get the offer</span>
<p>
Flat 100 Off on 999 & above orders, code- NEW100 (First purchase
only)
</p>
</div>
</div>
<div id="Cart_Container">
<div class="tableheading">
<table>
<thead>
<tr>
<th>Item</th>
<th>Description</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div id="subTotal_Div">
<p id="subtotal"></p>
<div id="checkOut_div">
<button id="checkoutBtn">
<a
href="./checkout.html"
style="color: white; text-decoration: none"
>Checkout Now</a
>
</button>
</div>
<div id="paytImgs">
<img src="./resources/payment options.png" alt="" srcset="" />
<p style="color: rgb(184, 184, 184)">
Earn up to 4 Landmark Rewards points on this order.
</p>
</div>
</div>
</div>
<div id="Coupon-div">
<div>Whishlist <a href="wishlist.html">Click here</a></div>
<br />
<div class="Gifticons_flextText">
<img src="./resources/gift icon cart page.jpeg" alt="" srcset="" />
<p>
Got a Promo Code?
<a onclick="showInputbox()" id="spanUsecodeclick">Use it here</a>
</p>
</div>
<form id="formForm">
<input
id="CouponInput"
type="text"
placeholder="Promo Code(masai30)"
/>
<input type="submit" value="Apply" />
</form>
<div class="Gifticons_flextText">
<img src="./resources/gift card icon.jpeg" alt="" />
<p>Have a Gift Card? Redeem it at checkout.</p>
</div>
</div>
<div id="Contact_Text">
<p>Need help? We're here for you.</p>
<div class="icon_contact_flex">
<img src="./resources/ui-call.svg" alt="" srcset="" />
<p>Call Customer Support at 1800-123-1444</p>
</div>
<div class="icon_contact_flex">
<img src="./resources/email.svg" alt="" srcset="" />
<p>Write to us</p>
</div>
<div class="icon_contact_flex">
<img src="./resources/spinner-alt-3.svg" alt="" srcset="" />
<p>Return Policy</p>
</div>
</div>
</div>
<!-- footer main section (importing) -->
<div id="footer_container"></div>
</body>
</html>
<!-- js part of cart-->
<script src="/scripts/cart.js"></script>
<script type="module">
//importing Nav-bar part
import nav from "./components/navbar.js";
let nav_container = document.getElementById("nav_container");
nav_container.innerHTML = nav();
//greet user
var uName = localStorage.getItem("userName");
if(uName==null){
let userName = document.getElementById("hi");
userName.innerText = "SignUp-SignIn";
}else{
let userName = document.getElementById("hi");
userName.innerText = `Hi ${uName}`;
}
// importing footer part
import footer from "./components/footer.js";
let footer_container = document.getElementById("footer_container");
footer_container.innerHTML = footer();
</script>