Subversion Repositories SmartDukaan

Rev

Rev 18300 | Rev 18304 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18300 Rev 18302
Line 398... Line 398...
398
	
398
	
399
	if(shippingCharges>0){
399
	if(shippingCharges>0){
400
		var totalCartValue = cartDetailsObj.totalCartValue;
400
		var totalCartValue = cartDetailsObj.totalCartValue;
401
		var additionalAmount = 1000.0-totalCartValue;
401
		var additionalAmount = 1000.0-totalCartValue;
402
		additionalAmount = additionalAmount.toFixed();
402
		additionalAmount = additionalAmount.toFixed();
-
 
403
		window.history.pushState('forward', null, './?user_id='+me);
403
		$('p#shippingText').html("<span>You are paying ₹ "+ shippingCharges.toFixed() 
404
		$('p#shippingText').html("<span>You are paying ₹ "+ shippingCharges.toFixed() 
404
				+" for shipping.<br> Free Shipping above ₹ 1000.<br> Add More Items.</span><hr style='margin-top: 5px;margin-bottom: 5px;'>"
405
				+" for shipping.<br> Free Shipping above ₹ 1000.<br> Add More Items.</span><hr style='margin-top: 5px;margin-bottom: 5px;'>"
405
				+"<span>आप शिपिंग के लिए  ₹ "+ shippingCharges.toFixed() 
406
				+"<span>आप शिपिंग के लिए  ₹ "+ shippingCharges.toFixed() 
406
				+" का भुगतान कर रहे हैं। <br> ₹ 1000 से ऊपर मुफ्त शिपिंग। <br> और आइटम जोड़ें।</span>");
407
				+" का भुगतान कर रहे हैं। <br> ₹ 1000 से ऊपर मुफ्त शिपिंग। <br> और आइटम जोड़ें।</span>");
407
		$('#myModal').modal('show');
408
		$('#myModal').modal('show');
Line 421... Line 422...
421
}
422
}
422
 
423
 
423
$(document).on('click','button#addItems',function(){
424
$(document).on('click','button#addItems',function(){
424
	$('#myModal').modal('hide');
425
	$('#myModal').modal('hide');
425
	$("#cartloader").removeClass('hidden');
426
	$("#cartloader").removeClass('hidden');
-
 
427
	history.back();
426
});
428
});
427
 
429
 
428
$(document).on('click','button#continueCheckout',function(){
430
$(document).on('click','button#continueCheckout',function(){
429
	$('#myModal').modal('hide');
431
	$('#myModal').modal('hide');
430
	$("#cartloader").removeClass('hidden');
432
	$("#cartloader").removeClass('hidden');
Line 435... Line 437...
435
    }).append($('<input>', {
437
    }).append($('<input>', {
436
        'name': 'cart_details',
438
        'name': 'cart_details',
437
        'value': localStorage.getItem('cart_details'),
439
        'value': localStorage.getItem('cart_details'),
438
        'type': 'hidden'
440
        'type': 'hidden'
439
    }));
441
    }));
-
 
442
    history.form=newForm;
440
    newForm.submit();
443
    history.back();
441
});
444
});
442
 
445
 
443
$(document).on('click','.changepincode',function(){
446
$(document).on('click','.changepincode',function(){
444
	$('#cartLoadingModal').modal('show');
447
	$('#cartLoadingModal').modal('show');
445
	var pincode = "pin_"+$('.pincodeval').val();
448
	var pincode = "pin_"+$('.pincodeval').val();