| 18718 |
manish.sha |
1 |
<script type="text/javascript"
|
|
|
2 |
src="/js/checkout.js?v=<?php echo $staticversion;?>"></script>
|
| 17959 |
manish.sha |
3 |
<script type="text/javascript">
|
|
|
4 |
$(document).ready(function(){
|
| 19036 |
naman |
5 |
var alpad = " "+($('#footer').height()-45)+"px";
|
|
|
6 |
$('#addresslist').css("margin-bottom",alpad);
|
| 19039 |
naman |
7 |
|
|
|
8 |
if($('.myaddress').hasClass('addressselect')){
|
|
|
9 |
var pin_val = $('.addressselect').data('pinval');
|
|
|
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['state'].trim() == "Delhi")
|
|
|
17 |
{
|
|
|
18 |
$(".taxbanner").removeClass('hidden');
|
|
|
19 |
}
|
|
|
20 |
});
|
|
|
21 |
}
|
|
|
22 |
|
| 17959 |
manish.sha |
23 |
var cart_details = localStorage.getItem("cart_details");
|
|
|
24 |
if(cart_details == undefined){
|
|
|
25 |
$('span#totalPayable').text(' ₹ 0');
|
|
|
26 |
$('button.confirmcheckout').prop( "disabled", true );
|
| 17967 |
manish.sha |
27 |
$('.confirmprepaid').addClass('confirmprepaidDisabled').removeClass('confirmprepaid');
|
| 18633 |
manish.sha |
28 |
$('button.confirmcredit').prop( "disabled", true );
|
| 18718 |
manish.sha |
29 |
$('button.confirmcod').prop( "disabled", true );
|
| 18819 |
manish.sha |
30 |
$('span#CreditError').html('');
|
| 17959 |
manish.sha |
31 |
}else{
|
|
|
32 |
$('button.confirmcheckout').prop( "disabled", false );
|
| 17967 |
manish.sha |
33 |
$('.confirmprepaidDisabled').addClass('confirmprepaid').removeClass('confirmprepaidDisabled');
|
| 18633 |
manish.sha |
34 |
$('button.confirmcredit').prop( "disabled", false );
|
| 18718 |
manish.sha |
35 |
$('button.confirmcod').prop( "disabled", false );
|
| 17959 |
manish.sha |
36 |
}
|
| 18718 |
manish.sha |
37 |
var totalPayable = <?php echo $totalPayable;?>;
|
|
|
38 |
var creditLimit = <?php echo $creditLimit;?>;
|
|
|
39 |
var creditTicketSize = <?php echo $creditTicketSize;?>;
|
| 18773 |
manish.sha |
40 |
localStorage.removeItem('creditLimit');
|
|
|
41 |
localStorage.setItem('creditLimit', creditLimit);
|
| 18768 |
manish.sha |
42 |
localStorage.removeItem('creditTicketSize');
|
| 18775 |
manish.sha |
43 |
localStorage.setItem('creditTicketSize', creditTicketSize);
|
| 18768 |
manish.sha |
44 |
localStorage.removeItem('totalPayable');
|
|
|
45 |
localStorage.setItem('totalPayable', totalPayable);
|
|
|
46 |
|
| 18718 |
manish.sha |
47 |
if(cart_details == undefined || creditTicketSize>totalPayable || totalPayable>=creditLimit){
|
|
|
48 |
$('button.confirmcredit').prop( "disabled", true );
|
|
|
49 |
}else{
|
|
|
50 |
$('button.confirmcredit').prop( "disabled", false );
|
| 18768 |
manish.sha |
51 |
var creditAvailable = $("input.css-checkbox:checked").attr('credit_available');
|
|
|
52 |
if(creditAvailable=='true'){
|
|
|
53 |
$('button.confirmcredit').prop( "disabled", false );
|
| 18827 |
manish.sha |
54 |
$('button.confirmcredit').attr('style', 'margin: 10px 20px 0px 0px;background-color: #5cb85c;color: #fff;');
|
| 18768 |
manish.sha |
55 |
}else{
|
| 18821 |
manish.sha |
56 |
if($('span#CreditError').html()!=''){
|
|
|
57 |
localStorage.setItem('CreditError',$('span#CreditError').html());
|
|
|
58 |
}
|
|
|
59 |
$('span#CreditError').html('');
|
| 18768 |
manish.sha |
60 |
$('button.confirmcredit').prop( "disabled", true );
|
| 18827 |
manish.sha |
61 |
$('button.confirmcredit').attr('style', 'margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;');
|
| 18768 |
manish.sha |
62 |
}
|
| 18718 |
manish.sha |
63 |
}
|
|
|
64 |
|
|
|
65 |
if (window.history && window.history.pushState) {
|
|
|
66 |
$(window).on('popstate', function() {
|
|
|
67 |
$('#myModal').modal('hide');
|
|
|
68 |
$("#cartloader").addClass('hidden');
|
|
|
69 |
if(typeof history.checkoutForm != "undefined"){
|
|
|
70 |
history.checkoutForm.submit();
|
|
|
71 |
}
|
|
|
72 |
});
|
|
|
73 |
}
|
| 17959 |
manish.sha |
74 |
});
|
|
|
75 |
</script>
|
| 18718 |
manish.sha |
76 |
<link rel="stylesheet" href="/css/hexdots.css" type="text/css">
|
| 17794 |
naman |
77 |
<style>
|
| 17840 |
manish.sha |
78 |
#footer {
|
|
|
79 |
position: fixed;
|
|
|
80 |
/*height:50px;*/
|
|
|
81 |
/*background-color:red;*/
|
|
|
82 |
bottom: 0px;
|
|
|
83 |
left: 0px;
|
|
|
84 |
right: 0px;
|
|
|
85 |
margin-bottom: 0px;
|
| 17794 |
naman |
86 |
}
|
|
|
87 |
|
| 17840 |
manish.sha |
88 |
#message,#message_success {
|
|
|
89 |
position: fixed;
|
|
|
90 |
/*height:50px;*/
|
|
|
91 |
/*background-color:red;*/
|
|
|
92 |
/*background-color: white;*/
|
|
|
93 |
top: 0px;
|
|
|
94 |
left: 0px;
|
|
|
95 |
right: 0px;
|
|
|
96 |
margin-top: 0px;
|
|
|
97 |
z-index: 10;
|
| 17794 |
naman |
98 |
}
|
|
|
99 |
|
| 17840 |
manish.sha |
100 |
.addressselect {
|
|
|
101 |
background-color: #D9FACF;
|
| 17794 |
naman |
102 |
}
|
| 17840 |
manish.sha |
103 |
|
| 17794 |
naman |
104 |
input[type=radio].css-checkbox {
|
| 17840 |
manish.sha |
105 |
position: absolute;
|
|
|
106 |
z-index: -1000;
|
|
|
107 |
left: -1000px;
|
|
|
108 |
overflow: hidden;
|
|
|
109 |
clip: rect(0, 0, 0, 0);
|
|
|
110 |
height: 1px;
|
|
|
111 |
width: 1px;
|
|
|
112 |
margin: -1px;
|
|
|
113 |
padding: 0;
|
|
|
114 |
border: 0;
|
|
|
115 |
}
|
| 17794 |
naman |
116 |
|
| 17840 |
manish.sha |
117 |
input[type=radio].css-checkbox+label.css-label {
|
|
|
118 |
padding-left: 21px;
|
| 18718 |
manish.sha |
119 |
padding-bottom: 10px;
|
| 17840 |
manish.sha |
120 |
height: 16px;
|
|
|
121 |
display: inline-block;
|
|
|
122 |
line-height: 16px;
|
|
|
123 |
background-repeat: no-repeat;
|
|
|
124 |
background-position: 0 0;
|
|
|
125 |
/*font-size:16px;*/
|
|
|
126 |
vertical-align: middle;
|
|
|
127 |
cursor: pointer;
|
|
|
128 |
}
|
| 17794 |
naman |
129 |
|
| 17840 |
manish.sha |
130 |
input[type=radio].css-checkbox:checked+label.css-label {
|
|
|
131 |
background-position: 0 -16px;
|
|
|
132 |
}
|
| 17794 |
naman |
133 |
|
| 17840 |
manish.sha |
134 |
label.css-label {
|
|
|
135 |
background-image: url(../img/radio.png);
|
|
|
136 |
-webkit-touch-callout: none;
|
|
|
137 |
-webkit-user-select: none;
|
|
|
138 |
-khtml-user-select: none;
|
|
|
139 |
-moz-user-select: none;
|
|
|
140 |
-ms-user-select: none;
|
|
|
141 |
user-select: none;
|
| 17794 |
naman |
142 |
}
|
| 17882 |
naman |
143 |
|
| 18718 |
manish.sha |
144 |
.custom_class {
|
|
|
145 |
color: red;
|
|
|
146 |
}
|
|
|
147 |
#cartloader{
|
|
|
148 |
position:absolute;
|
|
|
149 |
/*top:40%;*/
|
|
|
150 |
left:50%;
|
|
|
151 |
z-index:2001;
|
|
|
152 |
}
|
| 17794 |
naman |
153 |
</style>
|
| 17882 |
naman |
154 |
<?php
|
| 18718 |
manish.sha |
155 |
if($message != null){?>
|
|
|
156 |
<script>
|
| 17882 |
naman |
157 |
$(document).ready(function(){
|
|
|
158 |
$('#message').empty();
|
|
|
159 |
$('#message').append("Location is not serviceable...");
|
|
|
160 |
$('#message').removeClass('hidden');
|
|
|
161 |
|
|
|
162 |
setTimeout(function() {
|
|
|
163 |
$('#message').addClass('hidden');
|
|
|
164 |
}, 2000);
|
|
|
165 |
});
|
|
|
166 |
</script>
|
|
|
167 |
<?php }?>
|
|
|
168 |
<div class="modal fade" id="loadingModal">
|
| 18718 |
manish.sha |
169 |
<div class="modal-dialog">
|
|
|
170 |
<div class="modal-content">
|
|
|
171 |
<div class="modal-body">
|
|
|
172 |
<div class="text-center">
|
|
|
173 |
<img src="/img/ajax-loader.gif" />
|
|
|
174 |
</div>
|
|
|
175 |
</div>
|
|
|
176 |
</div>
|
|
|
177 |
<!-- /.modal-content -->
|
|
|
178 |
</div>
|
|
|
179 |
<!-- /.modal-dialog -->
|
| 17882 |
naman |
180 |
</div>
|
| 18718 |
manish.sha |
181 |
<div
|
|
|
182 |
class="alert alert-danger hidden" id="message"></div>
|
|
|
183 |
<div
|
|
|
184 |
class="alert alert-success hidden" id="message_success"></div>
|
| 17794 |
naman |
185 |
|
| 18718 |
manish.sha |
186 |
<div class="text-center hidden" id="cartloader">
|
|
|
187 |
<br><br>
|
|
|
188 |
<div class="hexdots-loader"></div>
|
|
|
189 |
</div>
|
| 19036 |
naman |
190 |
<div class='container' style='margin-bottom: 50px;' id ="addresslist">
|
|
|
191 |
|
| 18718 |
manish.sha |
192 |
<div class='row' style="padding-bottom: 55px;">
|
| 19039 |
naman |
193 |
<?php //if($stateres == "Delhi"):?>
|
|
|
194 |
<div class="taxbanner hidden" style="margin-top: 5px;"><img src = "../img/vat-tax.gif" width="100%"></div>
|
|
|
195 |
<?php //endif;?>
|
| 17794 |
naman |
196 |
|
| 18718 |
manish.sha |
197 |
<div class='row'>
|
|
|
198 |
<div class='col-xs-12'
|
|
|
199 |
style="background-color: white; margin-top: 5px;">
|
| 18734 |
manish.sha |
200 |
|
| 18718 |
manish.sha |
201 |
<h4>
|
|
|
202 |
Shipping Address: <a
|
|
|
203 |
href="<?php echo $base_url;?>shippings/add/<?php echo $user_name.'/'.$user_contact;?>"
|
|
|
204 |
class='btn btn-success btn-xs' style='float: right;'>Add New
|
|
|
205 |
Address</a>
|
|
|
206 |
</h4>
|
|
|
207 |
<br>
|
| 17882 |
naman |
208 |
|
| 18718 |
manish.sha |
209 |
</div>
|
|
|
210 |
</div>
|
|
|
211 |
<div class='col-xs-12'
|
|
|
212 |
style='background-color: white; padding: 40px; padding: 3px 20px;'>
|
| 17882 |
naman |
213 |
|
| 18718 |
manish.sha |
214 |
<div style='background-color: #f8f8f8; padding: 5px;'>
|
|
|
215 |
<?php
|
|
|
216 |
for($i=0;$i<count($firstshowaddress);$i++){?>
|
| 17794 |
naman |
217 |
|
| 18718 |
manish.sha |
218 |
<?php if($i==3):?>
|
|
|
219 |
<div id='showmoreaddressdropdown' style='display: none;'>
|
|
|
220 |
<?php endif;?>
|
|
|
221 |
<?php //if(count($firstshowaddress)>$i):?>
|
|
|
222 |
<div style='min-height: 80px; padding: 4px;'
|
| 19039 |
naman |
223 |
id="address<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>" data-pinval="<?php echo $address['addresses'][$firstshowaddress[$i]]['pin']; ?>"
|
| 18718 |
manish.sha |
224 |
class='myaddress <?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "addressselect";}?>'>
|
| 17794 |
naman |
225 |
|
| 18718 |
manish.sha |
226 |
<input type="radio" class="css-checkbox"
|
|
|
227 |
id='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
|
|
|
228 |
value='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
|
|
|
229 |
name="selectedaddress"
|
| 18745 |
manish.sha |
230 |
<?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "checked";}?>
|
| 18768 |
manish.sha |
231 |
<?php if($creditorAssociated && $address['addresses'][$firstshowaddress[$i]]['creditOptionAvailable']):?> credit_available="true" <?php else: ?> credit_available="false"<?php endif;?> >
|
| 17794 |
naman |
232 |
|
| 18718 |
manish.sha |
233 |
<label
|
|
|
234 |
for="<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>"
|
|
|
235 |
class="css-label radGroup2"
|
|
|
236 |
data-pin="<?php echo $address['addresses'][$firstshowaddress[$i]]['pin'];?>"
|
| 18777 |
manish.sha |
237 |
data-id="<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>"
|
|
|
238 |
<?php if($creditorAssociated && $address['addresses'][$firstshowaddress[$i]]['creditOptionAvailable']):?> credit_available="true" <?php else: ?> credit_available="false"<?php endif;?>>
|
| 18718 |
manish.sha |
239 |
<?php
|
|
|
240 |
if(isset($address['addresses'][$firstshowaddress[$i]]['line1']) && !empty($address['addresses'][$firstshowaddress[$i]]['line1']))
|
|
|
241 |
{echo "Address: ",$address['addresses'][$firstshowaddress[$i]]['line1'];}
|
|
|
242 |
if(isset($address['addresses'][$firstshowaddress[$i]]['line2']) && !empty($address['addresses'][$firstshowaddress[$i]]['line2']))
|
|
|
243 |
{echo ",",$address['addresses'][$firstshowaddress[$i]]['line2'];}
|
|
|
244 |
if(isset($address['addresses'][$firstshowaddress[$i]]['city']) && !empty($address['addresses'][$firstshowaddress[$i]]['city']))
|
|
|
245 |
{echo "<br>",$address['addresses'][$firstshowaddress[$i]]['city'];}
|
|
|
246 |
if(isset($address['addresses'][$firstshowaddress[$i]]['state']) && !empty($address['addresses'][$firstshowaddress[$i]]['state']))
|
|
|
247 |
{echo ", ",$address['addresses'][$firstshowaddress[$i]]['state'];}
|
|
|
248 |
if(isset($address['addresses'][$firstshowaddress[$i]]['pin']) && !empty($address['addresses'][$firstshowaddress[$i]]['pin']))
|
|
|
249 |
{echo ",",$address['addresses'][$firstshowaddress[$i]]['pin'];}
|
| 18849 |
manish.sha |
250 |
?>
|
| 18838 |
manish.sha |
251 |
<br>
|
| 18768 |
manish.sha |
252 |
<?php if($creditorAssociated):?>
|
| 18745 |
manish.sha |
253 |
<?php if($address['addresses'][$firstshowaddress[$i]]['creditOptionAvailable']):?>
|
| 18838 |
manish.sha |
254 |
<i class="glyphicon glyphicon-info-sign" style="font-size: 10px;color: #36BBD9;">
|
| 18734 |
manish.sha |
255 |
<span style="color: #36BBD9;font-size: 10px;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;">Credit Available</span>
|
|
|
256 |
</i>
|
| 18745 |
manish.sha |
257 |
<?php endif;?>
|
| 18768 |
manish.sha |
258 |
<?php endif;?>
|
|
|
259 |
<?php if($taxInvoiceEnabledUser):?>
|
| 18745 |
manish.sha |
260 |
<?php if($address['addresses'][$firstshowaddress[$i]]['taxInvoiceAvailable']):?>
|
| 18838 |
manish.sha |
261 |
<i class="glyphicon glyphicon-info-sign" style="font-size: 10px;color: #42A150;">
|
| 18768 |
manish.sha |
262 |
<span style="color: #42A150;font-size: 10px;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;">Tax Invoice Available</span>
|
| 18734 |
manish.sha |
263 |
</i>
|
| 18745 |
manish.sha |
264 |
<?php endif;?>
|
| 18768 |
manish.sha |
265 |
<?php endif;?>
|
| 18849 |
manish.sha |
266 |
</label>
|
| 17794 |
naman |
267 |
|
| 18718 |
manish.sha |
268 |
</div>
|
|
|
269 |
<hr style='margin: 0px; padding: 0px; border-color: #58d936;'>
|
|
|
270 |
<?php //endif;?>
|
|
|
271 |
|
|
|
272 |
<?php if($i>3 && $i==(count($firstshowaddress)-1)):?>
|
| 18633 |
manish.sha |
273 |
</div>
|
| 18718 |
manish.sha |
274 |
<!-- <center><button class='btn btn-default btn-xs' id='showmore'>Show More</button></center> -->
|
|
|
275 |
<?php endif;?>
|
|
|
276 |
|
|
|
277 |
<?php }?>
|
|
|
278 |
</div>
|
|
|
279 |
</div>
|
|
|
280 |
<?php if(count($firstshowaddress)>3):?>
|
|
|
281 |
<center>
|
|
|
282 |
<div class='btn btn-default btn-xs' id='showmore'>Show More</div>
|
|
|
283 |
</center>
|
|
|
284 |
<?php endif;?>
|
|
|
285 |
</div>
|
|
|
286 |
<!-- End of address section -->
|
|
|
287 |
|
|
|
288 |
<div class="modal fade" id="myModal">
|
|
|
289 |
<div class="modal-dialog">
|
|
|
290 |
<div class="modal-content"
|
|
|
291 |
style="background-color: #f0f0f0; color: #555;">
|
|
|
292 |
<div class="modal-body">
|
| 18768 |
manish.sha |
293 |
<p id="confirmOrderText" addressId="" checkoutType="" style="color: #555;" class="text-center"></p>
|
| 18633 |
manish.sha |
294 |
</div>
|
| 18718 |
manish.sha |
295 |
<div class="modal-footer">
|
|
|
296 |
<button type="button" class="btn btn-md pull-left" id="changeOption"
|
|
|
297 |
style="background-color: #58d936; color: #fff;">
|
|
|
298 |
<strong>Change Option<br>(विकल्प बदलें)</strong>
|
|
|
299 |
</button>
|
|
|
300 |
<button type="button" class="btn btn-md pull-right"
|
|
|
301 |
id="orderNow" style="background-color: #58d936; color: #fff;">
|
|
|
302 |
<strong>Order Now<br>(अभी खरीदें)</strong>
|
|
|
303 |
</button>
|
|
|
304 |
</div>
|
|
|
305 |
</div>
|
|
|
306 |
<!-- /.modal-content -->
|
|
|
307 |
</div>
|
|
|
308 |
<!-- /.modal-dialog -->
|
|
|
309 |
</div>
|
|
|
310 |
<!-- /.modal -->
|
| 18633 |
manish.sha |
311 |
|
| 18718 |
manish.sha |
312 |
<!-- Cart section started -->
|
|
|
313 |
<div class='row' style='padding: 0px;' id='footer'>
|
|
|
314 |
<div class='col-xs-12'
|
|
|
315 |
style='background-color: white; padding: 10px 20px 20px 20px; width: 100%;'>
|
|
|
316 |
<h4 style="margin: 0px; margin-bottom: 8px;">
|
|
|
317 |
Total payable Amount: <span style="color: #ff0000;"
|
|
|
318 |
id="totalPayable"> ₹ <?php echo number_format($totalPayable);?>
|
|
|
319 |
</span>
|
|
|
320 |
</h4>
|
|
|
321 |
<?php if($creditorAssociated):?>
|
|
|
322 |
<h5>Confirm Order: Choose Option</h5>
|
|
|
323 |
<?php if($creditTicketSize<=$totalPayable):?>
|
|
|
324 |
<?php if($creditLimit>=$totalPayable):?>
|
|
|
325 |
<?php if($codAvailable):?>
|
|
|
326 |
<div class="col-xs-12" style="margin-left: 20px;">
|
|
|
327 |
<div class="col-xs-4">
|
|
|
328 |
<button type="button" class="btn btn-md confirmprepaid"
|
|
|
329 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">Other</button>
|
| 18825 |
manish.sha |
330 |
<br>
|
|
|
331 |
<span style="font-size: 8px;"> <span style="color:#ff0000;font-size:12px;"> </span></span>
|
| 18718 |
manish.sha |
332 |
</div>
|
|
|
333 |
<div class="col-xs-4">
|
|
|
334 |
<button type="button" class="btn btn-md confirmcod"
|
|
|
335 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">COD</button>
|
| 18825 |
manish.sha |
336 |
<br>
|
|
|
337 |
<span style="font-size: 8px;"> <span style="color:#ff0000;font-size:12px;"> </span></span>
|
| 18718 |
manish.sha |
338 |
</div>
|
| 18825 |
manish.sha |
339 |
<div class="col-xs-4" style="padding:0px;">
|
| 18718 |
manish.sha |
340 |
<button type="button" class="btn btn-md confirmcredit"
|
| 18826 |
manish.sha |
341 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">Credit</button>
|
| 18718 |
manish.sha |
342 |
<br>
|
|
|
343 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
|
|
344 |
</div>
|
|
|
345 |
</div>
|
|
|
346 |
<?php else:?>
|
|
|
347 |
<div class="col-xs-12" style="margin-left: 20px;">
|
|
|
348 |
<div class="col-xs-4">
|
|
|
349 |
<span
|
|
|
350 |
style='padding-right: 2px; color: red; font-size: 12px; " margin: 0px 10px 0px 0px;'>*COD
|
|
|
351 |
Not Available</span>
|
|
|
352 |
</div>
|
|
|
353 |
<div class="col-xs-4">
|
|
|
354 |
<button type="button" class="btn btn-md confirmprepaid"
|
|
|
355 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">Other</button>
|
|
|
356 |
</div>
|
|
|
357 |
<div class="col-xs-4" style="padding:0px;">
|
|
|
358 |
<button type="button" class="btn btn-md confirmcredit"
|
|
|
359 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;padding-right: 30px;padding-left: 30px;">Credit</button>
|
|
|
360 |
<br>
|
|
|
361 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
|
|
362 |
</div>
|
|
|
363 |
</div>
|
|
|
364 |
<?php endif;?>
|
|
|
365 |
<?php else:?>
|
| 18768 |
manish.sha |
366 |
<span id="CreditError" style='color: red; font-size: 11px; " margin: 0px 10px 0px 0px;'>* Your Credit Limit is less than Order Amount. <br>* आपकी उपलब्ध क्रेडिट लिमिट आर्डर राशि से कम है। </span>
|
| 18718 |
manish.sha |
367 |
<?php if($codAvailable):?>
|
|
|
368 |
<div class="col-xs-12" style="margin-left: 20px;">
|
|
|
369 |
<div class="col-xs-4">
|
|
|
370 |
<button type="button" class="btn btn-md confirmprepaid"
|
|
|
371 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">Other</button>
|
| 18825 |
manish.sha |
372 |
<br>
|
|
|
373 |
<span style="font-size: 8px;"> <span style="color:#ff0000;font-size:12px;"> </span></span>
|
| 18718 |
manish.sha |
374 |
</div>
|
|
|
375 |
<div class="col-xs-4">
|
|
|
376 |
<button type="button" class="btn btn-md confirmcod"
|
|
|
377 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">COD</button>
|
| 18825 |
manish.sha |
378 |
<br>
|
|
|
379 |
<span style="font-size: 8px;"> <span style="color:#ff0000;font-size:12px;"> </span></span>
|
| 18718 |
manish.sha |
380 |
</div>
|
| 18825 |
manish.sha |
381 |
<div class="col-xs-4" style="padding:0px;">
|
| 18718 |
manish.sha |
382 |
<button type="button" class="btn btn-md confirmcredit"
|
| 18826 |
manish.sha |
383 |
style="margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;"
|
| 18718 |
manish.sha |
384 |
disabled="true">Credit</button>
|
|
|
385 |
<br>
|
|
|
386 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
|
|
387 |
</div>
|
|
|
388 |
</div>
|
|
|
389 |
<?php else:?>
|
|
|
390 |
<div class="col-xs-12" style="margin-left: 20px;">
|
|
|
391 |
<div class="col-xs-4">
|
|
|
392 |
<span
|
|
|
393 |
style='padding-right: 2px; color: red; font-size: 12px; " margin: 0px 10px 0px 0px;'>*COD
|
|
|
394 |
Not Available</span>
|
|
|
395 |
</div>
|
|
|
396 |
<div class="col-xs-4">
|
|
|
397 |
<button type="button" class="btn btn-md confirmprepaid"
|
|
|
398 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">Other</button>
|
|
|
399 |
</div>
|
|
|
400 |
<div class="col-xs-4" style="padding:0px;">
|
|
|
401 |
<button type="button" class="btn btn-md confirmcredit"
|
| 18826 |
manish.sha |
402 |
style="margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;"
|
| 18718 |
manish.sha |
403 |
disabled="true">Credit</button>
|
|
|
404 |
<br>
|
|
|
405 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
|
|
406 |
</div>
|
|
|
407 |
</div>
|
|
|
408 |
<?php endif;?>
|
|
|
409 |
<?php endif;?>
|
|
|
410 |
<?php else:?>
|
| 18768 |
manish.sha |
411 |
<span id="CreditError" style='color: red; font-size: 11px; " margin: 0px 10px 0px 0px;'>* Minimum Order Amount Should be ₹ <?php echo number_format($creditTicketSize);?> for Credit <br>* क्रेडिट के लिए न्यूनतम आर्डर राशि ₹ <?php echo number_format($creditTicketSize);?> होनी चाहिए ।</span>
|
| 18718 |
manish.sha |
412 |
<?php if($codAvailable):?>
|
|
|
413 |
<div class="col-xs-12" style="margin-left: 20px;">
|
|
|
414 |
<div class="col-xs-4">
|
|
|
415 |
<button type="button" class="btn btn-md confirmprepaid"
|
|
|
416 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">Other</button>
|
| 18825 |
manish.sha |
417 |
<br>
|
|
|
418 |
<span style="font-size: 8px;"> <span style="color:#ff0000;font-size:12px;"> </span></span>
|
| 18718 |
manish.sha |
419 |
</div>
|
|
|
420 |
<div class="col-xs-4">
|
|
|
421 |
<button type="button" class="btn btn-md confirmcod"
|
|
|
422 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">COD</button>
|
| 18825 |
manish.sha |
423 |
<br>
|
|
|
424 |
<span style="font-size: 8px;"> <span style="color:#ff0000;font-size:12px;"> </span></span>
|
| 18718 |
manish.sha |
425 |
</div>
|
| 18825 |
manish.sha |
426 |
<div class="col-xs-4" style="padding:0px;">
|
| 18718 |
manish.sha |
427 |
<button type="button" class="btn btn-md confirmcredit"
|
| 18826 |
manish.sha |
428 |
style="margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;"
|
| 18718 |
manish.sha |
429 |
disabled="true">Credit</button>
|
|
|
430 |
<br>
|
|
|
431 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
|
|
432 |
</div>
|
|
|
433 |
</div>
|
|
|
434 |
<?php else:?>
|
|
|
435 |
<div class="col-xs-12" style="margin-left: 20px;">
|
|
|
436 |
<div class="col-xs-4">
|
|
|
437 |
<span
|
|
|
438 |
style='padding-right: 2px; color: red; font-size: 12px; " margin: 0px 10px 0px 0px;'>*COD
|
|
|
439 |
Not Available</span>
|
|
|
440 |
</div>
|
|
|
441 |
<div class="col-xs-4">
|
|
|
442 |
<button type="button" class="btn btn-md confirmprepaid"
|
|
|
443 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;">Other</button>
|
|
|
444 |
</div>
|
|
|
445 |
<div class="col-xs-4" style="padding:0px;">
|
|
|
446 |
<button type="button" class="btn btn-md confirmcredit"
|
| 18826 |
manish.sha |
447 |
style="margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;"
|
| 18718 |
manish.sha |
448 |
disabled="true">Credit</button>
|
|
|
449 |
<br>
|
|
|
450 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
|
|
451 |
</div>
|
|
|
452 |
</div>
|
|
|
453 |
<?php endif;?>
|
|
|
454 |
<?php endif;?>
|
|
|
455 |
<?php else:?>
|
|
|
456 |
<?php if($codAvailable):?>
|
|
|
457 |
<a href="#" style='padding-right: 2px; color: blue; font-size: 15px;'
|
|
|
458 |
class="confirmprepaid"><u>Other Pay Option</u> </a>
|
|
|
459 |
<button class="btn btn-success confirmcheckout pull-right">Confirm
|
|
|
460 |
Order via COD</button>
|
|
|
461 |
<?php else:?>
|
|
|
462 |
<span style='padding-right: 2px; color: red; font-size: 15px;'>*COD
|
|
|
463 |
Not Available</span>
|
|
|
464 |
<button class="btn btn-success confirmprepaid pull-right">Other Pay
|
|
|
465 |
Option</button>
|
|
|
466 |
<?php endif;?>
|
|
|
467 |
<?php endif;?>
|
| 17794 |
naman |
468 |
|
| 18718 |
manish.sha |
469 |
</div>
|
|
|
470 |
</div>
|
|
|
471 |
|
|
|
472 |
<!-- Cart section end -->
|
| 17794 |
naman |
473 |
</div>
|
|
|
474 |
|