Rev 13750 | Rev 13762 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<div class="container"><div class="row"><?php if(!empty($orders)):?><?php //debug($orders);?><?php foreach ($orders as $key => $order):?><?php if(!empty($order['subOrders'])):?><?php foreach ($order['subOrders'] as $key => $suborder):?><?php //print_r($suborder);?><div class="row card"><div class="col-xs-4 pull-left orderimage"><?php if(!empty($suborder['imgUrl'])):?><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $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><div class="col-xs-8 productdetails"><h4><?php echo $suborder['productTitle'];?></h4><?php if(!empty($suborder['estimatedDeliveryDate'])):?><p>Will be delivered by <span class="deliverydate"><?php echo $suborder['estimatedDeliveryDate'];?></span></p><?php endif;?><div class="row orderdetails"><?php foreach($suborder AS $key => $value):?><?php if(empty($value) || in_array($key, $ignoredFields))continue;?><div class="col-xs-6 text-bold"><?php echo $key;?></div><div class="col-xs-6 "><?php echo $value;?></div><?php endforeach;?></div><div class="row"><div class="col-xs-6 ordercontrols"><?php if(!empty($suborder['detailedStatus'])):?><button class="pull-left btn btn-sm orderstatus" type="button"><?php echo $suborder['detailedStatus'];?></button><?php endif;?></div><div class="col-xs-6 pull-right ordercontrols"><?php if(!empty($suborder['tracingkUrl'])):?><a href="<?php echo $suborder['tracingkUrl'];?>"><button class="pull-right btn btn-sm trackingurl" type="button">Track My Order</button></a><?php endif;?></div></div></div></div><?php endforeach;?><?php endif;?><?php endforeach;?><?php else:?><h3>You haven't placed order till now</h3><?php endif;?></div></div>