Subversion Repositories SmartDukaan

Rev

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

Rev 11920 Rev 11927
Line 3... Line 3...
3
$totalDiscount = 0;
3
$totalDiscount = 0;
4
$quantity = count($orderconfirmation_process->result->orders);
4
$quantity = count($orderconfirmation_process->result->orders);
5
$storeName = $orderconfirmation_process->result->storeName;
5
$storeName = $orderconfirmation_process->result->storeName;
6
?>
6
?>
7
<div class="order-conf">
7
<div class="order-conf">
8
  <p>Congratulation!</p>
8
  <p>Congratulations!</p>
9
  <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>
10
  <?php foreach($orderconfirmation_process->result->orders as $order){
10
  <?php foreach($orderconfirmation_process->result->orders as $order){
11
    $itemCost = str_replace(',', '', $order->totalAmount);
11
    $itemCost = str_replace(',', '', $order->totalAmount);
12
    $itemCost = number_format((float)$itemCost,2,'.','');
12
    $itemCost = number_format((float)$itemCost,2,'.','');
13
    if(isset($order->gvAmount)) {
13
    if(isset($order->gvAmount)) {
Line 51... Line 51...
51
      <span><?php echo $order->status;?></span>
51
      <span><?php echo $order->status;?></span>
52
    </div>
52
    </div>
53
  </div><!--ordered-item-->
53
  </div><!--ordered-item-->
54
  <?php }?>
54
  <?php }?>
55
  <?php if($totalDiscount>0):?>
55
  <?php if($totalDiscount>0):?>
56
  <div class="gd-total clearfix">
56
  <div class="gd-total clearfix gd-discount">
57
    <div>Discount</div>
57
    <div>Discount</div>
58
    <div>Rs. <?php echo $totalDiscount;?></div>
58
    <div>Rs. <?php echo $totalDiscount;?></div>
59
  </div>
59
  </div>
60
  <?php endif;?>
60
  <?php endif;?>
61
  <div class="gd-total clearfix">
61
  <div class="gd-total clearfix">
62
    <div>Total Amount</div>
62
    <div>Total Amount</div>
63
    <div>Rs. <?php echo $total;?></div>
63
    <div>Rs. <?php echo $total-$totalDiscount;?></div>
64
  </div>
64
  </div>
65
<?php if($orderconfirmation_process->result->isCod):?>
65
<?php if($orderconfirmation_process->result->isCod):?>
66
<h2>An executive will call you soon to confirm the order</h2>
66
<h2>An executive will call you soon to confirm the order</h2>
67
<?php endif;?>
67
<?php endif;?>
68
</div>
68
</div>