Subversion Repositories SmartDukaan

Rev

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

Rev 6021 Rev 6561
Line 196... Line 196...
196
		},
196
		},
197
		success: function(msg)	{
197
		success: function(msg)	{
198
			var response = eval('(' + msg + ')');
198
			var response = eval('(' + msg + ')');
199
			var deliveryEstimate = parseInt(response['delivery_estimate']);
199
			var deliveryEstimate = parseInt(response['delivery_estimate']);
200
			var isCODAvailableForLocation = (response['is_cod_available_for_location'] === 'true');
200
			var isCODAvailableForLocation = (response['is_cod_available_for_location'] === 'true');
-
 
201
			var isOTG = (response['on_time_guarantee'] === 'true');
201
			
202
			
202
			if(deliveryEstimate == -1)	{
203
			if(deliveryEstimate == -1)	{
203
				$("#shipping_time").hide();
204
				$("#shipping_time").hide();
204
				$("#shipping_time_1").show();
205
				$("#shipping_time_1").show();
205
			} else	{
206
			} else	{
Line 209... Line 210...
209
			if (isCODAvailableForLocation)	{
210
			if (isCODAvailableForLocation)	{
210
				$('#cod').show();
211
				$('#cod').show();
211
			} else {
212
			} else {
212
				$('#cod').hide();
213
				$('#cod').hide();
213
			}
214
			}
-
 
215
			
-
 
216
			if (isOTG)	{
-
 
217
				$('#otg').show();
-
 
218
			} else {
-
 
219
				$('#otg').hide();
-
 
220
			}
214
		}
221
		}
215
	});
222
	});
216
}
223
}
217
 
224
 
218
function load_most_compared_widget(){
225
function load_most_compared_widget(){