Subversion Repositories SmartDukaan

Rev

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

Rev 4869 Rev 4934
Line 6... Line 6...
6
	$(".controls").tabs();
6
	$(".controls").tabs();
7
	
7
	
8
	$('#forgot_username_link').tipsy({gravity: 'w'});
8
	$('#forgot_username_link').tipsy({gravity: 'w'});
9
 
9
 
10
	$("#zipcode").val($("#defaultpincode").val());
10
	$("#zipcode").val($("#defaultpincode").val());
-
 
11
	
-
 
12
	if(typeof Entity != 'undefined'){
-
 
13
		var select = $("#colorSelector");
-
 
14
		$.each(Entity.orderedItems, function(index, sort) {
-
 
15
			select.find('option[value="' + sort + '"]').appendTo(select);
-
 
16
		});
-
 
17
		select.find("option:eq(0)").remove();
-
 
18
		$("#item_id").val(Entity.orderedItems[0]);
-
 
19
		updateEstimate(getSeletectedItemId());
-
 
20
	}
11
 
21
 
12
    updateEstimate(getSeletectedItemId());
-
 
13
    
-
 
14
    var prodid = $("#product_id").val();
22
    var prodid = $("#product_id").val();
15
    
23
    
16
	add_to_storage_set("histitems", prodid);
24
	add_to_storage_set("histitems", prodid);
17
    
25
    
18
    load_history_widget();
26
    load_history_widget();
Line 53... Line 61...
53
			success: function(msg)	{
61
			success: function(msg)	{
54
	   			 if(msg == "") {
62
	   			 if(msg == "") {
55
	   				 trackEventWithGA('Order', 'Add to Cart', getSeletectedItemId() + '');
63
	   				 trackEventWithGA('Order', 'Add to Cart', getSeletectedItemId() + '');
56
					 window.location = "/cart";
64
					 window.location = "/cart";
57
				 } else {
65
				 } else {
-
 
66
					 var productDetail =  $("#productDetail");
-
 
67
    				 var prodInfo = $(productDetail).find("span.brand").html() + $(productDetail).find("span.product-name").html();
58
					 displayRelatedProducts(msg);
68
					 displayRelatedProducts(msg);
-
 
69
					 trackEventWithGA('Order', 'OOS Lightbox', prodInfo);
59
				 }
70
				 }
60
	   		}
71
	   		}
61
		});
72
		});
62
	});
73
	});
63
	
74