Subversion Repositories SmartDukaan

Rev

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

Rev 11920 Rev 12085
Line 712... Line 712...
712
    }
712
    }
713
 }
713
 }
714
 var url;
714
 var url;
715
 url = document.URL;
715
 url = document.URL;
716
 if(url.indexOf('recharge-result') != -1){
716
 if(url.indexOf('recharge-result') != -1){
717
 	if(orderConfirmation != undefined){
717
 	// if(orderConfirmation != undefined){
718
 		var amount = parseFloat(orderConfirmation['response'].totalAmount).toFixed(2);
718
 	// 	var amount = parseFloat(orderConfirmation['response'].totalAmount).toFixed(2);
719
 		var orderId = orderConfirmation['response'].rechargeDisplayId;
719
 	// 	var orderId = orderConfirmation['response'].rechargeDisplayId;
720
 		var deviceNumber = orderConfirmation['response'].rechargeDeviceNumber;
720
 	// 	var deviceNumber = orderConfirmation['response'].rechargeDeviceNumber;
721
 		_gaq.push(['_addTrans',
721
 	// 	_gaq.push(['_addTrans',
722
			orderId,                     // Transaction ID. Required.
722
		// 	orderId,                     // Transaction ID. Required.
723
			'Saholic',   // Affiliation or store name.
723
		// 	'Saholic',   // Affiliation or store name.
724
			amount,               // Grand Total.
724
		// 	amount,               // Grand Total.
725
			'0',                  // Shipping.
725
		// 	'0',                  // Shipping.
726
			'0',                     // Tax.
726
		// 	'0',                     // Tax.
727
			"",
727
		// 	"",
728
			"",
728
		// 	"",
729
			"India"
729
		// 	"India"
730
		]);
730
		// ]);
731
		_gaq.push(['_addItem',
731
		// _gaq.push(['_addItem',
732
			orderId,                     // Transaction ID. Required.			
732
		// 	orderId,                     // Transaction ID. Required.			
733
			deviceNumber,                 // SKU/code.
733
		// 	deviceNumber,                 // SKU/code.
734
			orderConfirmation['response'].rechargeProvider,    // Product name. Required.
734
		// 	orderConfirmation['response'].rechargeProvider,    // Product name. Required.
735
			'Digital',         // Category or variation.
735
		// 	'Digital',         // Category or variation.
736
			amount,                 // Unit price.
736
		// 	amount,                 // Unit price.
737
			'1'                   // Quantity.
737
		// 	'1'                   // Quantity.
738
		]);
738
		// ]);
739
		 _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
739
		//  _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
740
 	}
740
 	// }
741
 }
741
 }