<#-- 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. -->
${uiLabelMap.OrderItemGroups}
<#assign shipGroups = cart.getShipGroups()> <#if (shipGroups.size() > 0)> <#assign groupIdx = 0> <#list shipGroups as group> <#assign shipEstimateWrapper = Static["org.apache.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper"].getWrapper(dispatcher, cart, groupIdx)> <#assign carrierShipmentMethods = shipEstimateWrapper.getShippingMethods()> <#assign groupNumber = groupIdx + 1> <#assign groupIdx = groupIdx + 1> <#if group_has_next> <#else>
${uiLabelMap.OrderNoShipGroupsDefined}.
${uiLabelMap.CommonGroup} ${groupNumber}:
<#list group.getShipItems() as item> <#assign groupItem = group.getShipItemInfo(item)>
   ${item.getName()} - (${groupItem.getItemQuantity()})
${uiLabelMap.CommonAdd}: ${uiLabelMap.PartyAddNewAddress}
<#assign selectedContactMechId = cart.getShippingContactMechId(groupIdx)?default("")>
<#if cart.getShipmentMethodTypeId(groupIdx)??> <#assign selectedShippingMethod = cart.getShipmentMethodTypeId(groupIdx) + "@" + cart.getCarrierPartyId(groupIdx)> <#else> <#assign selectedShippingMethod = "">

${uiLabelMap.OrderSpecialInstructions}

${uiLabelMap.OrderGiftMessage}


${uiLabelMap.OrderAssignItems}
<#list cart.items() as cartLine> <#assign cartLineIndex = cart.getItemIndex(cartLine)>
${uiLabelMap.OrderProduct}
${uiLabelMap.OrderTotalQty}
 
${uiLabelMap.OrderMoveQty}
   
<#if cartLine.getProductId()??> <#-- product item --> <#-- start code to display a small image of the product --> <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")!> <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "/images/defaultImage.jpg"> <#if smallImageUrl?string?has_content> <#-- end code to display a small image of the product --> ${cartLine.getProductId()} - ${cartLine.getName()!} : ${cartLine.getDescription()!} <#-- display the registered ship groups and quantity --> <#assign itemShipGroups = cart.getShipGroups(cartLine)> <#list itemShipGroups.entrySet() as group>
<#assign groupNumber = group.getKey() + 1> Group - ${groupNumber} / ${uiLabelMap.CommonQuantity} - ${group.getValue()}
<#-- if inventory is not required check to see if it is out of stock and needs to have a message shown about that... --> <#assign itemProduct = cartLine.getProduct()> <#assign isStoreInventoryNotRequiredAndNotAvailable = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].isStoreInventoryRequiredAndAvailable(request, itemProduct, cartLine.getQuantity(), false, false)> <#if isStoreInventoryNotRequiredAndNotAvailable && itemProduct.inventoryMessage?has_content> (${itemProduct.inventoryMessage}) <#else> <#-- this is a non-product item --> ${cartLine.getItemTypeDescription()!} : ${cartLine.getName()!}
${cartLine.getQuantity()?string.number}   
 
 
${uiLabelMap.CommonFrom}:
${uiLabelMap.CommonTo}:
 ${uiLabelMap.OrderBacktoShoppingCart} ${uiLabelMap.CommonContinue}