#-- 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 productContentWrapper = productContentWrapper!> <#assign price = priceMap!> <#-- end variable setup --> <#-- virtual product javascript --> ${virtualJavaScript!}
<#if previousProductId??> ${uiLabelMap.CommonPrevious} | #if> ${(category.categoryName)?default(category.description)!} <#if nextProductId??> | ${uiLabelMap.CommonNext} #if> | ||
<#assign productLargeImageUrl = productContentWrapper.get("LARGE_IMAGE_URL", "url")!> <#-- 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> #if> |
${productContentWrapper.get("PRODUCT_NAME", "html")!}${productContentWrapper.get("DESCRIPTION", "html")!}
${product.productId!}
<#-- example of showing a certain type of feature with the product -->
<#if sizeProductFeatureAndAppls?has_content>
<#if (sizeProductFeatureAndAppls?size == 1)>
<#-- TODO : i18n -->
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 totalPrice is present, use it (totalPrice is the price calculated from the parts)
- 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 totalPrice??>
${uiLabelMap.ProductAggregatedPrice}: <@ofbizCurrency amount=totalPrice isoCode=totalPrice.currencyUsed/>
<#else>
<#if price.competitivePrice?? && price.price?? && price.price?double < price.competitivePrice?double>
${uiLabelMap.ProductCompareAtPrice}: <@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed/>
#if>
<#if price.listPrice?? && price.price?? && price.price?double < price.listPrice?double>
${uiLabelMap.ProductListPrice}: <@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed/>
#if>
<#if price.listPrice?? && price.defaultPrice?? && price.price?? && price.price?double < price.defaultPrice?double && price.defaultPrice?double < price.listPrice?double>
${uiLabelMap.ProductRegularPrice}: <@ofbizCurrency amount=price.defaultPrice isoCode=price.currencyUsed/>
#if>
<#if price.isSale?? && price.isSale>
${uiLabelMap.OrderOnSale}!
<#assign priceStyle = "salePrice">
<#else>
<#assign priceStyle = "regularPrice">
#if>
${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual!> from #if><@ofbizCurrency amount=price.price isoCode=price.currencyUsed/>
<#if price.listPrice?? && price.price?? && price.price?double < price.listPrice?double>
<#assign priceSaved = price.listPrice?double - price.price?double>
<#assign percentSaved = (priceSaved?double / price.listPrice?double) * 100>
${uiLabelMap.OrderSave}: <@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed/> (${percentSaved?int}%)
#if>
#if>
<#-- Included quantities/pieces -->
<#if product.quantityIncluded?? && product.quantityIncluded?double != 0>
${uiLabelMap.OrderIncludes}:
${product.quantityIncluded!}
${product.quantityUomId!}
#if>
<#if product.piecesIncluded?? && product.piecesIncluded?long != 0>
${uiLabelMap.OrderPieces}:
${product.piecesIncluded}
#if>
<#if daysToShip??>
${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}!
#if>
<#if disFeatureList?? && 0 < disFeatureList.size()>
<#list disFeatureList as currentFeature>
${currentFeature.productFeatureTypeId}: ${currentFeature.description}
#list>
| |
<#-- check to see if introductionDate hasn't passed yet -->
<#if product.introductionDate?? && nowTimestamp.before(product.introductionDate)>
${uiLabelMap.ProductProductNotYetMadeAvailable}.
<#-- check to see if salesDiscontinuationDate has passed -->
<#elseif product.salesDiscontinuationDate?? && nowTimestamp.after(product.salesDiscontinuationDate)>
${uiLabelMap.ProductProductNoLongerAvailable}.
<#-- check to see if the product requires inventory check and has inventory -->
<#else>
<#if inStock>
<#if product.requireAmount?default("N") == "Y">
<#assign hiddenStyle = "visible">
<#else>
<#assign hiddenStyle = "hidden">
#if>
Amount:
<#if !configwrapper.isCompleted()>
[${uiLabelMap.EcommerceProductNotConfigured}]
<#else>
${uiLabelMap.OrderAddToCart}
#if>
#if>
<#if requestParameters.category_id??>
#if>
#if>
<#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
<#-- Prefill first select box (virtual products only) -->
<#if variantTree?? && 0 < variantTree.size()>
#if>
<#-- Swatches (virtual products only) -->
<#if variantSample?? && 0 < variantSample.size()>
<#assign imageKeys = variantSample.keySet()>
<#assign imageMap = variantSample>
<#else> ${uiLabelMap.OrderYouMust} ${uiLabelMap.CommonBeLogged} ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}. #if>
|
||
${productContentWrapper.get("LONG_DESCRIPTION", "html")!}
|
||
${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}#if>${afterName!} | ||
${productAssoc.productIdTo!}
- ${productAssoc.reason!}
| ||
${screens.render(productsummaryScreen)} | ||