#-- 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. --> <#-- variable setup --> <#assign price = priceMap?if_exists/> <#-- end variable setup --> <#-- virtual product javascript --> ${virtualJavaScript?if_exists}
<#if previousProductId?exists> ${uiLabelMap.CommonPrevious} | #if> ${(category.categoryName)?default(category.description)?if_exists} <#if nextProductId?exists> | ${uiLabelMap.CommonNext} #if> | |||||||||
<#assign productLargeImageUrl = productContentWrapper.get("LARGE_IMAGE_URL")?if_exists>
<#-- remove the next two lines to always display the virtual image first (virtual images must exist) -->
<#if firstLargeImage?has_content>
<#assign productLargeImageUrl = firstLargeImage>
#if>
<#if productLargeImageUrl?string?has_content>
|
${productContentWrapper.get("PRODUCT_NAME")?if_exists}${productContentWrapper.get("DESCRIPTION")?if_exists}
${product.productId?if_exists}
<#-- example of showing a certain type of feature with the product -->
<#if sizeProductFeatureAndAppls?has_content>
<#if (sizeProductFeatureAndAppls?size == 1)>
Size:
<#else>
Sizes Available:
#if>
<#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl>
${sizeProductFeatureAndAppl.description?default(sizeProductFeatureAndAppl.abbrev?default(sizeProductFeatureAndAppl.productFeatureId))}<#if sizeProductFeatureAndAppl_has_next>,#if>
#list>
#if>
<#-- for prices:
- if price < competitivePrice, show competitive or "Compare At" price
- if price < listPrice, show list price
- if price < defaultPrice and defaultPrice < listPrice, show default
- if isSale show price with salePrice style and print "On Sale!"
-->
<#if price.competitivePrice?exists && price.price?exists && price.price?double < price.competitivePrice?double>
${uiLabelMap.ProductCompareAtPrice}: <@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed/>
#if>
<#if price.listPrice?exists && price.price?exists && price.price?double < price.listPrice?double>
${uiLabelMap.ProductListPrice}: <@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed/>
#if>
<#if price.listPrice?exists && price.defaultPrice?exists && price.price?exists && price.price?double < price.defaultPrice?double && price.defaultPrice?double < price.listPrice?double>
${uiLabelMap.ProductRegularPrice}: <@ofbizCurrency amount=price.defaultPrice isoCode=price.currencyUsed/>
#if>
<#if price.specialPromoPrice?exists>
${uiLabelMap.ProductSpecialPromoPrice}: <@ofbizCurrency amount=price.specialPromoPrice isoCode=price.currencyUsed/>
#if>
<#if price.isSale?exists && price.isSale>
${uiLabelMap.OrderOnSale}!
<#assign priceStyle = "salePrice">
<#else>
<#assign priceStyle = "regularPrice">
#if>
${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual?if_exists> ${uiLabelMap.CommonFrom} #if><@ofbizCurrency amount=price.price isoCode=price.currencyUsed/>
<#if product.productTypeId?if_exists == "ASSET_USAGE">
<#if product.reserv2ndPPPerc?exists && product.reserv2ndPPPerc != 0>
<#if price.listPrice?exists && price.price?exists && price.price?double < price.listPrice?double>
<#assign priceSaved = price.listPrice?double - price.price?double>
<#assign percentSaved = (priceSaved?double / price.listPrice?double) * 100>
${uiLabelMap.ProductReserv2ndPPPerc}<#if !product.reservNthPPPerc?exists || product.reservNthPPPerc == 0>${uiLabelMap.CommonUntil} ${product.reservMaxPersons}#if> <@ofbizCurrency amount=product.reserv2ndPPPerc*price.price/100 isoCode=price.currencyUsed/>#if> <#if product.reservNthPPPerc?exists &&product.reservNthPPPerc != 0> ${uiLabelMap.ProductReservNthPPPerc} <#if !product.reserv2ndPPPerc?exists || product.reserv2ndPPPerc == 0>${uiLabelMap.ProductReservSecond} <#else> ${uiLabelMap.ProductReservThird} #if> ${uiLabelMap.CommonUntil} ${product.reservMaxPersons}, ${uiLabelMap.ProductEach}: <@ofbizCurrency amount=product.reservNthPPPerc*price.price/100 isoCode=price.currencyUsed/>#if> <#if (!product.reserv2ndPPPerc?exists || product.reserv2ndPPPerc == 0) && (!product.reservNthPPPerc?exists || product.reservNthPPPerc == 0)> ${uiLabelMap.ProductMaximum} ${product.reservMaxPersons} ${uiLabelMap.ProductPersons}.#if> #if> ${uiLabelMap.OrderSave}: <@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed/> (${percentSaved?int}%)
#if>
<#-- show price details ("showPriceDetails" field can be set in the screen definition) -->
<#if (showPriceDetails?exists && showPriceDetails?default("N") == "Y")>
<#if price.orderItemPriceInfos?exists>
<#list price.orderItemPriceInfos as orderItemPriceInfo>
${orderItemPriceInfo.description?if_exists}
#list>
#if>
#if>
<#-- Included quantities/pieces -->
<#if product.piecesIncluded?exists && product.piecesIncluded?long != 0>
${uiLabelMap.OrderPieces}: ${product.piecesIncluded}
#if>
<#if (product.quantityIncluded?exists && product.quantityIncluded?double != 0) || product.quantityUomId?has_content>
<#assign quantityUom = product.getRelatedOneCache("QuantityUom")?if_exists/>
${uiLabelMap.CommonQuantity}: ${product.quantityIncluded?if_exists} ${((quantityUom.abbreviation)?default(product.quantityUomId))?if_exists}
#if>
<#if (product.weight?exists && product.weight?double != 0) || product.weightUomId?has_content>
<#assign weightUom = product.getRelatedOneCache("WeightUom")?if_exists/>
${uiLabelMap.CommonWeight}: ${product.weight?if_exists} ${((weightUom.abbreviation)?default(product.weightUomId))?if_exists}
#if>
<#if (product.productHeight?exists && product.productHeight?double != 0) || product.heightUomId?has_content>
<#assign heightUom = product.getRelatedOneCache("HeightUom")?if_exists/>
${uiLabelMap.CommonHeight}: ${product.productHeight?if_exists} ${((heightUom.abbreviation)?default(product.heightUomId))?if_exists}
#if>
<#if (product.productWidth?exists && product.productWidth?double != 0) || product.widthUomId?has_content>
<#assign widthUom = product.getRelatedOneCache("WidthUom")?if_exists/>
${uiLabelMap.CommonWidth}: ${product.productWidth?if_exists} ${((widthUom.abbreviation)?default(product.widthUomId))?if_exists}
#if>
<#if (product.productDepth?exists && product.productDepth?double != 0) || product.depthUomId?has_content>
<#assign depthUom = product.getRelatedOneCache("DepthUom")?if_exists/>
${uiLabelMap.CommonDepth}: ${product.productDepth?if_exists} ${((depthUom.abbreviation)?default(product.depthUomId))?if_exists}
#if>
<#if daysToShip?exists>
${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}!
#if>
<#if disFeatureList?exists && 0 < disFeatureList.size()>
<#list disFeatureList as currentFeature> <#assign disFeatureType = currentFeature.getRelatedOneCache("ProductFeatureType")/>
<#if disFeatureType.description?exists>${disFeatureType.get("description", locale)}<#else>${currentFeature.productFeatureTypeId}#if>: ${currentFeature.description}
#list>
| ||||||||
<#-- check to see if introductionDate hasnt passed yet -->
<#if product.introductionDate?exists && nowTimestamp.before(product.introductionDate)>
${uiLabelMap.ProductProductNotYetMadeAvailable}.
<#-- check to see if salesDiscontinuationDate has passed -->
<#elseif product.salesDiscontinuationDate?exists && nowTimestamp.after(product.salesDiscontinuationDate)>
${uiLabelMap.ProductProductNoLongerAvailable}.
<#-- check to see if the product requires inventory check and has inventory -->
<#elseif product.virtualVariantMethodEnum?if_exists != "VV_FEATURETREE">
<#if inStock>
<#if product.requireAmount?default("N") == "Y">
<#assign hiddenStyle = "visible">
<#else>
<#assign hiddenStyle = "hidden">
#if>
${uiLabelMap.CommonAmount}:
<#if product.productTypeId?if_exists == "ASSET_USAGE">
<#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
<#-- Prefill first select box (virtual products only) -->
<#if variantTree?exists && 0 < variantTree.size()>
#if>
<#-- Swatches (virtual products only) -->
<#if variantSample?exists && 0 < variantSample.size()>
<#assign imageKeys = variantSample.keySet()>
<#assign imageMap = variantSample>
<#else> ${uiLabelMap.OrderYouMust} ${uiLabelMap.CommonBeLogged} ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}. #if>
|