| 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 |
$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 |
$totalShippingCost = 0;
|
| 6 |
?>
|
7 |
?>
|
| 7 |
<div class="order-conf">
|
8 |
<div class="order-conf">
|
| 8 |
<p>Congratulations!</p>
|
9 |
<p>Congratulations!</p>
|
| 9 |
<p>You have successfully ordered <br/><span><?php echo $quantity;?> item</span></p>
|
10 |
<p>You have successfully ordered <br/><span><?php echo $quantity;?> item</span></p>
|
| 10 |
<?php foreach($orderconfirmation_process->result->orders as $order){
|
11 |
<?php foreach($orderconfirmation_process->result->orders as $order){
|
| 11 |
$itemCost = str_replace(',', '', $order->totalAmount);
|
12 |
$itemCost = str_replace(',', '', $order->totalAmount);
|
| 12 |
$itemCost = number_format((float)$itemCost,2,'.','');
|
13 |
$itemCost = number_format((float)$itemCost,2,'.','');
|
| - |
|
14 |
$shippingCost = str_replace(',', '', $order->shippingCost);
|
| - |
|
15 |
$shippingCost = number_format((float)$shippingCost,2,'.','');
|
| 13 |
if(isset($order->gvAmount)) {
|
16 |
if(isset($order->gvAmount)) {
|
| 14 |
$discount = str_replace(',', '', $order->gvAmount);
|
17 |
$discount = str_replace(',', '', $order->gvAmount);
|
| 15 |
$discount = number_format((float)$discount,2,'.','');
|
18 |
$discount = number_format((float)$discount,2,'.','');
|
| 16 |
$totalDiscount += $discount;
|
19 |
$totalDiscount += $discount;
|
| 17 |
}
|
20 |
}
|
| 18 |
$total = $total + $itemCost;?>
|
21 |
$total = $total + $itemCost;
|
| - |
|
22 |
$totalShippingCost = $totalShippingCost + $shippingCost;?>
|
| 19 |
<div class="ordered-item">
|
23 |
<div class="ordered-item">
|
| 20 |
<div>Order Id: <span><?php echo $order->orderId;?></span></div>
|
24 |
<div>Order Id: <span><?php echo $order->orderId;?></span></div>
|
| 21 |
<div class="ordered-item-head clearfix">
|
25 |
<div class="ordered-item-head clearfix">
|
| 22 |
<div>Item Name</div>
|
26 |
<div>Item Name</div>
|
| 23 |
<div>Insurance</div>
|
27 |
<div>Insurance</div>
|
| Line 56... |
Line 60... |
| 56 |
<div class="gd-total clearfix gd-discount">
|
60 |
<div class="gd-total clearfix gd-discount">
|
| 57 |
<div>Discount</div>
|
61 |
<div>Discount</div>
|
| 58 |
<div>Rs. <?php echo $totalDiscount;?></div>
|
62 |
<div>Rs. <?php echo $totalDiscount;?></div>
|
| 59 |
</div>
|
63 |
</div>
|
| 60 |
<?php endif;?>
|
64 |
<?php endif;?>
|
| - |
|
65 |
<?php if($totalShippingCost>0):?>
|
| - |
|
66 |
<div class="gd-total clearfix">
|
| - |
|
67 |
<div>Shipping</div>
|
| - |
|
68 |
<div>Rs. <?php echo $totalShippingCost;?></div>
|
| - |
|
69 |
</div>
|
| - |
|
70 |
<?php endif;?>
|
| 61 |
<div class="gd-total clearfix">
|
71 |
<div class="gd-total clearfix">
|
| 62 |
<div>Total Amount</div>
|
72 |
<div>Total Amount</div>
|
| 63 |
<div>Rs. <?php echo $total-$totalDiscount;?></div>
|
73 |
<div>Rs. <?php echo $total-$totalDiscount;?></div>
|
| 64 |
</div>
|
74 |
</div>
|
| 65 |
<?php if($orderconfirmation_process->result->isCod):?>
|
75 |
<?php if($orderconfirmation_process->result->isCod):?>
|