| 17882 |
naman |
1 |
<script type="text/javascript" src="/js/checkout.js?v=<?php echo $staticversion;?>"></script>
|
| 17794 |
naman |
2 |
<script>
|
|
|
3 |
$(document).ready(function(){
|
|
|
4 |
|
|
|
5 |
$("#state").val('<?php echo $getstateval;?>');
|
| 17843 |
naman |
6 |
|
|
|
7 |
$('#pin').keyup(function(){
|
|
|
8 |
var pin_val = $(this).val();
|
|
|
9 |
if(pin_val.length == 6){
|
|
|
10 |
$.ajax({
|
|
|
11 |
method: "GET",
|
|
|
12 |
url: "<?php echo $base_url;?>shippings/getstate/"+pin_val,
|
|
|
13 |
},'json')
|
|
|
14 |
.done(function(msg){
|
|
|
15 |
msg = eval('('+msg+')');
|
|
|
16 |
if(msg=="{}")
|
|
|
17 |
{
|
|
|
18 |
$("#cities").empty();
|
|
|
19 |
$("#state").val("");
|
|
|
20 |
}
|
|
|
21 |
else
|
|
|
22 |
{
|
|
|
23 |
$("#state").val(msg['state']);
|
|
|
24 |
$("#cities").empty();
|
|
|
25 |
for(var i in msg['cities']){
|
|
|
26 |
var html = "<option value="+msg['cities'][i]+">"+msg['cities'][i]+"</option>"
|
|
|
27 |
$("#cities").append(html);
|
|
|
28 |
}
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
});
|
|
|
32 |
}
|
|
|
33 |
else{
|
|
|
34 |
$("#cities").empty();
|
|
|
35 |
$("#state").val("");
|
|
|
36 |
}
|
|
|
37 |
});
|
|
|
38 |
|
|
|
39 |
|
| 17794 |
naman |
40 |
|
| 17882 |
naman |
41 |
|
| 17794 |
naman |
42 |
|
|
|
43 |
|
|
|
44 |
});
|
|
|
45 |
</script>
|
|
|
46 |
|
|
|
47 |
<style>
|
|
|
48 |
|
|
|
49 |
#footer{
|
|
|
50 |
position:fixed;
|
|
|
51 |
/*height:50px;*/
|
|
|
52 |
/*background-color:red;*/
|
|
|
53 |
bottom:0px;
|
|
|
54 |
left:0px;
|
|
|
55 |
right:0px;
|
|
|
56 |
margin-bottom:0px;
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
* {
|
|
|
60 |
padding: 0;
|
|
|
61 |
margin: 0;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
| 17843 |
naman |
69 |
|
| 17794 |
naman |
70 |
select {
|
|
|
71 |
width: 100%;
|
|
|
72 |
appearance: none;
|
|
|
73 |
-webkit-appearance: none;
|
|
|
74 |
border: #58d936 solid 1px;
|
|
|
75 |
color: #555555;
|
|
|
76 |
border-radius: 6px;
|
|
|
77 |
outline: none;
|
|
|
78 |
padding: 4px;
|
|
|
79 |
display: block;
|
|
|
80 |
box-sizing: border-box;
|
|
|
81 |
-webkit-box-sizing: border-box;
|
|
|
82 |
-moz-box-sizing: border-box;
|
|
|
83 |
/*font: normal 1.4em/1.2em Helvetica, Arial, sans-serif;*/
|
|
|
84 |
/*margin: 2px 0 8px 0;*/
|
|
|
85 |
margin: 2px 0 0px 0;
|
|
|
86 |
background: url('../images/dropdown.PNG') no-repeat 99% 16px, #ffffff;
|
|
|
87 |
background-size: 20px, 100%;
|
|
|
88 |
}
|
|
|
89 |
.shipping-cont {
|
|
|
90 |
margin:7px 2px;
|
|
|
91 |
padding: 12px 7px;
|
|
|
92 |
background: white;
|
|
|
93 |
}
|
|
|
94 |
.shipping-cont form {
|
|
|
95 |
padding: 0px 0;
|
|
|
96 |
}
|
|
|
97 |
.shipping-cont form fieldset {
|
|
|
98 |
border: none;
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
.shipping-cont label span {
|
|
|
102 |
color: red;
|
|
|
103 |
}
|
|
|
104 |
/*.shipping-cont input[type="submit"] {
|
|
|
105 |
float: left;
|
|
|
106 |
width: 100%;
|
|
|
107 |
margin: 10px 0;
|
|
|
108 |
background: #ff7201;
|
|
|
109 |
color: #ffffff;
|
|
|
110 |
font: normal 1.8em/1.2em Helvetica, Arial, sans-serif;
|
|
|
111 |
text-align: center;
|
|
|
112 |
padding: 5px 0;
|
|
|
113 |
text-transform: uppercase;
|
|
|
114 |
appearance: none;
|
|
|
115 |
-webkit-appearance: none;
|
|
|
116 |
-moz-appearance: none;
|
|
|
117 |
border: none;
|
|
|
118 |
}*/
|
|
|
119 |
|
|
|
120 |
label{
|
|
|
121 |
margin:0px;
|
|
|
122 |
padding:0px;
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
input[type="text"],
|
|
|
126 |
input[type="number"],
|
|
|
127 |
input[type="date"],
|
|
|
128 |
textarea {
|
|
|
129 |
width: 100%;
|
|
|
130 |
appearance: none;
|
|
|
131 |
-webkit-appearance: none;
|
|
|
132 |
-moz-appearance: none;
|
|
|
133 |
border: #58d936 solid 1px;
|
|
|
134 |
color: #555;
|
|
|
135 |
border-radius: 6px;
|
|
|
136 |
outline: none;
|
|
|
137 |
padding: 5px;
|
| 17843 |
naman |
138 |
/*display: block;*/
|
| 17794 |
naman |
139 |
box-sizing: border-box;
|
|
|
140 |
-webkit-box-sizing: border-box;
|
|
|
141 |
-moz-box-sizing: border-box;
|
|
|
142 |
font: normal 1.2em Helvetica, Arial, sans-serif;
|
|
|
143 |
/*margin: 2px 0 8px 0;*/
|
|
|
144 |
margin: 2px 0 0px 0;
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
textarea{
|
|
|
148 |
resize: none;
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
.error_msg {
|
|
|
152 |
padding: 5px 5px 5px 28px;
|
|
|
153 |
display: block;
|
|
|
154 |
border: #fc1f1f dashed 1px;
|
|
|
155 |
color: #fc1f1f;
|
|
|
156 |
font: normal 1.4em/1.2em Helvetica, Arial, sans-serif;
|
|
|
157 |
margin: 0 5px;
|
|
|
158 |
background-size: 20px;
|
|
|
159 |
margin-bottom: 10px;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
.form_submit{
|
|
|
163 |
width:100%;
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
</style>
|
|
|
169 |
|
|
|
170 |
<div class='container' style='margin-bottom:50px;'>
|
| 17882 |
naman |
171 |
<div class='row' style="padding-bottom:55px;">
|
| 17794 |
naman |
172 |
<div class='col-xs-12' style='padding:0px'>
|
|
|
173 |
|
|
|
174 |
<div class="shipping-cont">
|
|
|
175 |
<div id="error" class="error_msg" style="display:none">
|
|
|
176 |
</div>
|
| 17882 |
naman |
177 |
<form method="post" action="#" name='form2' id='form2' class="address-form"
|
| 17794 |
naman |
178 |
<fieldset>
|
| 17882 |
naman |
179 |
<h4>Add New Address:
|
|
|
180 |
<!-- <input type="submit" name="submit" value="Save" class='btn btn-success' id='form_submit' style='float:right;'/> -->
|
|
|
181 |
</h4>
|
| 17843 |
naman |
182 |
|
|
|
183 |
<!-- <label>Name<span>*</span></label> -->
|
| 17882 |
naman |
184 |
<input type="text" id="name" name="name" placeholder="Enter name*" value="<?php echo $user_name;?>" required/>
|
| 17843 |
naman |
185 |
<!-- <label>Address<span>*</span></label> -->
|
|
|
186 |
<textarea rows="2" id="line1" name="line1" placeholder="Address*" required></textarea>
|
| 17794 |
naman |
187 |
<!-- <input type="text" id="line1" name="line1" required/> -->
|
|
|
188 |
|
|
|
189 |
<div class='row' style='padding-bottom:5px'>
|
|
|
190 |
<div class='col-xs-6' style='padding:0px 5px 0px 0px ;'>
|
| 17843 |
naman |
191 |
<!-- <label>City<span>*</span></label> -->
|
|
|
192 |
<datalist id="cities">
|
|
|
193 |
</datalist>
|
|
|
194 |
<input type="text" placeholder="City*" id="city" name="city" list="cities" required/>
|
| 17794 |
naman |
195 |
|
| 17843 |
naman |
196 |
<!-- <label>Phone<span>*</span></label> -->
|
| 17882 |
naman |
197 |
<input type="text" id="phone" value="<?php echo $user_contact;?>" placeholder="Contact number*" name="phone" pattern="\d.{9,9}" required title="Invalid Phone number.."/>
|
| 17794 |
naman |
198 |
</div>
|
|
|
199 |
<div class='col-xs-6' style='padding:0px 0px 0px 5px ;'>
|
| 17843 |
naman |
200 |
<!-- <label>State<span>*</span></label> -->
|
| 17794 |
naman |
201 |
<select id="state" name="state" required>
|
|
|
202 |
<option value="">Select State</option>
|
|
|
203 |
<option value="Andaman & Nicobar Island">Andaman & Nicobar Island</option>
|
|
|
204 |
<option value="Andhra Pradesh">Andhra Pradesh</option>
|
|
|
205 |
<option value="Arunachal Pradesh">Arunachal Pradesh</option>
|
|
|
206 |
<option value="Assam">Assam</option>
|
|
|
207 |
<option value="Bihar">Bihar</option>
|
|
|
208 |
<option value="Chandigarh">Chandigarh</option>
|
|
|
209 |
<option value="Chattisgarh">Chattisgarh</option>
|
|
|
210 |
<option value="Dadra & Nagar Haveli">Dadra & Nagar Haveli</option>
|
|
|
211 |
<option value="Daman & Diu">Daman & Diu</option>
|
|
|
212 |
<option value="Delhi">Delhi</option>
|
|
|
213 |
<option value="Goa">Goa</option>
|
|
|
214 |
<option value="Gujarat">Gujrat</option>
|
|
|
215 |
<option value="Haryana">Haryana</option>
|
|
|
216 |
<option value="Himachal Pradesh">Himachal Pradesh</option>
|
|
|
217 |
<option value="Jammu & Kashmir">Jammu & Kashmir</option>
|
|
|
218 |
<option value="Jharkhand">Jharkhand</option>
|
|
|
219 |
<option value="Karnataka">Karnataka</option>
|
|
|
220 |
<option value="Kerala">Kerala</option>
|
|
|
221 |
<option value="Lakshadweep">Lakshadweep</option>
|
|
|
222 |
<option value="Madhya Pradesh">Madhya Pradesh</option>
|
|
|
223 |
<option value="Maharashtra">Maharashtra</option>s
|
|
|
224 |
<option value="Manipur">Manipur</option>
|
|
|
225 |
<option value="Meghalaya">Meghalaya</option>
|
|
|
226 |
<option value="Mizoram">Mizoram</option>
|
|
|
227 |
<option value="Nagaland">Nagaland</option>
|
|
|
228 |
<option value="Orissa">Orissa</option>
|
|
|
229 |
<option value="Pondicherry">Pondicherry</option>
|
|
|
230 |
<option value="Punjab">Punjab</option>
|
|
|
231 |
<option value="Rajasthan">Rajasthan</option>
|
|
|
232 |
<option value="Sikkim">Sikkim</option>
|
|
|
233 |
<option value="Tamil Nadu">Tamil Nadu</option>
|
| 17900 |
amit.gupta |
234 |
<option value="Telangana">Telangana</option>
|
| 17794 |
naman |
235 |
<option value="Tripura">Tripura</option>
|
|
|
236 |
<option value="Uttar Pradesh">Uttar Pradesh</option>
|
|
|
237 |
<option value="Uttarakhand">Uttarakhand</option>
|
|
|
238 |
<option value="West Bengal">West Bengal</option>
|
|
|
239 |
</select>
|
|
|
240 |
|
| 17843 |
naman |
241 |
<!-- <label>Pincode<span>*</span></label> -->
|
| 17882 |
naman |
242 |
<input placeholder="Pincode*" required value='<?php echo $pinval;?>' type="text" id="pin" name="pin" pattern="\d.{5,5}" title="Invalid Pin" />
|
| 17794 |
naman |
243 |
</div>
|
|
|
244 |
</div>
|
|
|
245 |
</fieldset>
|
|
|
246 |
</form>
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
</div>
|
|
|
250 |
</div>
|
|
|
251 |
|
|
|
252 |
|
| 17882 |
naman |
253 |
<div class='row' style='padding:0px;' id='footer'>
|
|
|
254 |
<div class='col-xs-12' style='background-color:white;padding:5px; width:100%;'>
|
|
|
255 |
<h4>Total payable Amount: ₹ <?php echo number_format($totalPayable);?></h4>
|
|
|
256 |
<a href="#" style='padding-right:2px;color:blue;font-size:15px;' data-name="other_option" class="submit_check"><u>Other Pay Option</u></a>
|
|
|
257 |
<button class="btn btn-success pull-right submit_check" data-name="cod">Confirm Order via COD</button>
|
|
|
258 |
</div>
|
|
|
259 |
</div>
|
| 17794 |
naman |
260 |
</div>
|