| Line 22... |
Line 22... |
| 22 |
if(cart_details == undefined || creditTicketSize>totalPayable || totalPayable>=creditLimit){
|
22 |
if(cart_details == undefined || creditTicketSize>totalPayable || totalPayable>=creditLimit){
|
| 23 |
$('button.confirmcredit').prop( "disabled", true );
|
23 |
$('button.confirmcredit').prop( "disabled", true );
|
| 24 |
}else{
|
24 |
}else{
|
| 25 |
$('button.confirmcredit').prop( "disabled", false );
|
25 |
$('button.confirmcredit').prop( "disabled", false );
|
| 26 |
}
|
26 |
}
|
| - |
|
27 |
var creditAvailable = $("input.css-checkbox:checked").attr('credit_available');
|
| - |
|
28 |
if(creditAvailable=='true'){
|
| - |
|
29 |
$('button.confirmcredit').prop( "disabled", false );
|
| - |
|
30 |
}else{
|
| - |
|
31 |
$('button.confirmcredit').prop( "disabled", true );
|
| - |
|
32 |
}
|
| 27 |
|
33 |
|
| 28 |
if (window.history && window.history.pushState) {
|
34 |
if (window.history && window.history.pushState) {
|
| 29 |
$(window).on('popstate', function() {
|
35 |
$(window).on('popstate', function() {
|
| 30 |
$('#myModal').modal('hide');
|
36 |
$('#myModal').modal('hide');
|
| 31 |
$("#cartloader").addClass('hidden');
|
37 |
$("#cartloader").addClass('hidden');
|
| Line 190... |
Line 196... |
| 190 |
|
196 |
|
| 191 |
<input type="radio" class="css-checkbox"
|
197 |
<input type="radio" class="css-checkbox"
|
| 192 |
id='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
|
198 |
id='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
|
| 193 |
value='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
|
199 |
value='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
|
| 194 |
name="selectedaddress"
|
200 |
name="selectedaddress"
|
| 195 |
<?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "checked";}?>>
|
201 |
<?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "checked";}?>
|
| - |
|
202 |
<?php if($address['addresses'][$firstshowaddress[$i]]['creditOptionAvailable']):?> credit_available="true" <?php else: ?> credit_available="false"<?php endif;?> >
|
| 196 |
|
203 |
|
| 197 |
<label
|
204 |
<label
|
| 198 |
for="<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>"
|
205 |
for="<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>"
|
| 199 |
class="css-label radGroup2"
|
206 |
class="css-label radGroup2"
|
| 200 |
data-pin="<?php echo $address['addresses'][$firstshowaddress[$i]]['pin'];?>"
|
207 |
data-pin="<?php echo $address['addresses'][$firstshowaddress[$i]]['pin'];?>"
|
| Line 209... |
Line 216... |
| 209 |
if(isset($address['addresses'][$firstshowaddress[$i]]['state']) && !empty($address['addresses'][$firstshowaddress[$i]]['state']))
|
216 |
if(isset($address['addresses'][$firstshowaddress[$i]]['state']) && !empty($address['addresses'][$firstshowaddress[$i]]['state']))
|
| 210 |
{echo ", ",$address['addresses'][$firstshowaddress[$i]]['state'];}
|
217 |
{echo ", ",$address['addresses'][$firstshowaddress[$i]]['state'];}
|
| 211 |
if(isset($address['addresses'][$firstshowaddress[$i]]['pin']) && !empty($address['addresses'][$firstshowaddress[$i]]['pin']))
|
218 |
if(isset($address['addresses'][$firstshowaddress[$i]]['pin']) && !empty($address['addresses'][$firstshowaddress[$i]]['pin']))
|
| 212 |
{echo ",",$address['addresses'][$firstshowaddress[$i]]['pin'];}
|
219 |
{echo ",",$address['addresses'][$firstshowaddress[$i]]['pin'];}
|
| 213 |
?> </label>
|
220 |
?> </label>
|
| - |
|
221 |
<?php if($address['addresses'][$firstshowaddress[$i]]['creditOptionAvailable']):?>
|
| 214 |
<i class="glyphicon glyphicon-info-sign pull-right" style="font-size: 10px;color: #36BBD9;">
|
222 |
<i class="glyphicon glyphicon-info-sign pull-right" style="font-size: 10px;color: #36BBD9;">
|
| 215 |
<span style="color: #36BBD9;font-size: 10px;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;">Credit Available</span>
|
223 |
<span style="color: #36BBD9;font-size: 10px;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;">Credit Available</span>
|
| 216 |
</i>
|
224 |
</i>
|
| - |
|
225 |
<?php endif;?>
|
| - |
|
226 |
<?php if($address['addresses'][$firstshowaddress[$i]]['taxInvoiceAvailable']):?>
|
| 217 |
<i class="glyphicon glyphicon-info-sign pull-right" style="font-size: 10px;color: #EB712D;">
|
227 |
<i class="glyphicon glyphicon-info-sign pull-right" style="font-size: 10px;color: #EB712D;">
|
| 218 |
<span style="color: #EB712D;font-size: 10px;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;">Tax Invoice</span>
|
228 |
<span style="color: #EB712D;font-size: 10px;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;">Tax Invoice</span>
|
| 219 |
</i>
|
229 |
</i>
|
| - |
|
230 |
<?php endif;?>
|
| 220 |
|
231 |
|
| 221 |
</div>
|
232 |
</div>
|
| 222 |
<hr style='margin: 0px; padding: 0px; border-color: #58d936;'>
|
233 |
<hr style='margin: 0px; padding: 0px; border-color: #58d936;'>
|
| 223 |
<?php //endif;?>
|
234 |
<?php //endif;?>
|
| 224 |
|
235 |
|