Subversion Repositories SmartDukaan

Rev

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

Rev 11913 Rev 11920
Line 1... Line 1...
1
<?php $orderconfirmation_process = $orderconfirmation_process[0];
1
<?php $orderconfirmation_process = $orderconfirmation_process[0];
2
$total = 0;
2
$total = 0;
-
 
3
$totalDiscount = 0;
3
$quantity = count($orderconfirmation_process->result->orders);
4
$quantity = count($orderconfirmation_process->result->orders);
4
$storeName = $orderconfirmation_process->result->storeName;
5
$storeName = $orderconfirmation_process->result->storeName;
5
?>
6
?>
6
<div class="order-conf">
7
<div class="order-conf">
7
  <p>Congratulation!</p>
8
  <p>Congratulation!</p>
8
  <p>You have successfully ordered <br/><span><?php echo $quantity;?> item</span></p>
9
  <p>You have successfully ordered <br/><span><?php echo $quantity;?> item</span></p>
9
  <?php foreach($orderconfirmation_process->result->orders as $order){
10
  <?php foreach($orderconfirmation_process->result->orders as $order){
10
    $itemCost = str_replace(',', '', $order->totalAmount);
11
    $itemCost = str_replace(',', '', $order->totalAmount);
11
    $itemCost = number_format((float)$itemCost,2,'.','');
12
    $itemCost = number_format((float)$itemCost,2,'.','');
-
 
13
    if(isset($order->gvAmount)) {
-
 
14
	    $discount = str_replace(',', '', $order->gvAmount);
-
 
15
	    $discount = number_format((float)$discount,2,'.','');
-
 
16
	    $totalDiscount += $discount;
-
 
17
    }
12
    $total = $total + $itemCost;?>
18
    $total = $total + $itemCost;?>
13
  <div class="ordered-item">
19
  <div class="ordered-item">
14
    <div>Order Id: <span><?php echo $order->orderId;?></span></div>
20
    <div>Order Id: <span><?php echo $order->orderId;?></span></div>
15
    <div class="ordered-item-head clearfix">
21
    <div class="ordered-item-head clearfix">
16
      <div>Item Name</div>
22
      <div>Item Name</div>
Line 44... Line 50...
44
      <span>Order Status:</span>
50
      <span>Order Status:</span>
45
      <span><?php echo $order->status;?></span>
51
      <span><?php echo $order->status;?></span>
46
    </div>
52
    </div>
47
  </div><!--ordered-item-->
53
  </div><!--ordered-item-->
48
  <?php }?>
54
  <?php }?>
-
 
55
  <?php if($totalDiscount>0):?>
-
 
56
  <div class="gd-total clearfix">
-
 
57
    <div>Discount</div>
-
 
58
    <div>Rs. <?php echo $totalDiscount;?></div>
-
 
59
  </div>
-
 
60
  <?php endif;?>
49
  <div class="gd-total clearfix">
61
  <div class="gd-total clearfix">
50
    <div>Total Amount</div>
62
    <div>Total Amount</div>
51
    <div>Rs. <?php echo $total;?></div>
63
    <div>Rs. <?php echo $total;?></div>
52
  </div>
64
  </div>
53
<?php if($orderconfirmation_process->result->isCod):?>
65
<?php if($orderconfirmation_process->result->isCod):?>