#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#-- Ship group summary for order confirmation. Lists each ship group, its destination address, products and quantities associated with it, and similar information. This is designed to be tacked on to the standard order confirmation page and to be re-usable by other screens. --> <#if !(cart??)><#assign cart = shoppingCart!/>#if> <#if cart??>
${uiLabelMap.OrderDestination} | ${uiLabelMap.PartySupplier} | ${uiLabelMap.ProductShipmentMethod} | ${uiLabelMap.ProductItem} | ${uiLabelMap.ProductQuantity} |
<#assign contactMech = delegator.findOne("ContactMech", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contactMechId", cartShipInfo.contactMechId), false)! />
<#if contactMech?has_content>
<#assign address = contactMech.getRelatedOne("PostalAddress", false)! />
#if>
<#if address??>
<#if address.toName?has_content>${uiLabelMap.CommonTo}: ${address.toName} #if> <#if address.attnName?has_content>${uiLabelMap.CommonAttn}: ${address.attnName} #if> <#if address.address1?has_content>${address.address1} #if> <#if address.address2?has_content>${address.address2} #if> <#if address.city?has_content>${address.city}#if> <#if address.stateProvinceGeoId?has_content> ${address.stateProvinceGeoId}#if> <#if address.postalCode?has_content>, ${address.postalCode!}#if> #if> |
<#-- supplier id (for drop shipments) (also spans rows = number of items) -->
<#assign supplier = delegator.findOne("PartyGroup", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("partyId", cartShipInfo.getSupplierPartyId()), false)! /> <#if supplier?has_content>${supplier.groupName?default(supplier.partyId)}#if> | <#-- carrier column (also spans rows = number of items) --><#assign carrier = delegator.findOne("PartyGroup", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("partyId", cartShipInfo.getCarrierPartyId()), false)! /> <#assign method = delegator.findOne("ShipmentMethodType", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("shipmentMethodTypeId", cartShipInfo.getShipmentMethodTypeId()), false)! /> <#if carrier?has_content>${carrier.groupName?default(carrier.partyId)}#if> <#if method?has_content>${method.description?default(method.shipmentMethodTypeId)}#if> | <#-- list each ShoppingCartItem in this group --> <#assign itemIndex = 0 /> <#list cartShipInfo.getShipItems() as shoppingCartItem> <#if (itemIndex > 0)>||
${shoppingCartItem.getProductId()?default("")} - ${shoppingCartItem.getName()?default("")} | ${cartShipInfo.getShipItemInfo(shoppingCartItem).getItemQuantity()?default("0")} | <#if (itemIndex == 0)>