| Line 179... |
Line 179... |
| 179 |
|
179 |
|
| 180 |
var currentShippingCharges = $('div.cartitemstotal span.shippingval').text().split(" ");
|
180 |
var currentShippingCharges = $('div.cartitemstotal span.shippingval').text().split(" ");
|
| 181 |
currentShippingCharges = parseInt(currentShippingCharges[1]);
|
181 |
currentShippingCharges = parseInt(currentShippingCharges[1]);
|
| 182 |
var currentItemTotal = $('div.cartitemstotal span.itemstotal').text().split(" ");
|
182 |
var currentItemTotal = $('div.cartitemstotal span.itemstotal').text().split(" ");
|
| 183 |
currentItemTotal = currentItemTotal[1].toString();
|
183 |
currentItemTotal = currentItemTotal[1].toString();
|
| 184 |
currentItemTotal = currentItemTotal.replace(/\,/g,'');
|
184 |
currentItemTotal = currentItemTotal.split(',').join("");
|
| 185 |
currentItemTotal = parseFloat(currentItemTotal[1]);
|
185 |
currentItemTotal = parseFloat(currentItemTotal[1]);
|
| 186 |
if(currentShippingCharges>0){
|
186 |
if(currentShippingCharges>0){
|
| 187 |
if(currentItemTotal>0){
|
187 |
if(currentItemTotal>0){
|
| 188 |
var additionalAmount = 1000.0-currentItemTotal;
|
188 |
var additionalAmount = 1000.0-currentItemTotal;
|
| 189 |
additionalAmount = additionalAmount.toFixed();
|
189 |
additionalAmount = additionalAmount.toFixed();
|