+
+ <#if cartLine.getShoppingListId()??>
+ <#assign itemsFromList = true />
+ L
+ <#elseif cartLine.getIsPromo()>
+ <#assign promoItems = true />
+ P
<#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 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>
- <#-- 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>
+ <#-- 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>
- <#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>
+
+ -->
+ #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 -->
+ <#-- 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.getIsPromo() || cartLine.getShoppingListId()??>
+ <#if fixedAssetExist == true>
<#if cartLine.getReservStart()??>
-
-
-
- ${cartLine.getReservStart()?string("yyyy-mm-dd")}
- ${cartLine.getReservLength()?string.number}
-
-
- ${cartLine.getReservPersons()?string.number}
-
+
+
+
+ ${cartLine.getReservStart()?string("yyyy-mm-dd")}
+ ${cartLine.getReservLength()?string.number}
+
+
+ ${cartLine.getReservPersons()?string.number}
+
<#else>
-
-
- --
- --
-
-
- --
-
+
+
+ --
+ --
+
+
+ --
+
#if>
${cartLine.getQuantity()?string.number}
- <#else><#-- fixedAssetExist -->
+ <#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}
+
+
-
${uiLabelMap.ProductPromoCodes}
-
-
+
<#if showPromoText?? && showPromoText>
-
+
-
${uiLabelMap.OrderSpecialOffers}
+ ${uiLabelMap.OrderSpecialOffers}
- <#-- show promotions text -->
-
+ <#-- show promotions text -->
+
-
+
+
-
+
#if>
<#if associatedProducts?has_content>
-
+
-
${uiLabelMap.EcommerceYouMightAlsoIntrested}:
+ ${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>
+ <#-- 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>
-
+
diff --git a/ecommerce/template/cart/UpdateCart.ftl b/ecommerce/template/cart/UpdateCart.ftl
index 001d02fa8..3e376a27e 100644
--- a/ecommerce/template/cart/UpdateCart.ftl
+++ b/ecommerce/template/cart/UpdateCart.ftl
@@ -35,27 +35,40 @@ under the License.
${uiLabelMap.CommonSubtotal}
- <@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() />
+
<#assign orderAdjustmentsTotal = 0 />
<#list shoppingCart.getAdjustments() as cartAdjustment>
- <#assign orderAdjustmentsTotal = orderAdjustmentsTotal + Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
+ <#assign orderAdjustmentsTotal = orderAdjustmentsTotal +
+ Static["org.apache.ofbiz.order.order.OrderReadHelper"]
+ .calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
#list>
${uiLabelMap.ProductDiscount}
- <@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() />
+
+
+ <@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() />
+
${uiLabelMap.OrderShippingAndHandling}
- <@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />
+
${uiLabelMap.OrderSalesTax}
- <@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() />
+
${uiLabelMap.OrderGrandTotal}
- <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />
+
@@ -66,16 +79,29 @@ under the License.
<#else>
<#assign parentProductId = cartLine.getProductId() />
#if>
- <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
+ <#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 = "" />#if>
#if>
-
+
+
${cartLine.getName()!}
${cartLine.getDisplayPrice()}
- ${cartLine.getQuantity()?string.number}
- <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
- <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />
+
+ ${cartLine.getQuantity()?string.number}
+
+
+
+ <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
+
+
+
+
+ <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />
+
+
#list>
@@ -101,29 +127,39 @@ under the License.
${uiLabelMap.CommonSubtotal}
- <@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency() />
+
${uiLabelMap.ProductDiscount}
<#assign orderAdjustmentsTotal = 0 />
<#list shoppingCart.getAdjustments() as cartAdjustment>
- <#assign orderAdjustmentsTotal = orderAdjustmentsTotal + Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
+ <#assign orderAdjustmentsTotal = orderAdjustmentsTotal +
+ Static["org.apache.ofbiz.order.order.OrderReadHelper"]
+ .calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) />
#list>
<@ofbizCurrency amount=orderAdjustmentsTotal isoCode=shoppingCart.getCurrency() />
${uiLabelMap.OrderShippingAndHandling}
- <@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency() />
+
${uiLabelMap.OrderSalesTax}
- <@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency() />
+
${uiLabelMap.OrderGrandTotal}
- <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency() />
+
@@ -136,33 +172,56 @@ under the License.
<#else>
<#assign parentProductId = cartLine.getProductId() />
#if>
- <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
+ <#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 = "" />#if>
<#if smallImageUrl?string?has_content>
-
+
#if>
#if>
${cartLine.getName()!}
- <@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency() />
+
<#if cartLine.getIsPromo()>
${cartLine.getQuantity()?string.number}
<#else>
-
-
- (${uiLabelMap.CommonRequired})
- (${uiLabelMap.CommonPleaseEnterValidNumberInThisField})
+
+
+
+ (${uiLabelMap.CommonRequired})
+
+
+ (${uiLabelMap.CommonPleaseEnterValidNumberInThisField})
+
#if>
<#if !cartLine.getIsPromo()>
- <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
+
<#else>
- <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() />
+
#if>
- <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />
+
+ <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() />
+
<#if !cartLine.getIsPromo()>
-
+
+
+
+
+
#if>
#list>
@@ -176,9 +235,13 @@ under the License.
- ${uiLabelMap.EcommerceContinueToStep} 2
- ${uiLabelMap.EcommercePleaseWait}....
+
+ ${uiLabelMap.EcommerceContinueToStep} 2
+
+
+ ${uiLabelMap.EcommercePleaseWait}....
+
-#if>
\ No newline at end of file
+#if>
diff --git a/ecommerce/template/catalog/AdvancedSearch.ftl b/ecommerce/template/catalog/AdvancedSearch.ftl
index 990796604..9ec60a1b5 100644
--- a/ecommerce/template/catalog/AdvancedSearch.ftl
+++ b/ecommerce/template/catalog/AdvancedSearch.ftl
@@ -16,44 +16,57 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
-<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)/>
-<#assign currentCatalogId = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)/>
+<#assign searchOptionsHistoryList =
+ Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)/>
+<#assign currentCatalogId =
+ Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)/>
${uiLabelMap.ProductAdvancedSearchInCategory}
diff --git a/ecommerce/template/catalog/AjaxBreadCrumbs.ftl b/ecommerce/template/catalog/AjaxBreadCrumbs.ftl
index bba178ae1..69b4f67c5 100644
--- a/ecommerce/template/catalog/AjaxBreadCrumbs.ftl
+++ b/ecommerce/template/catalog/AjaxBreadCrumbs.ftl
@@ -18,53 +18,45 @@ under the License.
-->
-<#assign isDefaultTheme = !layoutSettings.VT_FTR_TMPLT_LOC?contains("multiflex")>
-<#if isDefaultTheme>
-
${uiLabelMap.CommonMain} >
-<#else>
+ <#assign isDefaultTheme = !layoutSettings.VT_FTR_TMPLT_LOC?contains("multiflex")>
+ <#if isDefaultTheme>
+
${uiLabelMap.CommonMain} >
+ <#else>
-
+
diff --git a/ecommerce/template/catalog/ChooseCatalog.ftl b/ecommerce/template/catalog/ChooseCatalog.ftl
index efcd0a955..e34ede48a 100644
--- a/ecommerce/template/catalog/ChooseCatalog.ftl
+++ b/ecommerce/template/catalog/ChooseCatalog.ftl
@@ -18,28 +18,30 @@ under the License.
-->
<#assign catalogCol = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogIdsAvailable(request)!>
<#assign currentCatalogId = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)!>
-<#assign currentCatalogName = Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, currentCatalogId)!>
+<#assign currentCatalogName =
+ Static["org.apache.ofbiz.product.catalog.CatalogWorker"].getCatalogName(request, currentCatalogId)!>
<#-- Only show if there is more than 1 (one) catalog, no sense selecting when there is only one option... -->
<#if (catalogCol?size > 1)>
-
-
-
- ${uiLabelMap.ProductChooseCatalog}
-
-
+
+
+
+ ${uiLabelMap.ProductChooseCatalog}
+
+
+
+
+
+
-
-
-
-
#if>
diff --git a/ecommerce/template/catalog/ConfigProductDetail.ftl b/ecommerce/template/catalog/ConfigProductDetail.ftl
index 069d5a243..7296aa896 100644
--- a/ecommerce/template/catalog/ConfigProductDetail.ftl
+++ b/ecommerce/template/catalog/ConfigProductDetail.ftl
@@ -24,341 +24,380 @@ under the License.
<#-- virtual product javascript -->
${virtualJavaScript!}
+ }
+ //-->
+
-
-
- <#-- Category next/previous -->
- <#if category??>
-
-
- <#if previousProductId??>
- ${uiLabelMap.CommonPrevious} |
- #if>
- ${(category.categoryName)?default(category.description)!}
- <#if nextProductId??>
- | ${uiLabelMap.CommonNext}
- #if>
-
-
- #if>
-
-
-
- <#-- Product image/name/price -->
+<#-- Category next/previous -->
+<#if category??>
+
+
+ <#if previousProductId??>
+ ${uiLabelMap.CommonPrevious} |
+ #if>
+
+ ${(category.categoryName)?default(category.description)!}
+
+ <#if nextProductId??> |
+ ${uiLabelMap.CommonNext}
+ #if>
+
+
+#if>
+
+
+
+<#-- Product image/name/price -->
- <#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>
+ <#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>
+ <#-- 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 < price.competitivePrice>
+
${uiLabelMap.ProductCompareAtPrice}:
+
+ <@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed/>
+
#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 < price.competitivePrice>
-
${uiLabelMap.ProductCompareAtPrice}: <@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed/>
- #if>
<#if price.listPrice?? && price.price?? && price.price < price.listPrice>
-
${uiLabelMap.ProductListPrice}: <@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed/>
+
${uiLabelMap.ProductListPrice}:
+
+ <@ofbizCurrency amount=price.listPrice isoCode=price.currencyUsed/>
+
+
#if>
- <#if price.listPrice?? && price.defaultPrice?? && price.price?? && price.price < price.defaultPrice && price.defaultPrice < price.listPrice>
-
${uiLabelMap.ProductRegularPrice}: <@ofbizCurrency amount=price.defaultPrice isoCode=price.currencyUsed/>
+ <#if price.listPrice?? && price.defaultPrice?? && price.price?? &&
+ price.price < price.defaultPrice && price.defaultPrice < price.listPrice>
+
${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.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 < price.listPrice>
<#assign priceSaved = price.listPrice - price.price>
<#assign percentSaved = (priceSaved / price.listPrice) * 100>
-
${uiLabelMap.OrderSave}: <@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed/> (${percentSaved?int}%)
- #if>
- #if>
-
- <#-- Included quantities/pieces -->
- <#if product.quantityIncluded?? && product.quantityIncluded != 0>
-
${uiLabelMap.OrderIncludes}:
- ${product.quantityIncluded!}
- ${product.quantityUomId!}
+
${uiLabelMap.OrderSave}:
+
+ <@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed/> (${percentSaved?int}%)
+
#if>
- <#if product.piecesIncluded?? && product.piecesIncluded?long != 0>
-
${uiLabelMap.OrderPieces}:
- ${product.piecesIncluded}
-
- #if>
- <#if daysToShip??>
-
${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}
- #if>
+ #if>
+ <#-- Included quantities/pieces -->
+ <#if product.quantityIncluded?? && product.quantityIncluded != 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>
- <#-- show tell a friend details only in ecommerce application -->
+ <#-- show tell a friend details only in ecommerce application -->
- <#if disFeatureList?? && 0 < disFeatureList.size()>
-
- <#list disFeatureList as currentFeature>
-
- ${currentFeature.productFeatureTypeId}: ${currentFeature.description}
-
- #list>
-
- #if>
+ <#if disFeatureList?? && 0 < disFeatureList.size()>
+
+ <#list disFeatureList as currentFeature>
+
+ ${currentFeature.productFeatureTypeId}: ${currentFeature.description}
+
+ #list>
+
+ #if>
-
-
- <#-- 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 -->
+ #if>
+
+
+
+
+ <#-- 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>
- <#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 minimumQuantity?? && minimumQuantity > 0>
- Minimum order quantity is ${minimumQuantity}.
- #if>
- #if>
- #if>
- <#if requestParameters.category_id??>
-
+ <#assign hiddenStyle = "hidden">
+ #if>
+
+ Amount:
+
+
+ <#if !configwrapper.isCompleted()>
+ [${uiLabelMap.EcommerceProductNotConfigured}]
+
+ <#else>
+
+
+ ${uiLabelMap.OrderAddToCart}
+
+
+
+ <#if minimumQuantity?? && minimumQuantity > 0>
+ Minimum order quantity is ${minimumQuantity}.
#if>
#if>
+ #if>
+ <#if requestParameters.category_id??>
+
+ #if>
+ #if>
-
+
<#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
-
-
- <#else>
- ${uiLabelMap.OrderYouMust}
${uiLabelMap.CommonBeLogged}
- ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.
+ <#else>
+ ${uiLabelMap.OrderYouMust}
+
${uiLabelMap.CommonBeLogged}
+ ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.
#if>
- <#-- Prefill first select box (virtual products only) -->
- <#if variantTree?? && 0 < variantTree.size()>
-
- #if>
+ <#-- 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>
-
-
-
- <#assign maxIndex = 7>
- <#assign indexer = 0>
- <#list imageKeys as key>
- <#assign swatchProduct = imageMap.get(key)>
- <#if swatchProduct?has_content && indexer < maxIndex>
- <#assign imageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(swatchProduct, "SMALL_IMAGE_URL", request, "url")!>
- <#if !imageUrl?string?has_content>
- <#assign imageUrl = productContentWrapper.get("SMALL_IMAGE_URL", "url")!>
- #if>
- <#if !imageUrl?string?has_content>
- <#assign imageUrl = "/images/defaultImage.jpg">
- #if>
-
-
-
- ${key}
-
+ <#-- Swatches (virtual products only) -->
+ <#if variantSample?? && 0 < variantSample.size()>
+ <#assign imageKeys = variantSample.keySet()>
+ <#assign imageMap = variantSample>
+
+
+
+ <#assign maxIndex = 7>
+ <#assign indexer = 0>
+ <#list imageKeys as key>
+ <#assign swatchProduct = imageMap.get(key)>
+ <#if swatchProduct?has_content && indexer < maxIndex>
+ <#assign imageUrl =
+ Static["org.apache.ofbiz.product.product.ProductContentWrapper"]
+ .getProductContentAsText(swatchProduct, "SMALL_IMAGE_URL", request, "url")!>
+ <#if !imageUrl?string?has_content>
+ <#assign imageUrl = productContentWrapper.get("SMALL_IMAGE_URL", "url")!>
#if>
- <#assign indexer = indexer + 1>
- #list>
- <#if (indexer > maxIndex)>
- ${uiLabelMap.OrderMoreOptionsAvailable}.
+ <#if !imageUrl?string?has_content>
+ <#assign imageUrl = "/images/defaultImage.jpg">
+ #if>
+
+
+
+
+
+
+ ${key}
+
+
#if>
-
-
- #if>
+ <#assign indexer = indexer + 1>
+ #list>
+ <#if (indexer > maxIndex)>
+ ${uiLabelMap.OrderMoreOptionsAvailable}.
+ #if>
+
+
+ #if>
-
-
-
- <#-- Long description of product -->
+<#-- Long description of product -->
${productContentWrapper.get("LONG_DESCRIPTION", "html")!}
-
-
-
- <#-- Any attributes/etc may go here -->
- <#-- Product Configurator -->
-
+
+<#-- Any attributes/etc may go here -->
+<#-- Product Configurator -->
+
+
+
<#if sessionAttributes.lastViewedProducts?? && sessionAttributes.lastViewedProducts?has_content>
-
<#list sessionAttributes.lastViewedProducts as productId>
@@ -39,13 +38,12 @@ under the License.
#list>
-
<#else>
-
-
-
- ${uiLabelMap.ProductNotViewedAnyProducts}.
-
-
-
+
+
+
+ ${uiLabelMap.ProductNotViewedAnyProducts}.
+
+
+
#if>
diff --git a/ecommerce/template/catalog/LayeredCategoryDetail.ftl b/ecommerce/template/catalog/LayeredCategoryDetail.ftl
index b8f57dfac..8349de4a9 100644
--- a/ecommerce/template/catalog/LayeredCategoryDetail.ftl
+++ b/ecommerce/template/catalog/LayeredCategoryDetail.ftl
@@ -18,90 +18,99 @@ under the License.
-->
<#macro paginationControls>
- <#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)>
- <#if (viewIndexMax?int > 0)>
-
- <#-- Start Page Select Drop-Down -->
-
- ${uiLabelMap.CommonPage} ${viewIndex?int + 1} ${uiLabelMap.CommonOf} ${viewIndexMax + 1}
- <#list 0..viewIndexMax as curViewNum>
- ${uiLabelMap.CommonGotoPage} ${curViewNum + 1}
- #list>
-
- <#-- End Page Select Drop-Down -->
- <#if (0 < viewIndex?int)>
-
${uiLabelMap.CommonPrevious} |
- #if>
- <#if ((listSize?int - viewSize?int) > 0)>
-
${lowIndex + 1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}
- #if>
- <#if highIndex?int < listSize?int>
- |
${uiLabelMap.CommonNext}
- #if>
-
- #if>
+ <#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)>
+ <#if (viewIndexMax?int > 0)>
+
+ <#-- Start Page Select Drop-Down -->
+
+
+ ${uiLabelMap.CommonPage} ${viewIndex?int + 1} ${uiLabelMap.CommonOf} ${viewIndexMax + 1}
+
+ <#list 0..viewIndexMax as curViewNum>
+
+ ${uiLabelMap.CommonGotoPage} ${curViewNum + 1}
+
+ #list>
+
+ <#-- End Page Select Drop-Down -->
+ <#if (0 < viewIndex?int)>
+
${uiLabelMap.CommonPrevious} |
+ #if>
+ <#if ((listSize?int - viewSize?int) > 0)>
+
${lowIndex + 1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}
+ #if>
+ <#if highIndex?int < listSize?int>
+ |
+ ${uiLabelMap.CommonNext}
+
+ #if>
+
+ #if>
#macro>
<#if productCategory??>
- <#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/>
- <#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/>
- <#if categoryName?has_content>
-
${categoryName}
- #if>
- <#if categoryDescription?has_content>
-
${categoryDescription}
- #if>
- <#assign longDescription = categoryContentWrapper.get("LONG_DESCRIPTION", "html")!/>
- <#assign categoryImageUrl = categoryContentWrapper.get("CATEGORY_IMAGE_URL", "url")!/>
- <#if categoryImageUrl?string?has_content || longDescription?has_content>
-
- <#if categoryImageUrl?string?has_content>
- <#assign height=100/>
-
- #if>
- <#if longDescription?has_content>
- ${longDescription}
- #if>
-
+ <#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/>
+ <#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/>
+ <#if categoryName?has_content>
+
${categoryName}
+ #if>
+ <#if categoryDescription?has_content>
+
${categoryDescription}
+ #if>
+ <#assign longDescription = categoryContentWrapper.get("LONG_DESCRIPTION", "html")!/>
+ <#assign categoryImageUrl = categoryContentWrapper.get("CATEGORY_IMAGE_URL", "url")!/>
+ <#if categoryImageUrl?string?has_content || longDescription?has_content>
+
+ <#if categoryImageUrl?string?has_content>
+ <#assign height=100/>
+
+ #if>
+ <#if longDescription?has_content>
+ ${longDescription}
+ #if>
+
#if>
#if>
<#if productIds?has_content>
- <@paginationControls/>
- <#assign numCol = numCol?default(1)>
- <#assign numCol = numCol?number>
- <#assign tabCol = 1>
-
- style="position: relative; margin-top: ${height}px;"
- #if>
- class="productsummary-container<#if (numCol?int > 1)> matrix#if>">
+ <@paginationControls/>
+ <#assign numCol = numCol?default(1)>
+ <#assign numCol = numCol?number>
+ <#assign tabCol = 1>
+
+ style="position: relative; margin-top: ${height}px;"#if>
+ class="productsummary-container<#if (numCol?int > 1)> matrix#if>">
<#if (numCol?int > 1)>
#if>
- <#list productIds as productId>
- <#if (numCol?int == 1)>
- ${setRequestAttribute("optProductId", productId)}
- ${setRequestAttribute("listIndex", productId_index)}
- ${screens.render(productsummaryScreen)}
- <#else>
- <#if (tabCol?int = 1)>#if>
-
- ${setRequestAttribute("optProductId", productId)}
- ${setRequestAttribute("listIndex", productId_index)}
- ${screens.render(productsummaryScreen)}
-
- <#if (tabCol?int = numCol)> #if>
- <#assign tabCol = tabCol+1><#if (tabCol?int > numCol)><#assign tabCol = 1>#if>
- #if>
- #list>
+ <#list productIds as productId>
+ <#if (numCol?int == 1)>
+ ${setRequestAttribute("optProductId", productId)}
+ ${setRequestAttribute("listIndex", productId_index)}
+ ${screens.render(productsummaryScreen)}
+ <#else>
+ <#if (tabCol?int = 1)>#if>
+
+ ${setRequestAttribute("optProductId", productId)}
+ ${setRequestAttribute("listIndex", productId_index)}
+ ${screens.render(productsummaryScreen)}
+
+ <#if (tabCol?int = numCol)> #if>
+ <#assign tabCol = tabCol+1><#if (tabCol?int > numCol)><#assign tabCol = 1>#if>
+ #if>
+ #list>
<#if (numCol?int > 1)>
#if>
-
- <@paginationControls/>
+
+ <@paginationControls/>
<#else>
-
-
${uiLabelMap.ProductNoProductsInThisCategory}
+
+
${uiLabelMap.ProductNoProductsInThisCategory}
#if>
diff --git a/ecommerce/template/catalog/LayeredNavBar.ftl b/ecommerce/template/catalog/LayeredNavBar.ftl
index 8cee879d1..9f876e7cc 100644
--- a/ecommerce/template/catalog/LayeredNavBar.ftl
+++ b/ecommerce/template/catalog/LayeredNavBar.ftl
@@ -29,14 +29,24 @@ under the License.
<#assign currentSearchCategoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")?string />
<#list searchConstraintStrings as searchConstraintString>
<#if searchConstraintString.indexOf(currentSearchCategoryName) != -1>
-
X <#noescape> ${searchConstraintString}#noescape>
+
+
X
+ <#noescape> ${searchConstraintString}#noescape>
+
#if>
#list>
#if>
#escape>
<#list searchConstraintStrings as searchConstraintString>
<#if searchConstraintString.indexOf("Category: ") = -1 && searchConstraintString != "Exclude Variants">
-
X ${searchConstraintString}
+
+
+ X
+
+ ${searchConstraintString}
+
#if>
#list>
<#if showSubCats>
@@ -46,7 +56,11 @@ under the License.
<#list subCategoryList as category>
<#assign subCategoryContentWrapper = category.categoryContentWrapper />
<#assign categoryName = subCategoryContentWrapper.get("CATEGORY_NAME", "html")!?string />
-
${categoryName!} (${category.count})
+
+
+ ${categoryName!} (${category.count})
+
+
#list>
@@ -56,7 +70,11 @@ under the License.
${colorFeatureType.description}
@@ -66,7 +84,11 @@ under the License.
${uiLabelMap.EcommercePriceRange}
diff --git a/ecommerce/template/catalog/MiniAssocProds.ftl b/ecommerce/template/catalog/MiniAssocProds.ftl
index 5c36bcef5..f18594431 100644
--- a/ecommerce/template/catalog/MiniAssocProds.ftl
+++ b/ecommerce/template/catalog/MiniAssocProds.ftl
@@ -17,22 +17,23 @@ specific language governing permissions and limitations
under the License.
-->
-<#assign associatedProducts = Static["org.apache.ofbiz.order.shoppingcart.product.ProductDisplayWorker"].getRandomCartProductAssoc(request, true)!>
+<#assign associatedProducts = Static["org.apache.ofbiz.order.shoppingcart.product.ProductDisplayWorker"]
+ .getRandomCartProductAssoc(request, true)!>
<#if associatedProducts?has_content>
-
+
${uiLabelMap.EcommerceYouMightLike}...
- <#-- random complementary products -->
-
+ <#-- random complementary products -->
+
<#list associatedProducts as miniProduct>
-
- ${setRequestAttribute("miniProdQuantity", 1)}
- ${setRequestAttribute("miniProdFormName", "theminiassocprod" + miniProduct_index + "form")}
- ${setRequestAttribute("optProductId", miniProduct.productId)}
- ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
-
+
+ ${setRequestAttribute("miniProdQuantity", 1)}
+ ${setRequestAttribute("miniProdFormName", "theminiassocprod" + miniProduct_index + "form")}
+ ${setRequestAttribute("optProductId", miniProduct.productId)}
+ ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
+
#list>
-
+
-
+
#if>
diff --git a/ecommerce/template/catalog/MiniLastProductSearches.ftl b/ecommerce/template/catalog/MiniLastProductSearches.ftl
index 25d0bc2dd..39344d68b 100644
--- a/ecommerce/template/catalog/MiniLastProductSearches.ftl
+++ b/ecommerce/template/catalog/MiniLastProductSearches.ftl
@@ -18,34 +18,45 @@ under the License.
-->
<#assign maxToShow = 4/>
-<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)!/>
+<#assign searchOptionsHistoryList = Static["org.apache.ofbiz.product.product.ProductSearchSession"]
+ .getSearchOptionsHistoryList(session)!/>
<#if searchOptionsHistoryList?has_content>
- <#if (searchOptionsHistoryList?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(searchOptionsHistoryList?size-1)/>#if>
-
-
-
${uiLabelMap.OrderLastSearches}...
-
- <#list searchOptionsHistoryList[0..limit] as searchOptions>
- <#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
-
- ${uiLabelMap.EcommerceSearchNumber} ${searchOptions_index + 1}
-
-
- #list>
-
+ <#if (searchOptionsHistoryList?size > maxToShow)>
+ <#assign limit=maxToShow/>
+ <#else>
+ <#assign limit=(searchOptionsHistoryList?size-1)/>
+ #if>
+
+
+
${uiLabelMap.OrderLastSearches}...
+
+ <#list searchOptionsHistoryList[0..limit] as searchOptions>
+ <#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
+
+ ${uiLabelMap.EcommerceSearchNumber} ${searchOptions_index + 1}
+
+
+ #list>
+
+
#if>
diff --git a/ecommerce/template/catalog/MiniLastViewedCategories.ftl b/ecommerce/template/catalog/MiniLastViewedCategories.ftl
index de79c8099..609bbdce0 100644
--- a/ecommerce/template/catalog/MiniLastViewedCategories.ftl
+++ b/ecommerce/template/catalog/MiniLastViewedCategories.ftl
@@ -20,28 +20,46 @@ under the License.
<#assign maxToShow = 8/>
<#assign lastViewedCategories = sessionAttributes.lastViewedCategories!/>
<#if lastViewedCategories?has_content>
- <#if (lastViewedCategories?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(lastViewedCategories?size-1)/>#if>
+ <#if (lastViewedCategories?size > maxToShow)>
+ <#assign limit=maxToShow/>
+ <#else>
+ <#assign limit=(lastViewedCategories?size-1)/>
+ #if>
<#list lastViewedCategories[0..limit] as categoryId>
- <#assign category = delegator.findOne("ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", categoryId), true)!>
+ <#assign category = delegator.findOne("ProductCategory",
+ Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", categoryId), true)!>
<#if category?has_content>
- <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
- ${catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")}
- <#elseif catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
- ${catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")}
- <#else>
- ${category.description!}
- #if>
+ <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
+ catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
+
+ ${catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")}
+
+ <#elseif catContentWrappers?? && catContentWrappers[category.productCategoryId]?? &&
+ catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
+
+ ${catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")}
+
+ <#else>
+
+ ${category.description!}
+
+ #if>
#if>
#list>
diff --git a/ecommerce/template/catalog/MiniLastViewedProducts.ftl b/ecommerce/template/catalog/MiniLastViewedProducts.ftl
index 78cbc4dae..758cdb85e 100644
--- a/ecommerce/template/catalog/MiniLastViewedProducts.ftl
+++ b/ecommerce/template/catalog/MiniLastViewedProducts.ftl
@@ -20,14 +20,26 @@ under the License.
<#assign maxToShow = 4/>
<#assign lastViewedProducts = sessionAttributes.lastViewedProducts!/>
<#if lastViewedProducts?has_content>
- <#if (lastViewedProducts?size > maxToShow)><#assign limit=maxToShow/><#else><#assign limit=(lastViewedProducts?size-1)/>#if>
+ <#if (lastViewedProducts?size > maxToShow)>
+ <#assign limit=maxToShow/>
+ <#else>
+ <#assign limit=(lastViewedProducts?size-1)/>
+ #if>
diff --git a/ecommerce/template/catalog/MiniProductSummary.ftl b/ecommerce/template/catalog/MiniProductSummary.ftl
index ac40ce5a9..92aab7177 100644
--- a/ecommerce/template/catalog/MiniProductSummary.ftl
+++ b/ecommerce/template/catalog/MiniProductSummary.ftl
@@ -17,45 +17,81 @@ specific language governing permissions and limitations
under the License.
-->
<#if miniProduct??>
-
${miniProductContentWrapper.get("PRODUCT_NAME", "html")?default("No Name Available")}
-
- ${miniProduct.productId}
- <#if (priceResult.price?default(0) > 0 && miniProduct.requireAmount?default("N") == "N")>
- <#if "Y" = miniProduct.isVirtual!> ${uiLabelMap.CommonFrom} #if>
- <#if totalPrice??>
- ${uiLabelMap.ProductAggregatedPrice}: <@ofbizCurrency amount=totalPrice isoCode=priceResult.currencyUsed/>
- <#else>
-
- <@ofbizCurrency amount=priceResult.price isoCode=priceResult.currencyUsed/>
- #if>
- #if>
-
+
+ ${miniProductContentWrapper.get("PRODUCT_NAME", "html")?default("No Name Available")}
+
+
+
+ ${miniProduct.productId}
+ <#if (priceResult.price?default(0) > 0 && miniProduct.requireAmount?default("N") == "N")>
+ <#if "Y" = miniProduct.isVirtual!>
+ ${uiLabelMap.CommonFrom}
+ #if>
+ <#if totalPrice??>
+
+ ${uiLabelMap.ProductAggregatedPrice}:
+
+ <@ofbizCurrency amount=totalPrice isoCode=priceResult.currencyUsed/>
+
+
+ <#else>
+
+ <@ofbizCurrency amount=priceResult.price isoCode=priceResult.currencyUsed/>
+ #if>
+ #if>
+
<#if (miniProduct.introductionDate??) && (nowTimeLong < miniProduct.introductionDate.getTime())>
- <#-- check to see if introductionDate hasn't passed yet -->
- ${uiLabelMap.ProductNotYetAvailable}
+ <#-- check to see if introductionDate hasn't passed yet -->
+ ${uiLabelMap.ProductNotYetAvailable}
<#elseif (miniProduct.salesDiscontinuationDate??) && (nowTimeLong > miniProduct.salesDiscontinuationDate.getTime())>
- <#-- check to see if salesDiscontinuationDate has passed -->
- ${uiLabelMap.ProductNoLongerAvailable}
+ <#-- check to see if salesDiscontinuationDate has passed -->
+ ${uiLabelMap.ProductNoLongerAvailable}
<#elseif miniProduct.isVirtual?default("N") == "Y">
- ${uiLabelMap.OrderChooseVariations}...
+
+
+ ${uiLabelMap.OrderChooseVariations}...
+
+
<#elseif miniProduct.requireAmount?default("N") == "Y">
- ${uiLabelMap.OrderChooseAmount}...
+
+
+ ${uiLabelMap.OrderChooseAmount}...
+
+
<#else>
-
#if>
-
+
#if>
diff --git a/ecommerce/template/catalog/MiniReOrderProds.ftl b/ecommerce/template/catalog/MiniReOrderProds.ftl
index 103265256..5a19bd568 100644
--- a/ecommerce/template/catalog/MiniReOrderProds.ftl
+++ b/ecommerce/template/catalog/MiniReOrderProds.ftl
@@ -17,24 +17,23 @@ specific language governing permissions and limitations
under the License.
-->
<#if reorderProducts?has_content>
-
+
-
- ${uiLabelMap.ProductQuickReorder}...
-
+
+ ${uiLabelMap.ProductQuickReorder}...
+
- <#list reorderProducts as miniProduct>
-
- ${setRequestAttribute("miniProdQuantity", reorderQuantities.get(miniProduct.productId))}
- ${setRequestAttribute("miniProdFormName", "theminireorderprod" + miniProduct_index + "form")}
- ${setRequestAttribute("optProductId", miniProduct.productId)}
- ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
-
- <#if miniProduct_has_next>
-
- #if>
- #list>
+ <#list reorderProducts as miniProduct>
+
+ ${setRequestAttribute("miniProdQuantity", reorderQuantities.get(miniProduct.productId))}
+ ${setRequestAttribute("miniProdFormName", "theminireorderprod" + miniProduct_index + "form")}
+ ${setRequestAttribute("optProductId", miniProduct.productId)}
+ ${screens.render("component://ecommerce/widget/CatalogScreens.xml#miniproductsummary")}
+
+ <#if miniProduct_has_next>
+ #if>
+ #list>
-
+
#if>
diff --git a/ecommerce/template/catalog/PopularTags.ftl b/ecommerce/template/catalog/PopularTags.ftl
index c780b6db3..422016733 100644
--- a/ecommerce/template/catalog/PopularTags.ftl
+++ b/ecommerce/template/catalog/PopularTags.ftl
@@ -27,7 +27,10 @@ under the License.
<#list tagCloudList as tagCloud>
-
${tagCloud.tag}
+
+ ${tagCloud.tag}
+
#list>
diff --git a/ecommerce/template/catalog/ProductCategories.ftl b/ecommerce/template/catalog/ProductCategories.ftl
index 5b4a30e23..5c6a5242d 100644
--- a/ecommerce/template/catalog/ProductCategories.ftl
+++ b/ecommerce/template/catalog/ProductCategories.ftl
@@ -16,194 +16,209 @@
specific language governing permissions and limitations
under the License.
-->
-
-
-
+
+
+
-
-
-
-
- ${uiLabelMap.ProductCategories}
-
-
-
-
+
+
+ ${uiLabelMap.ProductCategories}
+
+
+
+
diff --git a/ecommerce/template/catalog/ProductCategoryLink.ftl b/ecommerce/template/catalog/ProductCategoryLink.ftl
index da4fe4aea..ae459fb66 100644
--- a/ecommerce/template/catalog/ProductCategoryLink.ftl
+++ b/ecommerce/template/catalog/ProductCategoryLink.ftl
@@ -19,29 +19,44 @@ under the License.
<#assign productCategoryLink = requestAttributes.productCategoryLink!/>
<#if productCategoryLink?has_content>
-<#if productCategoryLink.detailSubScreen?has_content>
+ <#if productCategoryLink.detailSubScreen?has_content>
${screens.render(productCategoryLink.detailSubScreen)}
-<#else>
+ <#else>
<#assign titleText = productCategoryLink.titleText!/>
<#assign imageUrl = productCategoryLink.imageUrl!/>
<#assign detailText = productCategoryLink.detailText!/>
<#if productCategoryLink.linkTypeEnumId == "PCLT_SEARCH_PARAM">
- <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "keywordsearch?" + productCategoryLink.linkInfo)/>
+ <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(
+ request, response, "keywordsearch?" + productCategoryLink.linkInfo)/>
<#elseif productCategoryLink.linkTypeEnumId == "PCLT_ABS_URL">
<#assign linkUrl = productCategoryLink.linkInfo!/>
<#elseif productCategoryLink.linkTypeEnumId == "PCLT_CAT_ID">
- <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "category/~category_id=" + productCategoryLink.linkInfo) + "/~pcategory=" + productCategoryId/>
- <#assign linkProductCategory = delegator.findOne("ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryLink.linkInfo), true)/>
- <#assign linkCategoryContentWrapper = Static["org.apache.ofbiz.product.category.CategoryContentWrapper"].makeCategoryContentWrapper(linkProductCategory, request)/>
- <#assign titleText = productCategoryLink.titleText?default(linkCategoryContentWrapper.get("CATEGORY_NAME", "html"))!/>
- <#assign imageUrl = productCategoryLink.imageUrl?default(linkCategoryContentWrapper.get("CATEGORY_IMAGE_URL", "url"))!/>
- <#assign detailText = productCategoryLink.detailText?default(linkCategoryContentWrapper.get("DESCRIPTION", "html"))!/>
+ <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(
+ request, response, "category/~category_id=" + productCategoryLink.linkInfo) +
+ "/~pcategory=" + productCategoryId/>
+ <#assign linkProductCategory = delegator.findOne(
+ "ProductCategory", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap(
+ "productCategoryId", productCategoryLink.linkInfo), true)/>
+ <#assign linkCategoryContentWrapper =
+ Static["org.apache.ofbiz.product.category.CategoryContentWrapper"]
+ .makeCategoryContentWrapper(linkProductCategory, request)/>
+ <#assign titleText = productCategoryLink.titleText?default(
+ linkCategoryContentWrapper.get("CATEGORY_NAME", "html"))!/>
+ <#assign imageUrl = productCategoryLink.imageUrl?default(
+ linkCategoryContentWrapper.get("CATEGORY_IMAGE_URL", "url"))!/>
+ <#assign detailText = productCategoryLink.detailText?default(
+ linkCategoryContentWrapper.get("DESCRIPTION", "html"))!/>
#if>
<#if imageUrl?string?has_content>
-
+
#if>
<#if titleText?has_content>
${titleText}
@@ -50,5 +65,5 @@ under the License.
${detailText}
#if>
-#if>
+ #if>
#if>
diff --git a/ecommerce/template/catalog/ProductDetail.ftl b/ecommerce/template/catalog/ProductDetail.ftl
index d3cd73d98..b550b4d5f 100644
--- a/ecommerce/template/catalog/ProductDetail.ftl
+++ b/ecommerce/template/catalog/ProductDetail.ftl
@@ -335,584 +335,766 @@ $(function(){
#macro>
- <#assign productAdditionalImage1 = productContentWrapper.get("ADDITIONAL_IMAGE_1", "url")! />
- <#assign productAdditionalImage2 = productContentWrapper.get("ADDITIONAL_IMAGE_2", "url")! />
- <#assign productAdditionalImage3 = productContentWrapper.get("ADDITIONAL_IMAGE_3", "url")! />
- <#assign productAdditionalImage4 = productContentWrapper.get("ADDITIONAL_IMAGE_4", "url")! />
-
- <#-- Category next/previous -->
- <#if category??>
-
+ <#assign productAdditionalImage1 = productContentWrapper.get("ADDITIONAL_IMAGE_1", "url")! />
+ <#assign productAdditionalImage2 = productContentWrapper.get("ADDITIONAL_IMAGE_2", "url")! />
+ <#assign productAdditionalImage3 = productContentWrapper.get("ADDITIONAL_IMAGE_3", "url")! />
+ <#assign productAdditionalImage4 = productContentWrapper.get("ADDITIONAL_IMAGE_4", "url")! />
+
+ <#-- Category next/previous -->
+ <#if category??>
+