Subversion Repositories SmartDukaan

Rev

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

<?php $orderconfirmation_process = $orderconfirmation_process[0];
//print_r($orderconfirmation_process);
$total = 0;
$quantity = count($orderconfirmation_process->result->orders);?>
<div class="order-conf">
  <p>Congratulation!</p>
  <p>You have successfully ordered <br/><span><?php echo $quantity;?> item</span></p>
  <?php foreach($orderconfirmation_process->result->orders as $order){
    $itemCost = str_replace(',', '', $order->totalAmount);
    $itemCost = number_format((float)$itemCost,2,'.','');
    $total = $total + $itemCost;?>
  <div class="ordered-item">
    <div>Order Id: <span><?php echo $order->orderId;?></span></div>
    <div class="ordered-item-head clearfix">
      <div>Item Name</div>
      <div>Insurance</div>
      <div>Unit Price</div>
    </div><!--ordered-item-head-->
    <div class="ordered-item-body clearfix">
      <div>
        <p><?php echo $order->itemName;?></p>
        <?php if(isset($order->color)){?>
        <span>Color -<?php echo $order->color;?></span>
        <?php }?>
      </div>
      <div>
        Rs <?php echo $order->insuranceAmount;?>
      </div>
      <div>
        <p>Rs <?php echo $order->totalAmount;?></p>
        <span>(for 1 pcs)</span>
      </div>
    </div><!--ordered-item-body-->
    <div class="tt-price">
      <span>Total Price</span>
      <span>Rs <?php echo $order->totalAmount;?></span>
    </div>
    <div class="ddate-div">
      <span>Estimated Delivery Date:</span>
      <span><?php echo $order->promisedDelivery;?></span>
    </div><!--ddate-div-->
    <div class="or-status">
      <span>Order Status:</span>
      <span><?php echo $order->status;?></span>
    </div>
  </div><!--ordered-item-->
  <?php }?>
  <div class="gd-total clearfix">
    <div>Total Amount</div>
    <div>RS <?php echo $total;?></div>
  </div>
</div>
<script type="text/javascript">
<?php if(isset($orderconfirmation_process) && !empty($orderconfirmation_process)){?>
var orderConfirmation = <?php echo json_encode($orderconfirmation_process);?>
<?php }?>
</script>