Subversion Repositories SmartDukaan

Rev

Rev 11332 | Rev 11920 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10582 lgm 1
<?php $orderconfirmation_process = $orderconfirmation_process[0];
2
$total = 0;
11913 anikendra 3
$quantity = count($orderconfirmation_process->result->orders);
4
$storeName = $orderconfirmation_process->result->storeName;
5
?>
10582 lgm 6
<div class="order-conf">
7
  <p>Congratulation!</p>
8
  <p>You have successfully ordered <br/><span><?php echo $quantity;?> item</span></p>
9
  <?php foreach($orderconfirmation_process->result->orders as $order){
10
    $itemCost = str_replace(',', '', $order->totalAmount);
11
    $itemCost = number_format((float)$itemCost,2,'.','');
12
    $total = $total + $itemCost;?>
13
  <div class="ordered-item">
14
    <div>Order Id: <span><?php echo $order->orderId;?></span></div>
15
    <div class="ordered-item-head clearfix">
16
      <div>Item Name</div>
17
      <div>Insurance</div>
18
      <div>Unit Price</div>
19
    </div><!--ordered-item-head-->
20
    <div class="ordered-item-body clearfix">
21
      <div>
22
        <p><?php echo $order->itemName;?></p>
23
        <?php if(isset($order->color)){?>
24
        <span>Color -<?php echo $order->color;?></span>
25
        <?php }?>
26
      </div>
27
      <div>
28
        Rs <?php echo $order->insuranceAmount;?>
29
      </div>
30
      <div>
31
        <p>Rs <?php echo $order->totalAmount;?></p>
32
        <span>(for 1 pcs)</span>
33
      </div>
34
    </div><!--ordered-item-body-->
35
    <div class="tt-price">
36
      <span>Total Price</span>
37
      <span>Rs <?php echo $order->totalAmount;?></span>
38
    </div>
39
    <div class="ddate-div">
40
      <span>Estimated Delivery Date:</span>
41
      <span><?php echo $order->promisedDelivery;?></span>
42
    </div><!--ddate-div-->
43
    <div class="or-status">
44
      <span>Order Status:</span>
45
      <span><?php echo $order->status;?></span>
46
    </div>
47
  </div><!--ordered-item-->
48
  <?php }?>
49
  <div class="gd-total clearfix">
50
    <div>Total Amount</div>
11913 anikendra 51
    <div>Rs. <?php echo $total;?></div>
10582 lgm 52
  </div>
11913 anikendra 53
<?php if($orderconfirmation_process->result->isCod):?>
54
<h2>An executive will call you soon to confirm the order</h2>
55
<?php endif;?>
10697 lgm 56
</div>
57
<script type="text/javascript">
58
<?php if(isset($orderconfirmation_process) && !empty($orderconfirmation_process)){?>
11332 lgm 59
var orderConfirmation = <?php echo json_encode($orderconfirmation_process);?>;
10697 lgm 60
<?php }?>
11332 lgm 61
var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
62
if(document.getElementsByClassName('order-conf')[0] != undefined){
63
    document.getElementsByClassName('order-conf')[0].style.minHeight = pheight - 153 +'px';  
64
}
11913 anikendra 65
var storeName = '<?php echo $storeName;?>';
66
</script>