Thank you for your order! Your order or part of your order has shipped. Please see below for the waybill numbers.
#set ( $customer = $order.customer )
#set ( $orderid = $order.getId() )
#set ( $shippingAddress = $order.getShippingAddress() )
#set ( $billingAddress = $order.getBillingAddress() )
#set ( $searcherManager = $store.getSearcherManager() )
#set ( $orderNumber = $order.orderNumber )
#set ( $shipments = $order.getShipments() )
#set ( $isFullyShipped = $order.isFullyShipped() )
#set ( $sSize = $shipments.size() )
#set ( $url = "$content.siteroot/ecommerce/views/myaccount/storeorders/view/index.html?id=$orderid")
Order Shipping History
#if ( $sSize > 0)
Order Status:
#if ($isFullyShipped == "false")
Partially Shipped
#else
Shipped
#end
Shipment Details per Product.
#else
No shipments for this order
#end
#if ( $sSize > 0)
| Product ID |
Quantity Ordered |
Waybill |
Quantity Shipped |
#set($itemCounter = 0)
#foreach ( $item in $order.getItems() )
#set( $itemCounter = $itemCounter + 1 )
#set( $productid = $item.getProduct().getId())
#set( $product = $store.getProductSearcher().searchById($productid) )
| $product.getName() |
$item.quantity |
#foreach ( $shipment in $shipments )
#if ( $shipment.containsEntryForSku($product.get("manufacturersku")) )
#set( $entry = $shipment.getEntryForSku($product.get("manufacturersku")) )
#set( $waybill = $shipment.get("waybill") )
| |
$waybill |
$entry.getQuantity() |
#end
#set( $waybill = "" )
#end
#end
#foreach ( $shipmentEntry in $shipments )
#set( $shipCounter = $shipCounter + 1 )
#end
Shipment Details per Waybill.
| Courier |
Waybill Number |
Ship Date |
Product ID |
Quantity Shipped |
#set( $types = $searcherManager.getList($catalogid ,"itemstatus") )
#set( $shipCounter = 0)
#foreach ( $shipment in $shipments )
#set( $shipCounter = $shipCounter + 1 )
#set( $courier = $shipment.get("courier") )
#set( $waybill = $shipment.get("waybill") )
#set( $shipdate = $shipment.get("shipdate") )
| $!courier |
$waybill |
$shipdate |
|
#foreach ( $item in $order.getItems() )
#set( $productid = $item.getProduct().getId())
#set( $product = $store.getProductSearcher().searchById($productid) )
#if ( $shipment.containsEntryForSku($product.get("manufacturersku")) )
#set( $entry = $shipment.getEntryForSku($product.get("manufacturersku")) )
| |
$product.getName() |
$entry.getQuantity() |
#end
#end
#set( $waybill = "" )
#set( $courier = "" )
#end
#end