| Line 4... |
Line 4... |
| 4 |
var cart_details = localStorage.getItem("cart_details");
|
4 |
var cart_details = localStorage.getItem("cart_details");
|
| 5 |
if(cart_details == undefined){
|
5 |
if(cart_details == undefined){
|
| 6 |
$('span#totalPayable').text(' ₹ 0');
|
6 |
$('span#totalPayable').text(' ₹ 0');
|
| 7 |
$('button.confirmcheckout').prop( "disabled", true );
|
7 |
$('button.confirmcheckout').prop( "disabled", true );
|
| 8 |
$('.confirmprepaid').addClass('confirmprepaidDisabled').removeClass('confirmprepaid');
|
8 |
$('.confirmprepaid').addClass('confirmprepaidDisabled').removeClass('confirmprepaid');
|
| - |
|
9 |
$('button.confirmcredit').prop( "disabled", true );
|
| 9 |
}else{
|
10 |
}else{
|
| 10 |
$('button.confirmcheckout').prop( "disabled", false );
|
11 |
$('button.confirmcheckout').prop( "disabled", false );
|
| 11 |
$('.confirmprepaidDisabled').addClass('confirmprepaid').removeClass('confirmprepaidDisabled');
|
12 |
$('.confirmprepaidDisabled').addClass('confirmprepaid').removeClass('confirmprepaidDisabled');
|
| - |
|
13 |
$('button.confirmcredit').prop( "disabled", false );
|
| 12 |
}
|
14 |
}
|
| 13 |
});
|
15 |
});
|
| 14 |
</script>
|
16 |
</script>
|
| 15 |
<style>
|
17 |
<style>
|
| 16 |
#footer {
|
18 |
#footer {
|
| Line 118... |
Line 120... |
| 118 |
<div class='row' style="padding-bottom:55px;">
|
120 |
<div class='row' style="padding-bottom:55px;">
|
| 119 |
|
121 |
|
| 120 |
|
122 |
|
| 121 |
<div class= 'row'>
|
123 |
<div class= 'row'>
|
| 122 |
<div class='col-xs-12' style="background-color:white;margin-top:5px;">
|
124 |
<div class='col-xs-12' style="background-color:white;margin-top:5px;">
|
| 123 |
<?php if($taxInvoiceCounter):?>
|
125 |
<?php if($addressEditable):?>
|
| 124 |
<h4>Shipping & Billing Address: </h4> <span style='padding-right:2px;color:red;font-size:10px;float:right;'>For Any Change in Shipping Address. Please Contact Customer Care</span>
|
126 |
<h4>Shipping Address: <a href= "<?php echo $base_url;?>shippings/add/<?php echo $user_name.'/'.$user_contact;?>" class='btn btn-success btn-xs' style='float:right;'>Add New Address</a></h4>
|
| 125 |
<?php else:?>
|
127 |
<?php else:?>
|
| 126 |
<h4>Shipping Address: <a href= "<?php echo $base_url;?>shippings/add/<?php echo $user_name.'/'.$user_contact;?>" class='btn btn-success btn-xs' style='float:right;'>Add New Address</a></h4>
|
128 |
<h4>Shipping & Billing Address: </h4> <span style='padding-right:2px;color:red;font-size:10px;float:right;'>For Any Change in Shipping Address. Please Contact Customer Care</span>
|
| 127 |
<?php endif;?>
|
129 |
<?php endif;?>
|
| 128 |
<br>
|
130 |
<br>
|
| 129 |
|
131 |
|
| 130 |
</div>
|
132 |
</div>
|
| 131 |
</div>
|
133 |
</div>
|
| Line 177... |
Line 179... |
| 177 |
|
179 |
|
| 178 |
<!-- Cart section started -->
|
180 |
<!-- Cart section started -->
|
| 179 |
<div class='row' style='padding:0px;' id='footer'>
|
181 |
<div class='row' style='padding:0px;' id='footer'>
|
| 180 |
<div class='col-xs-12' style='background-color:white;padding: 10px 20px 20px 20px; width:100%;'>
|
182 |
<div class='col-xs-12' style='background-color:white;padding: 10px 20px 20px 20px; width:100%;'>
|
| 181 |
<h4 style="margin: 0px;margin-bottom: 8px;">Total payable Amount: <span style="color:#ff0000;" id="totalPayable"> ₹ <?php echo number_format($totalPayable);?></span></h4>
|
183 |
<h4 style="margin: 0px;margin-bottom: 8px;">Total payable Amount: <span style="color:#ff0000;" id="totalPayable"> ₹ <?php echo number_format($totalPayable);?></span></h4>
|
| - |
|
184 |
<?php if($creditorAssociated):?>
|
| - |
|
185 |
<h6>Confirm Order: Choose Option</h6>
|
| 182 |
<?php if($codAvailable):?>
|
186 |
<?php if($codAvailable):?>
|
| - |
|
187 |
<div class="btn-group " style="margin-left: 20px; ">
|
| - |
|
188 |
<button type="button" class="btn btn-md confirmprepaid" style="margin:10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" class="confirmprepaid">Other</button>
|
| - |
|
189 |
<button type="button" class="btn btn-md confirmcheckout" style="margin:10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" class="confirmcheckout">COD</button>
|
| - |
|
190 |
<button type="button" class="btn btn-md confirmcredit" style="margin:10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" class="confirmcreditoption">Credit</button>
|
| - |
|
191 |
</div>
|
| - |
|
192 |
<?php else:?>
|
| 183 |
<a href="#" style='padding-right:2px;color:blue;font-size:15px;' class="confirmprepaid"><u>Other Pay Option</u></a>
|
193 |
<span style='padding-right:2px;color:red;font-size:15px;"margin:0px 10px 0px 0px;'>*COD Not Available</span>
|
| - |
|
194 |
<div class="btn-group ">
|
| - |
|
195 |
<button type="button" class="btn btn-md confirmprepaid" style="margin:10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" class="confirmprepaid">Other</button>
|
| 184 |
<button class="btn btn-success confirmcheckout pull-right" >Confirm Order via COD</button>
|
196 |
<button type="button" class="btn btn-md confirmcredit" style="margin:10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" class="confirmcreditoption">Credit</button>
|
| - |
|
197 |
</div>
|
| - |
|
198 |
<?php endif;?>
|
| 185 |
<?php else:?>
|
199 |
<?php else:?>
|
| - |
|
200 |
<?php if($codAvailable):?>
|
| - |
|
201 |
<a href="#" style='padding-right:2px;color:blue;font-size:15px;' class="confirmprepaid"><u>Other Pay Option</u></a>
|
| - |
|
202 |
<button class="btn btn-success confirmcheckout pull-right" >Confirm Order via COD</button>
|
| - |
|
203 |
<?php else:?>
|
| 186 |
<span style='padding-right:2px;color:red;font-size:15px;'>*COD Not Available</span>
|
204 |
<span style='padding-right:2px;color:red;font-size:15px;'>*COD Not Available</span>
|
| 187 |
<button class="btn btn-success confirmprepaid pull-right" >Other Pay Option</button>
|
205 |
<button class="btn btn-success confirmprepaid pull-right" >Other Pay Option</button>
|
| - |
|
206 |
<?php endif;?>
|
| 188 |
<?php endif;?>
|
207 |
<?php endif;?>
|
| - |
|
208 |
|
| 189 |
</div>
|
209 |
</div>
|
| 190 |
</div>
|
210 |
</div>
|
| 191 |
|
211 |
|
| 192 |
<!-- Cart section end -->
|
212 |
<!-- Cart section end -->
|
| 193 |
</div>
|
213 |
</div>
|