Subversion Repositories SmartDukaan

Rev

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

Rev 9722 Rev 11865
Line 4... Line 4...
4
	checkIfUserHasAddress();
4
	checkIfUserHasAddress();
5
	if(window.location.pathname === "/cart") {
5
	if(window.location.pathname === "/cart") {
6
		changeEstimate();
6
		changeEstimate();
7
	}
7
	}
8
	
8
	
-
 
9
	if(typeof couponApplied!="undefined" && couponApplied){
-
 
10
		if ( typeof _gaq != "undefined" && _gaq != null) {
-
 
11
        	_gaq.push(["_trackEvent", "COUPON", "Coupon Applied", couponCode, cartItemIds);
-
 
12
      	}
-
 
13
    }
9
	$('.wantInsurance').change( function() {
14
	$('.wantInsurance').change( function() {
10
		productId = $(this).attr('productid');
15
		productId = $(this).attr('productid');
11
		if(this.checked) {
16
		if(this.checked) {
12
			trackEventWithGA('Insurance', 'Want Insurance', productId);
17
			trackEventWithGA('Insurance', 'Want Insurance', productId);
13
		}
18
		}