<#if cartLine.getShoppingListId()??>
<#assign itemsFromList = true />
L
<#elseif cartLine.getIsPromo()>
<#assign promoItems = true />
P
<#else>
#if>
<#if cartLine.getProductId()??>
<#-- product item -->
<#-- start code to display a small image of the product -->
<#if cartLine.getParentProductId()??>
<#assign parentProductId = cartLine.getParentProductId() />
<#else>
<#assign parentProductId = cartLine.getProductId() />
#if>
<#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>
<#if smallImageUrl?string?has_content>
#if>
<#-- end code to display a small image of the product -->
<#-- ${cartLineIndex} - -->
${cartLine.getProductId()} -
${cartLine.getName()!}
: ${cartLine.getDescription()!}
<#-- For configurable products, the selected options are shown -->
<#if cartLine.getConfigWrapper()??>
<#assign selectedOptions = cartLine.getConfigWrapper().getSelectedOptions()! />
<#if selectedOptions??>
<#list selectedOptions as option>
${option.getDescription()}
#list>
#if>
#if>
<#-- 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})
#if>
<#else>
<#-- this is a non-product item -->
${cartLine.getItemTypeDescription()!}: ${cartLine.getName()!}
#if>
<#assign attrs = cartLine.getOrderItemAttributes()/>
<#if attrs?has_content>
<#assign attrEntries = attrs.entrySet()/>
<#list attrEntries as attrEntry>
${attrEntry.getKey()} : ${attrEntry.getValue()}
#list>
#if>
<#if (cartLine.getIsPromo() && cartLine.getAlternativeOptionProductIds()?has_content)>
<#-- Show alternate gifts if there are any... -->
${uiLabelMap.OrderChooseFollowingForGift}:
- ${uiLabelMap.OrderChooseAnotherGift} -
<#list cartLine.getAlternativeOptionProductIds() as alternativeOptionProductId>
<#assign alternativeOptionName =
Static["org.apache.ofbiz.product.product.ProductWorker"].getGwpAlternativeOptionName(
dispatcher, delegator, alternativeOptionProductId, requestAttributes.locale) />
${alternativeOptionName?default(alternativeOptionProductId)}
#list>
<#-- this is the old way, it lists out the options and is not as nice as the drop-down
<#list cartLine.getAlternativeOptionProductIds() as alternativeOptionProductId>
<#assign alternativeOptionName = Static["org.apache.ofbiz.product.product.ProductWorker"]
.getGwpAlternativeOptionName(delegator, alternativeOptionProductId,
requestAttributes.locale) />
Select: ${alternativeOptionName?default(alternativeOptionProductId)}
#list>
-->
#if>
<#-- gift wrap option -->
<#assign showNoGiftWrapOptions = false />
<#assign giftWrapOption = lineOptionalFeatures.GIFT_WRAP! />
<#assign selectedOption = cartLine.getAdditionalProductFeatureAndAppl("GIFT_WRAP")! />
<#if giftWrapOption?has_content>
${uiLabelMap.EcommerceNoGiftWrap}
<#list giftWrapOption as option>
selected="selected"#if>>
${option.description} : ${option.amount?default(0)}
#list>
<#elseif showNoGiftWrapOptions>
${uiLabelMap.EcommerceNoGiftWrap}
<#else>
#if>
<#-- end gift wrap option -->
<#if cartLine.getIsPromo() || cartLine.getShoppingListId()??>
<#if fixedAssetExist == true>
<#if cartLine.getReservStart()??>
${cartLine.getReservStart()?string("yyyy-mm-dd")}
${cartLine.getReservLength()?string.number}
${cartLine.getReservPersons()?string.number}
<#else>
--
--
--
#if>
${cartLine.getQuantity()?string.number}
<#else><#-- fixedAssetExist -->
${cartLine.getQuantity()?string.number}
#if>
<#else><#-- Is Promo or Shoppinglist -->
<#if fixedAssetExist == true>
<#if cartLine.getReservStart()??>
<#else>
${uiLabelMap.EcommerceYourShoppingCartEmpty}.
#if>
<#-- Copy link bar to bottom to include a link bar at the bottom too -->
${uiLabelMap.ProductPromoCodes}
<#if showPromoText?? && showPromoText>
${uiLabelMap.OrderSpecialOffers}
<#-- show promotions text -->
#if>
<#if associatedProducts?has_content>
${uiLabelMap.EcommerceYouMightAlsoIntrested}:
<#-- random complementary products -->
<#list associatedProducts as assocProduct>
${setRequestAttribute("optProduct", assocProduct)}
${setRequestAttribute("listIndex", assocProduct_index)}
${screens.render("component://ecommerce/widget/CatalogScreens.xml#productsummary")}
#list>
#if>
<#if (shoppingCartSize?default(0) > 0)>
${screens.render("component://ecommerce/widget/CartScreens.xml#promoUseDetailsInline")}
#if>