Subversion Repositories SmartDukaan

Rev

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

Rev 7865 Rev 7872
Line 297... Line 297...
297
					$('#cod_know_more').hide();
297
					$('#cod_know_more').hide();
298
				}else{
298
				}else{
299
					if(isCODAvailableForLocation){
299
					if(isCODAvailableForLocation){
300
						codDate = new Date(codDeliveryEstimate);
300
						codDate = new Date(codDeliveryEstimate);
301
						coddays = (codDate-myDate)/86400000;
301
						coddays = (codDate-myDate)/86400000;
-
 
302
						if(coddays > 0){
-
 
303
							$('#cod_know_more').show();
302
						$("#shipping_time .cod").html("Expected Delivery date for Cash On Delivery orders is " + codDeliveryEstimate);
304
							$("#shipping_time .cod").html("Cash On Delivery orders is " + codDeliveryEstimate);
-
 
305
						}
303
					}else{
306
					}else{
304
						$("#shipping_time .cod").html("Cash On Delivery service is not available for pincode " + $('#zipcode').val());
307
						$('#cod_know_more').hide();
305
					}
308
					}
306
					$('#cod_know_more').show();
-
 
307
					if(days == 1){
309
					if(days == 1){
308
						$("#shipping_time .red").html("Tomorrow, " + deliveryEstimate);
310
						$("#shipping_time .red").html("Tomorrow, " + deliveryEstimate);
309
					}else{
311
					}else{
310
						$("#shipping_time .red").html(deliveryEstimate);
312
						$("#shipping_time .red").html(deliveryEstimate);
311
					}
313
					}