| 11024 |
lgm |
1 |
<?php $orderConfirmation = $recharge_orderconfirmation[0];?>
|
| 10582 |
lgm |
2 |
<div class="r-hldr">
|
|
|
3 |
<div class="r-head">Recharge Details</div>
|
|
|
4 |
<div class="r-cont clearfix">
|
|
|
5 |
<div>Order Id</div>
|
|
|
6 |
<div><?php echo $recharge_orderconfirmation[0]->response->rechargeDisplayId; ?></div>
|
|
|
7 |
</div>
|
|
|
8 |
<div class="r-cont clearfix">
|
|
|
9 |
<div>Status</div>
|
|
|
10 |
<div><?php echo $recharge_orderconfirmation[0]->response->rechargeStatus; ?></div>
|
|
|
11 |
</div>
|
|
|
12 |
<div class="r-info">
|
|
|
13 |
<div class="r-info-head clearfix">
|
| 10939 |
lgm |
14 |
<?php if(strpos($recharge_orderconfirmation[0]->response->rechargeDisplayId, 'DTH') !== false){?>
|
|
|
15 |
<div>Account Number</div>
|
|
|
16 |
<?php } else{?>
|
|
|
17 |
<div>Mobile Number</div><?php } ?>
|
| 10582 |
lgm |
18 |
<div>Operator</div>
|
|
|
19 |
<div>Amount</div>
|
|
|
20 |
</div>
|
|
|
21 |
<div class="r-info-body clearfix">
|
|
|
22 |
<div><?php echo $recharge_orderconfirmation[0]->response->rechargeDeviceNumber ?></div>
|
|
|
23 |
<div><?php echo $recharge_orderconfirmation[0]->response->rechargeProvider ?></div>
|
|
|
24 |
<div><?php echo $recharge_orderconfirmation[0]->response->totalAmount ?></div>
|
|
|
25 |
</div>
|
|
|
26 |
</div><!--o-info-->
|
|
|
27 |
|
|
|
28 |
</div><!--o-hldr-->
|
|
|
29 |
<script type="text/javascript">
|
| 12084 |
lgm |
30 |
var orderConfirmation = <?php echo json_encode($orderConfirmation);?>;
|
|
|
31 |
if(orderConfirmation != undefined){
|
|
|
32 |
var amount = parseFloat(orderConfirmation['response'].totalAmount).toFixed(2);
|
|
|
33 |
var orderId = orderConfirmation['response'].rechargeDisplayId;
|
|
|
34 |
var deviceNumber = orderConfirmation['response'].rechargeDeviceNumber;
|
|
|
35 |
_gaq.push(['_addTrans',
|
|
|
36 |
orderId, // Transaction ID. Required.
|
|
|
37 |
'Saholic', // Affiliation or store name.
|
|
|
38 |
amount, // Grand Total.
|
|
|
39 |
'0', // Shipping.
|
|
|
40 |
'0', // Tax.
|
|
|
41 |
"",
|
|
|
42 |
"",
|
|
|
43 |
"India"
|
|
|
44 |
]);
|
|
|
45 |
_gaq.push(['_addItem',
|
|
|
46 |
orderId, // Transaction ID. Required.
|
|
|
47 |
deviceNumber, // SKU/code.
|
|
|
48 |
orderConfirmation['response'].rechargeProvider, // Product name. Required.
|
|
|
49 |
'Digital', // Category or variation.
|
|
|
50 |
amount, // Unit price.
|
|
|
51 |
'1' // Quantity.
|
|
|
52 |
]);
|
|
|
53 |
_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
|
|
|
54 |
}
|
|
|
55 |
var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
|
|
56 |
var value = localStorage.getItem('rechargeValue');
|
| 10582 |
lgm |
57 |
if(parseInt(value) == 1){
|
| 11024 |
lgm |
58 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
|
|
59 |
_gaq.push(['_trackEvent', 'Recharge', 'Recharge Result','Mobile-Result']);
|
|
|
60 |
}
|
| 10582 |
lgm |
61 |
}else if(parseInt(value) == 2){
|
| 11024 |
lgm |
62 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
|
|
63 |
_gaq.push(['_trackEvent', 'Recharge', 'Recharge Result','Recharge-Result']);
|
|
|
64 |
}
|
| 10582 |
lgm |
65 |
}
|
| 11342 |
lgm |
66 |
// if(document.getElementsByClassName('order-conf')[0] != undefined){
|
|
|
67 |
// document.getElementsByClassName('order-conf')[0].style.minHeight = pheight - 153 +'px';
|
|
|
68 |
// }
|
| 10582 |
lgm |
69 |
</script>
|
|
|
70 |
|