<#-- 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.EcommercePromotionInformation}:
${uiLabelMap.EcommercePromotionsApplied}:
<#list shoppingCart.getProductPromoUseInfoIter() as productPromoUseInfo>
<#-- TODO: when promo pretty print is done show promo short description here --> ${uiLabelMap.EcommercePromotion} ${uiLabelMap.CommonDetails} <#if productPromoUseInfo.productPromoCodeId?has_content> - ${uiLabelMap.OrderWithPromoCode} [${productPromoUseInfo.productPromoCodeId}] <#if (productPromoUseInfo.totalDiscountAmount != 0)> - ${uiLabelMap.CommonTotalValue} <@ofbizCurrency amount=(-1*productPromoUseInfo.totalDiscountAmount) isoCode=shoppingCart.getCurrency()/>
<#if (productPromoUseInfo.quantityLeftInActions > 0)>
- Could be used for ${productPromoUseInfo.quantityLeftInActions} more discounted item<#if (productPromoUseInfo.quantityLeftInActions > 1)>s if added to your cart.
${uiLabelMap.EcommerceCartItemUseinPromotions}:
<#list shoppingCart.items() as cartLine> <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine)> <#if cartLine.getIsPromo()>
${uiLabelMap.EcommerceItemN} ${cartLineIndex+1} [${cartLine.getProductId()?if_exists}] - ${uiLabelMap.EcommerceIsAPromotionalItem}
<#else>
${uiLabelMap.EcommerceItemN} ${cartLineIndex+1} [${cartLine.getProductId()?if_exists}] - ${cartLine.getPromoQuantityUsed()?string.number}/${cartLine.getQuantity()?string.number} ${uiLabelMap.CommonUsed} - ${cartLine.getPromoQuantityAvailable()?string.number} ${uiLabelMap.CommonAvailable}
<#list cartLine.getQuantityUsedPerPromoActualIter() as quantityUsedPerPromoActualEntry> <#assign productPromoActualPK = quantityUsedPerPromoActualEntry.getKey()> <#assign actualQuantityUsed = quantityUsedPerPromoActualEntry.getValue()> <#assign isQualifier = "ProductPromoCond" == productPromoActualPK.getEntityName()>
  - ${actualQuantityUsed} ${uiLabelMap.CommonUsedAs} <#if isQualifier>${uiLabelMap.CommonQualifier}<#else>${uiLabelMap.CommonBenefit} ${uiLabelMap.EcommerceOfPromotion} ${uiLabelMap.CommonDetails}
<#list cartLine.getQuantityUsedPerPromoFailedIter() as quantityUsedPerPromoFailedEntry> <#assign productPromoFailedPK = quantityUsedPerPromoFailedEntry.getKey()> <#assign failedQuantityUsed = quantityUsedPerPromoFailedEntry.getValue()> <#assign isQualifier = "ProductPromoCond" == productPromoFailedPK.getEntityName()>
  - ${uiLabelMap.CommonCouldBeUsedAs} <#if isQualifier>${uiLabelMap.CommonQualifier}<#else>${uiLabelMap.CommonBenefit} ${uiLabelMap.EcommerceOfPromotion} ${uiLabelMap.CommonDetails}
<#list cartLine.getQuantityUsedPerPromoCandidateIter() as quantityUsedPerPromoCandidateEntry> <#assign productPromoCandidatePK = quantityUsedPerPromoCandidateEntry.getKey()> <#assign candidateQuantityUsed = quantityUsedPerPromoCandidateEntry.getValue()> <#assign isQualifier = "ProductPromoCond" == productPromoCandidatePK.getEntityName()>