Subversion Repositories SmartDukaan

Rev

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

Rev 1463 Rev 1981
Line 6... Line 6...
6
 
6
 
7
	$('#cartTable td img.remove-quantitybttn').click(function(){
7
	$('#cartTable td img.remove-quantitybttn').click(function(){
8
		var prodID = $(this).parent().parent().parent().children().find("span.pro").attr("id");
8
		var prodID = $(this).parent().parent().parent().children().find("span.pro").attr("id");
9
		window.location.href = "/cart/"  + prodID + "?_method=delete" + "&productid=" + prodID;
9
		window.location.href = "/cart/"  + prodID + "?_method=delete" + "&productid=" + prodID;
10
	});
10
	});
-
 
11
	
-
 
12
	$('#applyCoupon').click(function(){
-
 
13
		$('#couponAction').val('applycoupon');
-
 
14
		$('#frmCouponCode').submit();
-
 
15
	});
-
 
16
	
-
 
17
	$('#removeCoupon').click(function(){
-
 
18
		$('#couponAction').val('removecoupon');
-
 
19
		$('#frmCouponCode').submit();
-
 
20
	});
11
});
21
});
12
 
22
 
13
function changeQty(obj,itempriceID,totalPriceID)	{
23
function changeQty(obj,itempriceID,totalPriceID)	{
14
	var prodID = $(obj).parent().parent().parent().parent().parent().parent().children().find("span.pro").attr("id");
24
	var prodID = $(obj).parent().parent().parent().parent().parent().parent().children().find("span.pro").attr("id");
15
	var quantity = parseInt(obj.value);
25
	var quantity = parseInt(obj.value);