<#-- shipping address -->
<#assign groupIdx = 0>
<#list orderItemShipGroups as shipGroup>
<#if orderHeader?has_content>
<#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress", false)!>
<#assign groupNumber = shipGroup.shipGroupSeqId!>
<#else>
<#assign shippingAddress = cart.getShippingAddress(groupIdx)!>
<#assign groupNumber = groupIdx + 1>
#if>
<#if shippingAddress?has_content>
-
-
${uiLabelMap.OrderDestination} [${groupNumber}]
<#if shippingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${shippingAddress.toName}#if>
-
<#if shippingAddress.attnName?has_content>
${uiLabelMap.PartyAddrAttnName} : ${shippingAddress.attnName}
#if>
-
${shippingAddress.address1}
-
<#if shippingAddress.address2?has_content>${shippingAddress.address2}#if>
-
<#assign shippingStateGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.stateProvinceGeoId!}, false))! />
${shippingAddress.city}
<#if shippingStateGeo?has_content>, ${shippingStateGeo.geoName!}#if>
${shippingAddress.postalCode!}
-
<#assign shippingCountryGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.countryGeoId!}, false))! />
<#if shippingCountryGeo?has_content>${shippingCountryGeo.geoName!}#if>
#if>
-
-
${uiLabelMap.OrderMethod}:
<#if orderHeader?has_content>
<#assign shipmentMethodType = shipGroup.getRelatedOne("ShipmentMethodType", false)!>
<#assign carrierPartyId = shipGroup.carrierPartyId!>
<#else>
<#assign shipmentMethodType = cart.getShipmentMethodType(groupIdx)!>
<#assign carrierPartyId = cart.getCarrierPartyId(groupIdx)!>
#if>
<#if carrierPartyId?? && carrierPartyId != "_NA_">${carrierPartyId!}#if>
${(shipmentMethodType.description)?default("N/A")}
-
<#if shippingAccount??>${uiLabelMap.AccountingUseAccount}: ${shippingAccount}#if>
<#-- tracking number -->
<#if trackingNumber?has_content || orderShipmentInfoSummaryList?has_content>
-
${uiLabelMap.OrderTrackingNumber}
<#-- TODO: add links to UPS/FEDEX/etc based on carrier partyId -->
<#if shipGroup.trackingNumber?has_content>
${shipGroup.trackingNumber}
#if>
<#if orderShipmentInfoSummaryList?has_content>
<#list orderShipmentInfoSummaryList as orderShipmentInfoSummary>
<#if (orderShipmentInfoSummaryList?size > 1)>${orderShipmentInfoSummary.shipmentPackageSeqId}: #if>
Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")}
<#if orderShipmentInfoSummary.boxNumber?has_content>
${uiLabelMap.OrderBoxNumber}${orderShipmentInfoSummary.boxNumber}
#if>
<#if orderShipmentInfoSummary.carrierPartyId?has_content>
(${uiLabelMap.ProductCarrier}: ${orderShipmentInfoSummary.carrierPartyId})
#if>
#list>
#if>
#if>
<#-- splitting preference -->
<#if orderHeader?has_content>
<#assign maySplit = shipGroup.maySplit?default("N")>
<#else>
<#assign maySplit = cart.getMaySplit(groupIdx)?default("N")>
#if>
-
${uiLabelMap.OrderSplittingPreference}:
<#if "N" == maySplit?default("N")>${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.#if>
<#if "Y" == maySplit?default("N")>${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.#if>
<#-- shipping instructions -->
<#if orderHeader?has_content>
<#assign shippingInstructions = shipGroup.shippingInstructions!>
<#else>
<#assign shippingInstructions = cart.getShippingInstructions(groupIdx)!>
#if>
<#if shippingInstructions?has_content>
-
${uiLabelMap.OrderInstructions} ${shippingInstructions}
#if>
<#-- gift settings -->
<#if orderHeader?has_content>
<#assign isGift = shipGroup.isGift?default("N")>
<#assign giftMessage = shipGroup.giftMessage!>
<#else>
<#assign isGift = cart.getIsGift(groupIdx)?default("N")>
<#assign giftMessage = cart.getGiftMessage(groupIdx)!>
#if>
<#if productStore.showCheckoutGiftOptions! != "N">
-
${uiLabelMap.OrderGift}?
<#if "N" == isGift?default("N")>${uiLabelMap.OrderThisIsNotGift}.#if>
<#if "Y" == isGift?default("N")>${uiLabelMap.OrderThisIsGift}.#if>
<#if giftMessage?has_content>
-
${uiLabelMap.OrderGiftMessage} ${giftMessage}
#if>
#if>
<#if shipGroup_has_next>#if>
<#assign groupIdx = groupIdx + 1>
#list><#-- end list of orderItemShipGroups -->