Subversion Repositories SmartDukaan

Rev

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

Rev 17492 Rev 17495
Line 16... Line 16...
16
    if(isset($order->gvAmount)) {
16
    if(isset($order->gvAmount)) {
17
	    $discount = str_replace(',', '', $order->gvAmount);
17
	    $discount = str_replace(',', '', $order->gvAmount);
18
	    $discount = number_format((float)$discount,2,'.','');
18
	    $discount = number_format((float)$discount,2,'.','');
19
	    $totalDiscount += $discount;
19
	    $totalDiscount += $discount;
20
    }
20
    }
21
    $total = $total + $itemCost;
21
    $total = $total + $itemCost + $shippingCost;
22
    $totalShippingCost = $totalShippingCost + $shippingCost;?>
22
    $totalShippingCost = $totalShippingCost + $shippingCost;?>
23
  <div class="ordered-item">
23
  <div class="ordered-item">
24
    <div>Order Id: <span><?php echo $order->orderId;?></span></div>
24
    <div>Order Id: <span><?php echo $order->orderId;?></span></div>
25
    <div class="ordered-item-head clearfix">
25
    <div class="ordered-item-head clearfix">
26
      <div>Item Name</div>
26
      <div>Item Name</div>
Line 30... Line 30...
30
    <div class="ordered-item-body clearfix">
30
    <div class="ordered-item-body clearfix">
31
      <div>
31
      <div>
32
        <p><?php echo $order->itemName;?></p>
32
        <p><?php echo $order->itemName;?></p>
33
        <?php if(isset($order->color)){?>
33
        <?php if(isset($order->color)){?>
34
        <span>Color -<?php echo $order->color;?></span>
34
        <span>Color -<?php echo $order->color;?></span>
35
        <span>Quantity -<?php echo $order->quantity;?></span>
-
 
36
        <?php }?>
35
        <?php }?>
-
 
36
        <span>Quantity -<?php echo $order->quantity;?></span>
37
      </div>
37
      </div>
38
      <div>
38
      <div>
39
        Rs <?php echo $order->insuranceAmount;?>
39
        Rs <?php echo $order->insuranceAmount;?>
40
      </div>
40
      </div>
41
      <div>
41
      <div>
42
        <p>Rs <?php echo $order->unitPrice;?></p>
42
        <p>Rs <?php echo $order->unitPrice;?></p>
43
        <span>(for 1 pcs)</span>
-
 
44
      </div>
43
      </div>
45
    </div><!--ordered-item-body-->
44
    </div><!--ordered-item-body-->
46
    <div class="tt-price">
45
    <div class="tt-price">
47
      <span>Total Price</span>
46
      <span>Total Price</span>
48
      <span>Rs <?php echo $order->totalAmount;?></span>
47
      <span>Rs <?php echo $order->totalAmount;?></span>
Line 66... Line 65...
66
  <?php if($totalShippingCost>0):?>
65
  <?php if($totalShippingCost>0):?>
67
  <div class="gd-total clearfix">
66
  <div class="gd-total clearfix">
68
    <div>Shipping</div>
67
    <div>Shipping</div>
69
    <div>Rs. <?php echo $totalShippingCost;?></div>
68
    <div>Rs. <?php echo $totalShippingCost;?></div>
70
  </div>
69
  </div>
-
 
70
  <?php else :?>
-
 
71
  <div class="gd-total clearfix">
-
 
72
    <div>Shipping</div>
-
 
73
    <div><span>Free</span></div>
-
 
74
  </div>
71
  <?php endif;?>
75
  <?php endif;?>
72
  <div class="gd-total clearfix">
76
  <div class="gd-total clearfix">
73
    <div>Total Amount</div>
77
    <div>Total Amount</div>
74
    <div>Rs. <?php echo $total-$totalDiscount;?></div>
78
    <div>Rs. <?php echo $total-$totalDiscount;?></div>
75
  </div>
79
  </div>