Subversion Repositories SmartDukaan

Rev

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

Rev 7809 Rev 7810
Line 223... Line 223...
223
					$("#shipping_time .red").html(days + " Days");
223
					$("#shipping_time .red").html(days + " Days");
224
				}else{
224
				}else{
225
					if(isCODAvailableForLocation){
225
					if(isCODAvailableForLocation){
226
						codDate = new Date(codDeliveryEstimate);
226
						codDate = new Date(codDeliveryEstimate);
227
						coddays = codDate.getDate() - myDate.getDate();
227
						coddays = codDate.getDate() - myDate.getDate();
228
						if(days > 1){
228
						if(coddays > 0){
229
							$('#cod_know_more').show();
229
							$('#cod_know_more').show();
230
							$("#shipping_time .cod").html(codDeliveryEstimate);
-
 
231
						}
230
						}
-
 
231
						$("#shipping_time .cod").html("COD delivery date is " + codDeliveryEstimate);
-
 
232
					}else{
-
 
233
						$("#shipping_time .cod").html("COD is not serviceable for pincode " + $('#zipcode').html());
232
					}
234
					}
233
					if(days == 1){
235
					if(days == 1){
234
						$("#shipping_time .red").html("Tomorrow, " + deliveryEstimate);
236
						$("#shipping_time .red").html("Tomorrow, " + deliveryEstimate);
235
					}else{
237
					}else{
236
						$("#shipping_time .red").html(deliveryEstimate);
238
						$("#shipping_time .red").html(deliveryEstimate);