<#-- 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. -->
<#if (shoppingCartSize > 0)> <#assign itemsFromList = false> <#-- set initial row color --> <#assign alt_row = false> <#list shoppingCart.items() as cartLine> <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine)> <#-- show adjustment info --> <#list cartLine.getAdjustments() as cartLineAdjustment> class="alternate-row pos-cart-hover-bar"<#else>class="pos-cart-hover-bar"> <#-- toggle the row color --> <#assign alt_row = !alt_row>
  ${uiLabelMap.OrderProduct}   ${uiLabelMap.CommonQuantity} ${uiLabelMap.WebPosUnitPrice} ${uiLabelMap.WebPosAdjustments} ${uiLabelMap.WebPosItemTotal}
 
<#if cartLine.getProductId()?exists> <#-- product item --> <#-- start code to display a small image of the product --> <#if cartLine.getParentProductId()?exists> <#assign parentProductId = cartLine.getParentProductId()/> <#else> <#assign parentProductId = cartLine.getProductId()/> <#assign smallImageUrl = Static["org.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher)?if_exists> <#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()?if_exists} : ${cartLine.getDescription()?if_exists} <#else> <#-- this is a non-product item --> ${cartLine.getItemTypeDescription()?if_exists} : ${cartLine.getName()?if_exists}
 
<@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency()/>
<@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency()/>
<@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/>
<#if !cartLine.getIsPromo()><#else>