Subversion Repositories SmartDukaan

Rev

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

Rev 9720 Rev 9721
Line 405... Line 405...
405
		if (quantity > 5)	{
405
		if (quantity > 5)	{
406
			alert("You can not order more than 5 pieces of same product.");
406
			alert("You can not order more than 5 pieces of same product.");
407
			$(obj).focus();
407
			$(obj).focus();
408
		}
408
		}
409
		else	{
409
		else	{
410
			$.ajax({
-
 
411
				type: "POST",
-
 
412
				url: "/cart/" + itemId + "?_method=put&productid=" + itemId + "&quantity=" + quantity,
410
				$.post("/cart/" + itemId + "?_method=put&productid=" + itemId + "&quantity=" + quantity);
413
				async:true
-
 
414
			});
411
				
415
		}
412
		}
416
	});
413
	});
417
	
414
	
418
	$('#submitAddress').click(function(){
415
	$('#submitAddress').click(function(){
419
		if($('#guardianName').length > 0 && $('#guardianName').val() === '') {
416
		if($('#guardianName').length > 0 && $('#guardianName').val() === '') {