Subversion Repositories SmartDukaan

Rev

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

Rev 2968 Rev 2985
Line 33... Line 33...
33
			type: "POST",
33
			type: "POST",
34
			url: "/addtocart",
34
			url: "/addtocart",
35
			data: "productid=" + $("#item_id").val(),
35
			data: "productid=" + $("#item_id").val(),
36
			success: function(msg)	{
36
			success: function(msg)	{
37
	   			 if(msg==""){
37
	   			 if(msg==""){
-
 
38
	   				 trackEventWithGA('Order', 'Add to Cart', $("#item_id").val() + '');
38
					 window.location = "/cart";
39
					 window.location = "/cart";
39
				 }else{
40
				 }else{
40
					 displayRelatedProducts(msg);
41
					 displayRelatedProducts(msg);
41
				 }			
42
				 }			
42
	   		}
43
	   		}