| 13993 |
anikendra |
1 |
<div class="row card">
|
|
|
2 |
<div class="col-xs-4 pull-left orderimage">
|
| 14345 |
anikendra |
3 |
<?php //debug($suborder);?>
|
| 13993 |
anikendra |
4 |
<?php if(!empty($suborder['imgUrl'])):?>
|
| 17760 |
amit.gupta |
5 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode ($suborder['imgUrl']);?>&h=80" alt="<?php echo $suborder['productTitle'];?>"/>
|
| 13993 |
anikendra |
6 |
<?php else:?>
|
|
|
7 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $base_url;?>img/noimage.png&h=80" alt="<?php echo $suborder['productTitle'];?>"/>
|
|
|
8 |
<?php endif;?>
|
|
|
9 |
<div class="clearfix"></div>
|
| 14026 |
anikendra |
10 |
<?php if(!empty($suborder['storeId'])):?>
|
|
|
11 |
<img src="<?php echo $activestores[$storemapping[$suborder['storeId']]]['logo'];?>" alt="<?php echo ucfirst($storemapping[$suborder['storeId']]);?>"/>
|
| 13993 |
anikendra |
12 |
<?php endif;?>
|
|
|
13 |
<div class="clearfix"></div>
|
|
|
14 |
<span class="rupee"></span><span class="product_price"><?php echo $suborder['amountPaid'];?></span>
|
| 18143 |
naman |
15 |
<?php if(isset($suborder['quantity']) && $suborder['quantity'] > 1):?>
|
|
|
16 |
(<?php echo "Qty : ",$suborder['quantity'];?>)
|
|
|
17 |
<?php endif;?>
|
| 13993 |
anikendra |
18 |
</div>
|
|
|
19 |
<div class="col-xs-8 productdetails">
|
|
|
20 |
<h5 class="producttitle"><?php echo $suborder['productTitle'];?></h5>
|
|
|
21 |
<div class="row orderdetails">
|
| 14318 |
anikendra |
22 |
<div class="col-xs-4">
|
| 14163 |
anikendra |
23 |
Order Id
|
|
|
24 |
</div>
|
| 14318 |
anikendra |
25 |
<div class="col-xs-8">
|
| 14163 |
anikendra |
26 |
<?php echo formatOrderDate($suborder['placedOn'],$suborder['storeId']);?>
|
|
|
27 |
</div>
|
|
|
28 |
<div class="col-xs-12 orderid">
|
| 14026 |
anikendra |
29 |
<?php if(!empty($suborder['merchantOrderId'])):?>
|
|
|
30 |
<span><?php echo $suborder['merchantOrderId'];?></span>
|
| 13993 |
anikendra |
31 |
<?php endif;?>
|
| 14163 |
anikendra |
32 |
</div>
|
| 13993 |
anikendra |
33 |
</div>
|
|
|
34 |
<?php if($suborder['cashBackStatus']!='Not Applicable'):?>
|
|
|
35 |
<div class="row orderdetails">
|
| 14318 |
anikendra |
36 |
<div class="col-xs-7 cashback">Cashback : <span class="rupee"></span><span class="product_price"><?php echo $suborder['cashBackAmount'];?></span>
|
| 13993 |
anikendra |
37 |
</div>
|
| 14318 |
anikendra |
38 |
<div class="col-xs-5">(<?php echo $suborder['cashBackStatus'];?>)</div>
|
| 13993 |
anikendra |
39 |
</div>
|
|
|
40 |
<?php endif;?>
|
| 14887 |
amit.gupta |
41 |
<?php if($suborder['status']=='Order Placed'):?>
|
| 17187 |
amit.gupta |
42 |
<?php if(!empty($suborder['estimatedDeliveryDate']) && $suborder['estimatedDeliveryDate']!="Not available"):?>
|
| 14111 |
anikendra |
43 |
<div class="row orderdetails">
|
| 14788 |
anikendra |
44 |
<div class="col-xs-7">Delivery by</div>
|
|
|
45 |
<div class="col-xs-5"><?php echo formatOrderDate($suborder['estimatedDeliveryDate'],$suborder['storeId'],'edd');?></div>
|
|
|
46 |
</div>
|
|
|
47 |
<?php elseif(!empty($suborder['estimatedShippingDate'])):?>
|
|
|
48 |
<div class="row orderdetails">
|
| 14357 |
anikendra |
49 |
<div class="col-xs-7">Shipping by</div>
|
| 14345 |
anikendra |
50 |
<div class="col-xs-5"><?php echo formatOrderDate($suborder['estimatedShippingDate'],$suborder['storeId'],'edd');?></div>
|
| 14788 |
anikendra |
51 |
</div>
|
|
|
52 |
<?php endif;?>
|
| 14887 |
amit.gupta |
53 |
<?php elseif($suborder['status']=='Shipped'):?>
|
| 17187 |
amit.gupta |
54 |
<?php if(!empty($suborder['estimatedDeliveryDate']) && $suborder['estimatedDeliveryDate']!="Not available"):?>
|
| 14887 |
amit.gupta |
55 |
<div class="row orderdetails">
|
|
|
56 |
<div class="col-xs-7">Delivery by</div>
|
|
|
57 |
<div class="col-xs-5"><?php echo formatOrderDate($suborder['estimatedDeliveryDate'],$suborder['storeId'],'edd');?></div>
|
|
|
58 |
</div>
|
| 14889 |
amit.gupta |
59 |
<?php endif;?>
|
| 14111 |
anikendra |
60 |
<?php endif;?>
|
| 13993 |
anikendra |
61 |
<div class="row">
|
| 14111 |
anikendra |
62 |
<div class="col-xs-12 ordercontrols">
|
| 14026 |
anikendra |
63 |
<?php if(!empty($suborder['detailedStatus'])):?>
|
| 14286 |
anikendra |
64 |
<span class="label label-info <?php if(strlen($suborder['detailedStatus'])>50):?>hasmoretext<?php endif;?>" data-fulltext="<?php echo $suborder['detailedStatus'];?>"><?php echo $this->Text->truncate($suborder['detailedStatus'],50);?></span>
|
| 13993 |
anikendra |
65 |
<?php endif;?>
|
|
|
66 |
</div>
|
| 14710 |
anikendra |
67 |
<div class="col-xs-12 ordercontrols">
|
| 18766 |
amit.gupta |
68 |
<?php if($suborder['storeId']==1 && !$suborder['closed'] && ($suborder['status']=='Order Placed' || !empty($suborder['login'])) && isset($suborder['trackAfter']) && $suborder['trackAfter'] < time()):?>
|
| 14710 |
anikendra |
69 |
<?php if($suborder['cashBackStatus']!='Not Applicable'):?>
|
| 15865 |
anikendra |
70 |
<a rel = 'noreferrer' href="<?php echo ($suborder['orderSuccessUrl']);?>"><button class="btn btn-xs btn-warning" style="text-align:left;" type="button">To claim cashback click here <br/>to update your order status</button></a>
|
| 14710 |
anikendra |
71 |
<?php else:?>
|
| 15865 |
anikendra |
72 |
<a rel = 'noreferrer' href="<?php echo ($suborder['orderSuccessUrl']);?>"><button class="btn btn-xs btn-warning text-left" style="text-align:left;" type="button">Please click here <br>to update your order status</button></a>
|
| 14710 |
anikendra |
73 |
<?php endif;?>
|
| 14888 |
amit.gupta |
74 |
<?php elseif($suborder['status']!='Cancelled' && $suborder['status']!='Delivered' && !empty($suborder['trackingUrl']) && $suborder['storeId']!=3):?>
|
| 15865 |
anikendra |
75 |
<a rel = 'noreferrer' href="<?php echo ($suborder['trackingUrl']);?>"><button class="btn btn-xs trackingurl" type="button">Track My Order</button></a>
|
| 14345 |
anikendra |
76 |
<?php elseif($suborder['storeId']==4 &&!empty($suborder['orderDetailUrl'])):?>
|
| 18446 |
manish.sha |
77 |
<a rel = 'noreferrer' href="/orders/orderdetail?order_id=<?php echo $suborder['merchantSubOrderId'];?>"><button class="btn btn-xs trackingurl" type="button">Order Details</button></a>
|
| 14700 |
anikendra |
78 |
<?php elseif($suborder['status']!='Cancelled' && !empty($suborder['orderSuccessUrl'])):?>
|
| 15865 |
anikendra |
79 |
<a rel = 'noreferrer' href="<?php echo ($suborder['orderSuccessUrl']);?>"><button class="btn btn-xs trackingurl" type="button">Order Details</button></a>
|
| 14111 |
anikendra |
80 |
<?php endif;?>
|
| 13993 |
anikendra |
81 |
</div>
|
|
|
82 |
</div>
|
|
|
83 |
</div>
|
| 15865 |
anikendra |
84 |
</div>
|