Subversion Repositories SmartDukaan

Rev

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

Rev 11849 Rev 11850
Line 22... Line 22...
22
		_gaq.push(['_trackPageview', page]);
22
		_gaq.push(['_trackPageview', page]);
23
	}
23
	}
24
}
24
}
25
 
25
 
26
$(function() {
26
$(function() {
27
	  $('.add-to-cart-icon','.add-to-cart-button').live('click', function() {
27
	  $('.add-to-cart-icon,.add-to-cart-button').live('click', function() {
28
		clickedCatalogItem=$(this).closest('div.productDetails').find('a').html();
28
		clickedCatalogItem=$(this).closest('div.productDetails').find('a').html();
29
	    var items = this.id;
29
	    var items = this.id;
30
	    var itemsarray = items.split('-');
30
	    var itemsarray = items.split('-');
31
	    addToCart(itemsarray[1], itemsarray[0]);
31
	    addToCart(itemsarray[1], itemsarray[0]);
32
	    trackEventWithGA('Home Page', 'Add to Cart Click', '');
32
	    trackEventWithGA('Home Page', 'Add to Cart Click', '');
Line 41... Line 41...
41
	  });
41
	  });
42
	  $('.best-sellers .title a, .best-sellers .productImg a').click(function(){
42
	  $('.best-sellers .title a, .best-sellers .productImg a').click(function(){
43
		  trackEventWithGA('Home Page', 'Product Link Click', 'Best Sellers');
43
		  trackEventWithGA('Home Page', 'Product Link Click', 'Best Sellers');
44
	  });
44
	  });
45
	
45
	
46
	$("a.addtocart", "a.addtocartbutton").live('click', function() {
46
	$("a.addtocart,a.addtocartbutton").live('click', function() {
47
		clickedCatalogItem=$(this).closest('div.productDetails').find('a').html();
47
		clickedCatalogItem=$(this).closest('div.productDetails').find('a').html();
48
		var catalogid = $(this).attr('catalogid');
48
		var catalogid = $(this).attr('catalogid');
49
		
49
		
50
		var radBtn = "";
50
		var radBtn = "";
51
		var param = "PARAMETERS_" + catalogid;
51
		var param = "PARAMETERS_" + catalogid;