Subversion Repositories SmartDukaan

Rev

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

Rev 2810 Rev 2811
Line 27... Line 27...
27
	$('a.vt').click(function(){
27
	$('a.vt').click(function(){
28
		trackEventWithGA('Product', $(this).children('span').text(), $('title').text().split('|')[0].trim());
28
		trackEventWithGA('Product', $(this).children('span').text(), $('title').text().split('|')[0].trim());
29
	});
29
	});
30
	
30
	
31
    $("#addcart").click(function(){
31
    $("#addcart").click(function(){
32
    	var catalogid = $("#product_id").val();
-
 
33
		jQuery.ajax({
32
    	jQuery.ajax({
34
			type: "POST",
33
			type: "POST",
35
			url: "/addtocart",
34
			url: "/addtocart",
36
			data: "productid=" + $("#item_id").val(),
35
			data: "productid=" + $("#item_id").val(),
37
			success: function(msg)	{
36
			success: function(msg)	{
38
	   			 if(msg==""){
37
	   			 if(msg==""){