Subversion Repositories SmartDukaan

Rev

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

Rev 1795 Rev 1809
Line 19... Line 19...
19
 
19
 
20
	$("a.addtocart").live('click', function() {
20
	$("a.addtocart").live('click', function() {
21
		var catalogid = $(this).attr('catalogid');
21
		var catalogid = $(this).attr('catalogid');
22
 
22
 
23
		//Tracking this click for Google Analytics
23
		//Tracking this click for Google Analytics
-
 
24
		if(_gaq)	{
24
		_gaq.push(['_trackEvent', 'Order', 'Add to Cart', catalogid, 2]);
25
			_gaq.push(['_trackEvent', 'Order', 'Add to Cart', catalogid, 2]);
-
 
26
		}
25
		
27
		
26
		var radBtn = "";
28
		var radBtn = "";
27
		var param = "PARAMETERS_" + catalogid;
29
		var param = "PARAMETERS_" + catalogid;
28
	
30
	
29
		$.each(eval(param), function(val, text) {
31
		$.each(eval(param), function(val, text) {
Line 118... Line 120...
118
     }else if(reqtype=="list"){
120
     }else if(reqtype=="list"){
119
    	  seldata.unshift(refdivid);
121
    	  seldata.unshift(refdivid);
120
          var tot=1;
122
          var tot=1;
121
     }
123
     }
122
 
124
 
123
 	//Tracking this click for Google Analytics
125
     //Tracking this click for Google Analytics
-
 
126
     if(_gaq)	{
124
 	_gaq.push(['_trackEvent', 'Research', 'Add to Research', seldata, 2]);
127
     	_gaq.push(['_trackEvent', 'Research', 'Add to Research', seldata, 2]);
-
 
128
     }
125
 	
129
     
126
     if(tot > 0)	{
130
     if(tot > 0)	{
127
          //alert("AJAX request to add products in My research. Product ID: "+seldata+" and total: "+tot);
131
          //alert("AJAX request to add products in My research. Product ID: "+seldata+" and total: "+tot);
128
          jQuery.ajax({
132
          jQuery.ajax({
129
               type: "POST",
133
               type: "POST",
130
                      url: "/addtoresearch",
134
                      url: "/addtoresearch",