Rev 18446 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<div class="row card"><div class="col-xs-4 pull-left orderimage"><?php //debug($suborder);?><?php if(!empty($suborder['imgUrl'])):?><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode ($suborder['imgUrl']);?>&h=80" alt="<?php echo $suborder['productTitle'];?>"/><?php else:?><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'];?>"/><?php endif;?><div class="clearfix"></div><?php if(!empty($suborder['storeId'])):?><img src="<?php echo $activestores[$storemapping[$suborder['storeId']]]['logo'];?>" alt="<?php echo ucfirst($storemapping[$suborder['storeId']]);?>"/><?php endif;?><div class="clearfix"></div><span class="rupee"></span><span class="product_price"><?php echo $suborder['amountPaid'];?></span><?php if(isset($suborder['quantity']) && $suborder['quantity'] > 1):?>(<?php echo "Qty : ",$suborder['quantity'];?>)<?php endif;?></div><div class="col-xs-8 productdetails"><h5 class="producttitle"><?php echo $suborder['productTitle'];?></h5><div class="row orderdetails"><div class="col-xs-4">Order Id</div><div class="col-xs-8"><?php echo formatOrderDate($suborder['placedOn'],$suborder['storeId']);?></div><div class="col-xs-12 orderid"><?php if(!empty($suborder['merchantOrderId'])):?><span><?php echo $suborder['merchantOrderId'];?></span><?php endif;?></div></div><?php if($suborder['cashBackStatus']!='Not Applicable'):?><div class="row orderdetails"><div class="col-xs-7 cashback">Cashback : <span class="rupee"></span><span class="product_price"><?php echo $suborder['cashBackAmount'];?></span></div><div class="col-xs-5">(<?php echo $suborder['cashBackStatus'];?>)</div></div><?php endif;?><?php if($suborder['status']=='Order Placed'):?><?php if(!empty($suborder['estimatedDeliveryDate']) && $suborder['estimatedDeliveryDate']!="Not available"):?><div class="row orderdetails"><div class="col-xs-7">Delivery by</div><div class="col-xs-5"><?php echo formatOrderDate($suborder['estimatedDeliveryDate'],$suborder['storeId'],'edd');?></div></div><?php elseif(!empty($suborder['estimatedShippingDate'])):?><div class="row orderdetails"><div class="col-xs-7">Shipping by</div><div class="col-xs-5"><?php echo formatOrderDate($suborder['estimatedShippingDate'],$suborder['storeId'],'edd');?></div></div><?php endif;?><?php elseif($suborder['status']=='Shipped'):?><?php if(!empty($suborder['estimatedDeliveryDate']) && $suborder['estimatedDeliveryDate']!="Not available"):?><div class="row orderdetails"><div class="col-xs-7">Delivery by</div><div class="col-xs-5"><?php echo formatOrderDate($suborder['estimatedDeliveryDate'],$suborder['storeId'],'edd');?></div></div><?php endif;?><?php endif;?><div class="row"><div class="col-xs-12 ordercontrols"><?php if(!empty($suborder['detailedStatus'])):?><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><?php endif;?></div><div class="col-xs-12 ordercontrols"><?php if($suborder['storeId']==1 && !$suborder['closed'] && ($suborder['status']=='Order Placed' || !empty($suborder['login'])) && isset($suborder['trackAfter']) && $suborder['trackAfter'] < time()):?><?php if($suborder['cashBackStatus']!='Not Applicable'):?><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><?php else:?><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><?php endif;?><?php elseif($suborder['status']!='Cancelled' && $suborder['status']!='Delivered' && !empty($suborder['trackingUrl']) && $suborder['storeId']!=3):?><a rel = 'noreferrer' href="<?php echo ($suborder['trackingUrl']);?>"><button class="btn btn-xs trackingurl" type="button">Track My Order</button></a><?php elseif($suborder['storeId']==4 &&!empty($suborder['orderDetailUrl'])):?><a rel = 'noreferrer' href="/orders/orderdetail?order_id=<?php echo $suborder['merchantSubOrderId'];?>"><button class="btn btn-xs trackingurl" type="button">Order Details</button></a><?php elseif($suborder['status']!='Cancelled' && !empty($suborder['orderSuccessUrl'])):?><a rel = 'noreferrer' href="<?php echo ($suborder['orderSuccessUrl']);?>"><button class="btn btn-xs trackingurl" type="button">Order Details</button></a><?php endif;?></div></div></div></div>