Subversion Repositories SmartDukaan

Rev

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

Rev 1919 Rev 1922
Line 15... Line 15...
15
    
15
    
16
	add_to_storage_set("histitems", prodid);
16
	add_to_storage_set("histitems", prodid);
17
    
17
    
18
    load_history_widget();
18
    load_history_widget();
19
 
19
 
-
 
20
    /**
-
 
21
     * Code to track user clicks on Product slides and 'Proceed to Payment' option
-
 
22
     */
-
 
23
	$('a.vt').click(function(){
-
 
24
		trackEventWithGA('Product', $(this).children('span').text(), $('title').text().split('|')[0].trim());
-
 
25
	});
-
 
26
	
20
    $("#addcart").click(function(){
27
    $("#addcart").click(function(){
21
		jQuery.ajax({
28
		jQuery.ajax({
22
			type: "POST",
29
			type: "POST",
23
			url: "/addtocart",
30
			url: "/addtocart",
24
			data: "productid=" + $("#item_id").val(),
31
			data: "productid=" + $("#item_id").val(),