| Line 1... |
Line 1... |
| 1 |
<?php $orderconfirmation_process = $orderconfirmation_process[0];
|
1 |
<?php $orderconfirmation_process = $orderconfirmation_process[0];
|
| 2 |
//print_r($orderconfirmation_process);
|
- |
|
| 3 |
$total = 0;
|
2 |
$total = 0;
|
| 4 |
$quantity = count($orderconfirmation_process->result->orders);?>
|
3 |
$quantity = count($orderconfirmation_process->result->orders);
|
| - |
|
4 |
$storeName = $orderconfirmation_process->result->storeName;
|
| - |
|
5 |
?>
|
| 5 |
<div class="order-conf">
|
6 |
<div class="order-conf">
|
| 6 |
<p>Congratulation!</p>
|
7 |
<p>Congratulation!</p>
|
| 7 |
<p>You have successfully ordered <br/><span><?php echo $quantity;?> item</span></p>
|
8 |
<p>You have successfully ordered <br/><span><?php echo $quantity;?> item</span></p>
|
| 8 |
<?php foreach($orderconfirmation_process->result->orders as $order){
|
9 |
<?php foreach($orderconfirmation_process->result->orders as $order){
|
| 9 |
$itemCost = str_replace(',', '', $order->totalAmount);
|
10 |
$itemCost = str_replace(',', '', $order->totalAmount);
|
| Line 45... |
Line 46... |
| 45 |
</div>
|
46 |
</div>
|
| 46 |
</div><!--ordered-item-->
|
47 |
</div><!--ordered-item-->
|
| 47 |
<?php }?>
|
48 |
<?php }?>
|
| 48 |
<div class="gd-total clearfix">
|
49 |
<div class="gd-total clearfix">
|
| 49 |
<div>Total Amount</div>
|
50 |
<div>Total Amount</div>
|
| 50 |
<div>RS <?php echo $total;?></div>
|
51 |
<div>Rs. <?php echo $total;?></div>
|
| 51 |
</div>
|
52 |
</div>
|
| - |
|
53 |
<?php if($orderconfirmation_process->result->isCod):?>
|
| - |
|
54 |
<h2>An executive will call you soon to confirm the order</h2>
|
| - |
|
55 |
<?php endif;?>
|
| 52 |
</div>
|
56 |
</div>
|
| 53 |
<script type="text/javascript">
|
57 |
<script type="text/javascript">
|
| 54 |
<?php if(isset($orderconfirmation_process) && !empty($orderconfirmation_process)){?>
|
58 |
<?php if(isset($orderconfirmation_process) && !empty($orderconfirmation_process)){?>
|
| 55 |
var orderConfirmation = <?php echo json_encode($orderconfirmation_process);?>;
|
59 |
var orderConfirmation = <?php echo json_encode($orderconfirmation_process);?>;
|
| 56 |
<?php }?>
|
60 |
<?php }?>
|
| 57 |
var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
61 |
var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
| 58 |
if(document.getElementsByClassName('order-conf')[0] != undefined){
|
62 |
if(document.getElementsByClassName('order-conf')[0] != undefined){
|
| 59 |
document.getElementsByClassName('order-conf')[0].style.minHeight = pheight - 153 +'px';
|
63 |
document.getElementsByClassName('order-conf')[0].style.minHeight = pheight - 153 +'px';
|
| 60 |
}
|
64 |
}
|
| 61 |
</script>
|
- |
|
| 62 |
|
65 |
var storeName = '<?php echo $storeName;?>';
|
| - |
|
66 |
</script>
|
| - |
|
67 |
|