From 06caedf26affb897498fe0f648ea91e31196b69a Mon Sep 17 00:00:00 2001 From: Pranay Pandey Date: Sat, 17 Sep 2016 07:17:15 +0000 Subject: [PATCH] Improved: E-commerce : FTL formatting. (OFBIZ-7949) For improved FTL code readability. Here is the first patch for the effort. There are still files which are required to be formatted. Thanks: Vaibhav Jain for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1761135 13f79535-47bb-0310-9956-ffa450edef68 --- ebay/template/find/EbayAdvancedSearch.ftl | 380 +++-- ebay/template/find/EbayExportLink.ftl | 14 +- ebay/template/find/EbayKeywordSearch.ftl | 33 +- ebay/template/find/ProductsExportToEbay.ftl | 382 ++--- .../template/blog/BlogContentAltLink.ftl | 4 +- ecommerce/template/blog/Blogs.ftl | 4 +- ecommerce/template/blog/TextImage.ftl | 124 +- ecommerce/template/cart/MicroCart.ftl | 89 +- ecommerce/template/cart/MiniPromoText.ftl | 50 +- ecommerce/template/cart/ShowCart.ftl | 1018 +++++++------ ecommerce/template/cart/UpdateCart.ftl | 123 +- ecommerce/template/catalog/AdvancedSearch.ftl | 176 ++- .../template/catalog/AjaxBreadCrumbs.ftl | 88 +- ecommerce/template/catalog/ChooseCatalog.ftl | 42 +- .../template/catalog/ConfigProductDetail.ftl | 1114 ++++++++------- ecommerce/template/catalog/DetailImage.ftl | 14 +- .../template/catalog/LastViewedProducts.ftl | 18 +- .../catalog/LayeredCategoryDetail.ftl | 151 +- ecommerce/template/catalog/LayeredNavBar.ftl | 32 +- ecommerce/template/catalog/MiniAssocProds.ftl | 25 +- .../catalog/MiniLastProductSearches.ftl | 67 +- .../catalog/MiniLastViewedCategories.ftl | 38 +- .../catalog/MiniLastViewedProducts.ftl | 18 +- .../template/catalog/MiniProductSummary.ftl | 90 +- .../template/catalog/MiniReOrderProds.ftl | 31 +- ecommerce/template/catalog/PopularTags.ftl | 5 +- .../template/catalog/ProductCategories.ftl | 335 ++--- .../template/catalog/ProductCategoryLink.ftl | 37 +- ecommerce/template/catalog/ProductDetail.ftl | 1258 ++++++++++------- ecommerce/template/catalog/ProductReview.ftl | 10 +- .../catalog/ShowBestSellingCategory.ftl | 148 +- .../template/catalog/SideDeepCategory.ftl | 86 +- ecommerce/template/catalog/TellAFriend.ftl | 82 +- ecommerce/template/content/BlogLib.ftl | 45 +- .../template/content/ContentCategories.ftl | 7 +- ecommerce/template/content/MiniPoll.ftl | 7 +- ecommerce/template/content/RecentlyViewed.ftl | 6 +- ecommerce/template/content/SearchContent.ftl | 122 +- .../template/content/ShowContentTree.ftl | 123 +- ecommerce/template/content/TplMbContent.ftl | 28 +- ecommerce/template/content/ViewContent.ftl | 182 +-- ecommerce/template/customer/AnonContactus.ftl | 134 +- .../template/customer/ChangePassword.ftl | 15 +- .../template/customer/CustomerSurvey.ftl | 27 +- .../template/customer/DigitalProductEdit.ftl | 146 +- .../template/customer/DigitalProductList.ftl | 101 +- .../template/customer/EditContactMech.ftl | 283 ++-- .../template/customer/EditCreditCard.ftl | 245 ++-- .../template/customer/EditEftAccount.ftl | 241 ++-- ecommerce/template/customer/EditGiftCard.ftl | 192 +-- ecommerce/template/customer/EditPerson.ftl | 320 +++-- .../template/customer/FinAccountDetail.ftl | 135 +- .../template/customer/GiftCardBalance.ftl | 38 +- ecommerce/template/customer/GiftCardLink.ftl | 37 +- ecommerce/template/customer/MessageDetail.ftl | 100 +- ecommerce/template/customer/MessageList.ftl | 134 +- .../customer/MiniSignUpForContactList.ftl | 54 +- ecommerce/template/customer/NewCustomer.ftl | 388 ++--- ecommerce/template/customer/NewMsg.ftl | 176 +-- .../customer/SerializedInventorySummary.ftl | 96 +- .../template/customer/SubscriptionSummary.ftl | 95 +- .../customer/profile/EditBillToAddress.ftl | 79 +- .../customer/profile/EditPostalAddress.ftl | 138 +- .../template/customer/profile/EditProfile.ftl | 86 +- .../customer/profile/EditShipToAddress.ftl | 68 +- .../customer/profile/ManageAddress.ftl | 365 ++--- .../template/customer/profile/NewCustomer.ftl | 361 +++-- .../template/customer/profile/ViewProfile.ftl | 94 +- ecommerce/template/data/Content.ftl | 27 +- ecommerce/template/data/Topic.ftl | 24 +- ecommerce/template/data/Tree.ftl | 25 +- .../email/ContactListEmailTemplate.ftl | 36 +- .../email/ContactListSubscribeEmail.ftl | 19 +- .../email/ContactListUnsubscribeEmail.ftl | 2 - .../ContactListUnsubscribeVerifyEmail.ftl | 42 +- .../template/email/ContactListVerifyEmail.ftl | 29 +- ecommerce/template/email/ContactUsEmail.ftl | 14 +- ecommerce/template/email/EmailPayRetry.ftl | 13 +- ecommerce/template/email/GiftCardPurchase.ftl | 11 +- ecommerce/template/email/GiftCardReload.ftl | 12 +- ecommerce/template/email/OrderNoticeEmail.ftl | 204 ++- ecommerce/template/email/ReturnAccept.ftl | 18 +- .../email/ShipmentNotificationEmail.ftl | 88 +- ecommerce/template/email/TellAFriend.ftl | 14 +- ecommerce/template/forum/BlogLib.ftl | 306 ++-- ecommerce/template/forum/ForumPaging.ftl | 54 +- ecommerce/template/forum/Forums.ftl | 11 +- ecommerce/template/forum/MessageDisplay.ftl | 74 +- ecommerce/template/forum/ShowForum.ftl | 2 +- .../template/forum/ShowForumResponse.ftl | 251 ++-- .../template/forum/ViewComboResponse.ftl | 62 +- ecommerce/template/includes/Footer.ftl | 35 +- ecommerce/template/includes/Header.ftl | 135 +- ecommerce/template/includes/HeaderHead.ftl | 47 +- ecommerce/template/includes/Language.ftl | 8 +- .../template/order/AnonymousCheckoutLinks.ftl | 76 +- ecommerce/template/order/AnonymousTrail.ftl | 16 +- ecommerce/template/order/BillSettings.ftl | 585 ++++---- ecommerce/template/order/CcInfo.ftl | 6 +- ecommerce/template/order/CheckoutReview.ftl | 45 +- .../order/CheckoutShippingOptions.ftl | 352 +++-- ecommerce/template/order/CustSettings.ftl | 136 +- ecommerce/template/order/EftInfo.ftl | 80 +- ecommerce/template/order/GcInfo.ftl | 98 +- ecommerce/template/order/GenericAddress.ftl | 84 +- .../template/order/OnePageCheckoutProcess.ftl | 1060 ++++++++------ ecommerce/template/order/OptionSettings.ftl | 143 +- ecommerce/template/order/OrderHeader.ftl | 583 ++++---- ecommerce/template/order/OrderHistory.ftl | 17 +- ecommerce/template/order/OrderItems.ftl | 549 +++---- ecommerce/template/order/OrderStatus.ftl | 1 - 111 files changed, 9179 insertions(+), 6969 deletions(-) diff --git a/ebay/template/find/EbayAdvancedSearch.ftl b/ebay/template/find/EbayAdvancedSearch.ftl index f6f54e372..1b34b08dd 100644 --- a/ebay/template/find/EbayAdvancedSearch.ftl +++ b/ebay/template/find/EbayAdvancedSearch.ftl @@ -18,47 +18,51 @@ under the License. -->

${uiLabelMap.ProductAdvancedSearchInCategory}

-
+
@@ -72,9 +76,17 @@ under the License.
- "${(searchCategory.description)!}" [${(searchCategory.productCategoryId)!}] ${uiLabelMap.ProductIncludeSubCategories} - - + + "${(searchCategory.description)!}"[${(searchCategory.productCategoryId)!}] + ${uiLabelMap.ProductIncludeSubCategories} + +
@@ -84,19 +96,27 @@ under the License. ${uiLabelMap.ProductProductStore}: - <#if ebayConfigList?has_content> <#list ebayConfigList as ebayConfig> - <#assign productStore = delegator.findOne("ProductStore", {"productStoreId" : ebayConfig.productStoreId}, true) /> + <#assign productStore = delegator.findOne("ProductStore", + {"productStoreId" : ebayConfig.productStoreId}, true) /> <#assign displayDesc = productStore.storeName?default("${uiLabelMap.ProductNoDescription}") /> <#if (18 < displayDesc?length)> - <#assign displayDesc = displayDesc[0..15] + "..."> - - - + <#assign displayDesc = displayDesc[0..15] + "..."> + + + - + @@ -105,16 +125,23 @@ under the License.
- <#list prodCatalogList as prodCatalog> <#assign displayDesc = prodCatalog.catalogName?default("${uiLabelMap.ProductNoDescription}") /> <#if (18 < displayDesc?length)> <#assign displayDesc = displayDesc[0..15] + "..."> - + - +
@@ -128,23 +155,41 @@ under the License. <#else> - <@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID!}" formName="advToKeywordSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId" fieldFormName="LookupProductCategory"/> + <@htmlTemplate.lookupField value="${requestParameters.SEARCH_CATEGORY_ID!}" + formName="advToKeywordSearchform" name="SEARCH_CATEGORY_ID" id="searchCategoryId" + fieldFormName="LookupProductCategory"/> ${uiLabelMap.ProductIncludeSubCategories} - - - - - + + + + +
@@ -155,7 +200,8 @@ under the License.
- +
@@ -165,7 +211,8 @@ under the License.
- +
@@ -175,9 +222,17 @@ under the License.
-   - - +   + +
@@ -187,22 +242,51 @@ under the License.
-   - - - +   + + +
-   - - - +   + + +
-   - - - +   + + +
@@ -212,22 +296,52 @@ under the License.
-   - - - +   + + +
-   - - - +   + + +
-   - - - +   + + +
@@ -237,22 +351,33 @@ under the License.
-   - - - +   + + +
-   - - - +   + + +
-   - - - +   + + +
@@ -262,13 +387,15 @@ under the License.
-   -   +   +  
<#list productFeatureTypeIdsOrdered as productFeatureTypeId> - <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId) /> + <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap( + "productFeatureTypeId", productFeatureTypeId) /> <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true) /> <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId] /> @@ -280,7 +407,10 @@ under the License.
@@ -296,7 +426,10 @@ under the License. @@ -312,7 +445,9 @@ under the License. - + @@ -321,8 +456,12 @@ under the License. - - + + @@ -331,7 +470,9 @@ under the License. ${uiLabelMap.ProductPrioritizeProductsInCategory}: - <@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID!}" formName="advToKeywordSearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID" fieldFormName="LookupProductCategory"/> + <@htmlTemplate.lookupField value="${requestParameters.PRIORITIZE_CATEGORY_ID!}" + formName="advToKeywordSearchform" name="PRIORITIZE_CATEGORY_ID" id="PRIORITIZE_CATEGORY_ID" + fieldFormName="LookupProductCategory"/> @@ -342,7 +483,10 @@ under the License. @@ -352,9 +496,16 @@ under the License. ${uiLabelMap.ProductGoodIdentificationValue}: - - - + + + <#if searchConstraintStrings?has_content> @@ -368,15 +519,20 @@ under the License. ${uiLabelMap.CommonSortedBy}:${searchSortOrderString}
- - + +
-
+
${uiLabelMap.CommonFind} diff --git a/ebay/template/find/EbayExportLink.ftl b/ebay/template/find/EbayExportLink.ftl index 5caa45b04..a41b0df4c 100644 --- a/ebay/template/find/EbayExportLink.ftl +++ b/ebay/template/find/EbayExportLink.ftl @@ -29,11 +29,11 @@ under the License. <#if productIds?has_content> - - - - -
- ${uiLabelMap.EbayExportToEbay} -
+ + + + +
+ ${uiLabelMap.EbayExportToEbay} +
\ No newline at end of file diff --git a/ebay/template/find/EbayKeywordSearch.ftl b/ebay/template/find/EbayKeywordSearch.ftl index d3a816c2e..62660e583 100644 --- a/ebay/template/find/EbayKeywordSearch.ftl +++ b/ebay/template/find/EbayKeywordSearch.ftl @@ -22,10 +22,17 @@ under the License.
<#list searchConstraintStrings as searchConstraintString> -
X${searchConstraintString}
+
+ X + ${searchConstraintString} +
${uiLabelMap.CommonSortedBy}:${searchSortOrderString} -
${uiLabelMap.CommonRefineSearch}
+
+ ${uiLabelMap.CommonRefineSearch} +
<#if !productIds?has_content>

${uiLabelMap.ProductNoResultsFound}.

@@ -52,22 +59,29 @@ under the License. <#macro paginationPanel>
-
${uiLabelMap.ProductProduct}
+
+ + ${uiLabelMap.ProductProduct} +
<#if 0 < viewIndex?int> - ${uiLabelMap.CommonPrevious} | + ${uiLabelMap.CommonPrevious} | <#if 0 < listSize?int> ${lowIndex+1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} <#if highIndex?int < listSize?int> - | ${uiLabelMap.CommonNext} + | ${uiLabelMap.CommonNext} <#if paging == "Y"> - ${uiLabelMap.CommonPagingOff} + ${uiLabelMap.CommonPagingOff} <#else> - ${uiLabelMap.CommonPagingOn} + ${uiLabelMap.CommonPagingOn}
@@ -87,7 +101,8 @@ under the License. class="alternate-row"> - [${productId}] ${(product.internalName)!} + [${productId}] ${(product.internalName)!} @@ -97,4 +112,4 @@ under the License. <@paginationPanel />
-
\ No newline at end of file + diff --git a/ebay/template/find/ProductsExportToEbay.ftl b/ebay/template/find/ProductsExportToEbay.ftl index 2611086bc..aec220aae 100644 --- a/ebay/template/find/ProductsExportToEbay.ftl +++ b/ebay/template/find/ProductsExportToEbay.ftl @@ -17,10 +17,11 @@ specific language governing permissions and limitations under the License. -->
- - - - - - - - - <#if hideExportOptions?has_content && hideExportOptions == "N"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
${uiLabelMap.FormFieldTitle_ebayCategory}  - - -
${uiLabelMap.CommonCountry}  - -
${uiLabelMap.FormFieldTitle_location}  - -
${uiLabelMap.FormFieldTitle_listingDuration}  - -
${uiLabelMap.FormFieldTitle_startPrice}  - -
${uiLabelMap.CommonQuantity}  - -
${uiLabelMap.CommonWebsite}  - -
${uiLabelMap.FormFieldTitle_webSiteUrl}  - -
${uiLabelMap.FormFieldTitle_paymentMethodsAccepted}
 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${uiLabelMap.FormFieldTitle_paymentPayPal}checked="checked" />${uiLabelMap.FormFieldTitle_paymentVisaMC}checked="checked" />${uiLabelMap.FormFieldTitle_paymentAmEx}checked="checked" />${uiLabelMap.FormFieldTitle_paymentDiscover}checked="checked" />
${uiLabelMap.FormFieldTitle_paymentMOCC}checked="checked" />${uiLabelMap.FormFieldTitle_paymentPersonalCheck}checked="checked" />${uiLabelMap.FormFieldTitle_paymentCCAccepted}checked="checked" />${uiLabelMap.FormFieldTitle_paymentCashInPerson}checked="checked" />
${uiLabelMap.FormFieldTitle_paymentCashOnPickup}checked="checked" />${uiLabelMap.FormFieldTitle_paymentCOD}checked="checked" />${uiLabelMap.FormFieldTitle_paymentCODPrePayDelivery}checked="checked" />${uiLabelMap.FormFieldTitle_paymentMoneyXferAccepted}checked="checked" />
-
${uiLabelMap.FormFieldTitle_payPalEmail}  - -
${uiLabelMap.FormFieldTitle_customXml}  - -
  - -
+ + + +
${uiLabelMap.FormFieldTitle_ebayCategory}  + +
- - + + + + <#if hideExportOptions?has_content && hideExportOptions == "N"> + + ${uiLabelMap.CommonCountry} +   + + + + + + ${uiLabelMap.FormFieldTitle_location} +   + + + + + + ${uiLabelMap.FormFieldTitle_listingDuration} +   + + + + + + ${uiLabelMap.FormFieldTitle_startPrice} +   + + + + + + ${uiLabelMap.CommonQuantity} +   + + + + + + ${uiLabelMap.CommonWebsite} +   + + + + + + ${uiLabelMap.FormFieldTitle_webSiteUrl} +   + + + + + + ${uiLabelMap.FormFieldTitle_paymentMethodsAccepted} + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
${uiLabelMap.FormFieldTitle_paymentPayPal} + checked="checked"/> + ${uiLabelMap.FormFieldTitle_paymentVisaMC} + checked="checked"/> + ${uiLabelMap.FormFieldTitle_paymentAmEx} + checked="checked"/> + ${uiLabelMap.FormFieldTitle_paymentDiscover} + checked="checked"/> +
${uiLabelMap.FormFieldTitle_paymentMOCC} + checked="checked"/> + ${uiLabelMap.FormFieldTitle_paymentPersonalCheck} + checked="checked"/> + ${uiLabelMap.FormFieldTitle_paymentCCAccepted} + checked="checked"/> + ${uiLabelMap.FormFieldTitle_paymentCashInPerson} + checked="checked"/> +
${uiLabelMap.FormFieldTitle_paymentCashOnPickup} + checked="checked"/> + ${uiLabelMap.FormFieldTitle_paymentCOD} + checked="checked"/> + + ${uiLabelMap.FormFieldTitle_paymentCODPrePayDelivery} + + checked="checked"/> + ${uiLabelMap.FormFieldTitle_paymentMoneyXferAccepted} + checked="checked"/> +
+ + + + ${uiLabelMap.FormFieldTitle_payPalEmail} +   + + + + + + ${uiLabelMap.FormFieldTitle_customXml} +   + + + + + +   + + + + + + + +
diff --git a/ecommerce/template/blog/BlogContentAltLink.ftl b/ecommerce/template/blog/BlogContentAltLink.ftl index 7d9b5d4af..c2d27ee93 100644 --- a/ecommerce/template/blog/BlogContentAltLink.ftl +++ b/ecommerce/template/blog/BlogContentAltLink.ftl @@ -17,5 +17,7 @@ specific language governing permissions and limitations under the License. --> -${blog.contentName} [${blog.contentId}] + + ${blog.contentName} [${blog.contentId}] + diff --git a/ecommerce/template/blog/Blogs.ftl b/ecommerce/template/blog/Blogs.ftl index 9df58d050..9ccb6e26d 100644 --- a/ecommerce/template/blog/Blogs.ftl +++ b/ecommerce/template/blog/Blogs.ftl @@ -28,7 +28,9 @@ under the License. diff --git a/ecommerce/template/blog/TextImage.ftl b/ecommerce/template/blog/TextImage.ftl index c827971cf..f5f6940a7 100644 --- a/ecommerce/template/blog/TextImage.ftl +++ b/ecommerce/template/blog/TextImage.ftl @@ -26,30 +26,31 @@ <#-- This code sets the checkboxes based on existing data --> <#assign text_check=""/> <#assign img_check=""/> -<#if (imageContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED") || drMimeTypeId?default("")?starts_with("image"))> - <#assign img_check="checked='checked'"/> +<#if (imageContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED") + || drMimeTypeId?default("")?starts_with("image"))> + <#assign img_check="checked='checked'"/> <#if (textContent?has_content && drMimeTypeId?default("")?starts_with("text")) - || (textContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED")) - || !img_check?has_content> - <#assign text_check="checked='checked'"/> + || (textContent?has_content && (drDataTemplateTypeId?default("") == "SCREEN_COMBINED")) + || !img_check?has_content> + <#assign text_check="checked='checked'"/> <#-- Sets one of the two templates --> <#assign topleft_check=""/> <#assign topcenter_check=""/> <#if view.drDataResourceId?has_content && view.drDataResourceId == "BLOG_TPL_TOPLEFT"> - <#assign topleft_check="checked='checked'"/> + <#assign topleft_check="checked='checked'"/> <#else> - <#assign topcenter_check="checked='checked'"/> + <#assign topcenter_check="checked='checked'"/> <#-- Fills in existing text --> <#assign textData=""/> <#if electronicText?has_content > - <#if electronicText.textData?has_content > - <#assign textData=electronicText.textData/> - + <#if electronicText.textData?has_content > + <#assign textData=electronicText.textData/> + <#-- Stores the ids for existing data --> @@ -57,20 +58,20 @@ <#assign textDataResourceId=""/> <#if textContent?has_content > - <#assign textContentId=textContent.contentId!/> - <#assign textDataResourceId=textContent.drDataResourceId!/> + <#assign textContentId=textContent.contentId!/> + <#assign textDataResourceId=textContent.drDataResourceId!/> <#if textElectronicText?has_content && textElectronicText.textData?has_content > - <#assign textData=textElectronicText.textData/> + <#assign textData=textElectronicText.textData/> <#assign imageContentId=""/> <#assign imageDataResourceId=""/> <#if imageContent?has_content > - <#assign imageContentId=imageContent.contentId!/> - <#assign imageDataResourceId=imageContent.drDataResourceId!/> + <#assign imageContentId=imageContent.contentId!/> + <#assign imageDataResourceId=imageContent.drDataResourceId!/> @@ -79,45 +80,56 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + +
- -   -
Text
-
  - - - -
- -   -
Image
-
  -
Existing file name: <#if imageContent?has_content && imageContent.drObjectInfo?has_content>${imageContent.drObjectInfo}
-
- - <#-- - Force: - --> -
- Top-left: -  Top-center: -
-   -
+ +   +
+ + Text +
+
  + + + +
+ +   +
+ Image +
+
  +
+ Existing file name: + <#if imageContent?has_content && imageContent.drObjectInfo?has_content> + ${imageContent.drObjectInfo} + +
+
+ + <#-- + Force: + --> +
+ Top-left:  + Top-center: +
+   +
diff --git a/ecommerce/template/cart/MicroCart.ftl b/ecommerce/template/cart/MicroCart.ftl index e04488666..bbce9cebd 100644 --- a/ecommerce/template/cart/MicroCart.ftl +++ b/ecommerce/template/cart/MicroCart.ftl @@ -18,41 +18,66 @@ under the License. --> <#assign shoppingCart = sessionAttributes.shoppingCart!> <#if shoppingCart?has_content> - <#assign shoppingCartSize = shoppingCart.size()> + <#assign shoppingCartSize = shoppingCart.size()> <#else> - <#assign shoppingCartSize = 0> + <#assign shoppingCartSize = 0>
- <#if (shoppingCartSize > 0)> -

- ${uiLabelMap.EcommerceCartHas} ${shoppingCart.getTotalQuantity()} - <#if shoppingCart.getTotalQuantity() == 1>${uiLabelMap.OrderItem}<#else>${uiLabelMap.OrderItems}, - <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/> -

- - <#else> -

${uiLabelMap.OrderShoppingCartEmpty}

- -
diff --git a/ecommerce/template/cart/MiniPromoText.ftl b/ecommerce/template/cart/MiniPromoText.ftl index 0b1588ecc..fecb5b7fe 100644 --- a/ecommerce/template/cart/MiniPromoText.ftl +++ b/ecommerce/template/cart/MiniPromoText.ftl @@ -18,29 +18,31 @@ under the License. --> <#if showPromoText> -
-
-
    -
  • ${uiLabelMap.OrderSpecialOffers}
  • -
-
-
- -
- <#-- show promotions text --> - +
+
+
    +
  • ${uiLabelMap.OrderSpecialOffers}
  • +
+
-
+
+ <#-- show promotions text --> + +
+
diff --git a/ecommerce/template/cart/ShowCart.ftl b/ecommerce/template/cart/ShowCart.ftl index 601ee75d3..232d5320d 100644 --- a/ecommerce/template/cart/ShowCart.ftl +++ b/ecommerce/template/cart/ShowCart.ftl @@ -17,514 +17,662 @@ specific language governing permissions and limitations under the License. --> -<#assign fixedAssetExist = shoppingCart.containAnyWorkEffortCartItems() /> <#-- change display format when rental items exist in the shoppingcart --> +<#assign fixedAssetExist = shoppingCart.containAnyWorkEffortCartItems() /> +<#-- change display format when rental items exist in the shoppingcart -->
-

- <#if ((sessionAttributes.lastViewedProducts)?has_content && sessionAttributes.lastViewedProducts?size > 0)> - <#assign continueLink = "/product?product_id=" + sessionAttributes.lastViewedProducts.get(0) /> - <#else> - <#assign continueLink = "/main" /> - - ${uiLabelMap.EcommerceContinueShopping} - <#if (shoppingCartSize > 0)>${uiLabelMap.OrderCheckout}<#else>${uiLabelMap.OrderCheckout} - ${uiLabelMap.CommonQuickAdd} -

+

+ <#if ((sessionAttributes.lastViewedProducts)?has_content && sessionAttributes.lastViewedProducts?size > 0)> + <#assign continueLink = "/product?product_id=" + sessionAttributes.lastViewedProducts.get(0) /> + <#else> + <#assign continueLink = "/main" /> + + + ${uiLabelMap.EcommerceContinueShopping} + + <#if (shoppingCartSize > 0)> + + ${uiLabelMap.OrderCheckout} + + <#else> + + ${uiLabelMap.OrderCheckout} + + + ${uiLabelMap.CommonQuickAdd} +

+
-
-
-
- ${uiLabelMap.EcommerceProductNumber} - <#-- check if rental data present insert extra fields in Quick Add--> - <#if (product?? && product.getString("productTypeId") == "ASSET_USAGE") || (product?? && product.getString("productTypeId") == "ASSET_USAGE_OUT_IN")> - ${uiLabelMap.EcommerceStartDate}: - ${uiLabelMap.EcommerceLength}: -
-
-   ${uiLabelMap.OrderNbrPersons}: - - ${uiLabelMap.CommonQuantity}: - - <#-- [${uiLabelMap.OrderAddToCart}] --> - - -
+
+
+ ${uiLabelMap.EcommerceProductNumber} + + <#-- check if rental data present insert extra fields in Quick Add--> + <#if (product?? && product.getString("productTypeId") == "ASSET_USAGE" + ) || (product?? && product.getString("productTypeId") == "ASSET_USAGE_OUT_IN")> + ${uiLabelMap.EcommerceStartDate}: + + ${uiLabelMap.EcommerceLength}: + +
+
+   ${uiLabelMap.OrderNbrPersons}: + + + ${uiLabelMap.CommonQuantity}: + + + <#-- + [${uiLabelMap.OrderAddToCart}] + --> + +
+
+
-
-
- <#--[${uiLabelMap.EcommerceContinueShopping}]--> - <#if (shoppingCartSize > 0)> - ${uiLabelMap.EcommerceRecalculateCart} - ${uiLabelMap.EcommerceEmptyCart} - ${uiLabelMap.EcommerceRemoveSelected} - <#else> - ${uiLabelMap.EcommerceRecalculateCart} - ${uiLabelMap.EcommerceEmptyCart} - ${uiLabelMap.EcommerceRemoveSelected} - - <#if (shoppingCartSize > 0)>${uiLabelMap.OrderCheckout}<#else>${uiLabelMap.OrderCheckout} -
-
-
-

 ${uiLabelMap.OrderShoppingCart}

+
+ <#-- + [${uiLabelMap.EcommerceContinueShopping}] + --> + <#if (shoppingCartSize > 0)> + + ${uiLabelMap.EcommerceRecalculateCart} + + + ${uiLabelMap.EcommerceEmptyCart} + + + ${uiLabelMap.EcommerceRemoveSelected} + + <#else> + ${uiLabelMap.EcommerceRecalculateCart} + ${uiLabelMap.EcommerceEmptyCart} + ${uiLabelMap.EcommerceRemoveSelected} + + <#if (shoppingCartSize > 0)> + + ${uiLabelMap.OrderCheckout} + + <#else> + ${uiLabelMap.OrderCheckout} + +
-
- - <#if (shoppingCartSize > 0)> -
-
- - - - - - - <#if asslGiftWraps?has_content && productStore.showCheckoutGiftOptions! != "N">> - - - <#if fixedAssetExist == true> - - <#else> - - - - - - - - - - <#assign itemsFromList = false /> - <#assign promoItems = false /> - <#list shoppingCart.items() as cartLine> - - <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine) /> - <#assign lineOptionalFeatures = cartLine.getOptionalProductFeatures() /> - <#-- show adjustment info --> - <#list cartLine.getAdjustments() as cartLineAdjustment> - - - - -
${uiLabelMap.OrderProduct} - - <#else> -   - - - - - - - - - -
- ${uiLabelMap.EcommerceStartDate} -- ${uiLabelMap.EcommerceNbrOfDays} -
- ${uiLabelMap.EcommerceNbrOfPersons} -- ${uiLabelMap.CommonQuantity} -
-
${uiLabelMap.CommonQuantity}${uiLabelMap.EcommerceUnitPrice}${uiLabelMap.EcommerceAdjustments}${uiLabelMap.EcommerceItemTotal}
- <#if cartLine.getShoppingListId()??> - <#assign itemsFromList = true /> - L   - <#elseif cartLine.getIsPromo()> - <#assign promoItems = true /> - P   +
+

 ${uiLabelMap.OrderShoppingCart}

+ +
+ <#if (shoppingCartSize > 0)> + +
+ + + + + + + <#if asslGiftWraps?has_content && productStore.showCheckoutGiftOptions! != "N">> + - - + <#else> + + + + + + + + + + <#assign itemsFromList = false /> + <#assign promoItems = false /> + <#list shoppingCart.items() as cartLine> + <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine) /> + <#assign lineOptionalFeatures = cartLine.getOptionalProductFeatures() /> + <#-- show adjustment info --> + <#list cartLine.getAdjustments() as cartLineAdjustment> + + + + + + + + --> + + - <#-- gift wrap option --> - <#assign showNoGiftWrapOptions = false /> - - <#-- end gift wrap option --> + <#-- gift wrap option --> + <#assign showNoGiftWrapOptions = false /> + + <#-- end gift wrap option --> -
${uiLabelMap.OrderProduct} + <#else> -   +   - <#if cartLine.getProductId()??> - <#-- product item --> - <#-- start code to display a small image of the product --> - <#if cartLine.getParentProductId()??> - <#assign parentProductId = cartLine.getParentProductId() /> + <#if fixedAssetExist == true> + + + + + + + + + + +
- ${uiLabelMap.EcommerceStartDate} -- ${uiLabelMap.EcommerceNbrOfDays} -
- ${uiLabelMap.EcommerceNbrOfPersons} -- ${uiLabelMap.CommonQuantity} -
+
${uiLabelMap.CommonQuantity}${uiLabelMap.EcommerceUnitPrice}${uiLabelMap.EcommerceAdjustments}${uiLabelMap.EcommerceItemTotal} + +
+ <#if cartLine.getShoppingListId()??> + <#assign itemsFromList = true /> + L   + <#elseif cartLine.getIsPromo()> + <#assign promoItems = true /> + P   <#else> - <#assign parentProductId = cartLine.getProductId() /> +   - <#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 smallImageUrl?string?has_content> - - Product Image - - - <#-- 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()} -
- +
+ <#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() /> + + <#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 smallImageUrl?string?has_content> + + Product Image + + + <#-- 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()} +
+ + - - <#-- 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}) + + + <#else> + <#-- this is a non-product item --> + ${cartLine.getItemTypeDescription()!}: ${cartLine.getName()!} - <#else> - <#-- this is a non-product item --> - ${cartLine.getItemTypeDescription()!}: ${cartLine.getName()!} - - <#assign attrs = cartLine.getOrderItemAttributes()/> - <#if attrs?has_content> - <#assign attrEntries = attrs.entrySet()/> -
    - <#list attrEntries as attrEntry> -
  • + <#assign attrs = cartLine.getOrderItemAttributes()/> + <#if attrs?has_content> + <#assign attrEntries = attrs.entrySet()/> +
      + <#list attrEntries as attrEntry> +
    • ${attrEntry.getKey()} : ${attrEntry.getValue()} +
    • + +
    + + <#if (cartLine.getIsPromo() && cartLine.getAlternativeOptionProductIds()?has_content)> + <#-- Show alternate gifts if there are any... --> +
    ${uiLabelMap.OrderChooseFollowingForGift}:
    + + <#-- 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)}
    • - -
    - - <#if (cartLine.getIsPromo() && cartLine.getAlternativeOptionProductIds()?has_content)> - <#-- Show alternate gifts if there are any... --> -
    ${uiLabelMap.OrderChooseFollowingForGift}:
    - - <#-- 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)}
    • - -
    - --> - -
- <#assign giftWrapOption = lineOptionalFeatures.GIFT_WRAP! /> - <#assign selectedOption = cartLine.getAdditionalProductFeatureAndAppl("GIFT_WRAP")! /> - <#if giftWrapOption?has_content> - - <#elseif showNoGiftWrapOptions> - - <#else> -   - - + <#assign giftWrapOption = lineOptionalFeatures.GIFT_WRAP! /> + <#assign selectedOption = cartLine.getAdditionalProductFeatureAndAppl("GIFT_WRAP")! /> + <#if giftWrapOption?has_content> + + <#elseif showNoGiftWrapOptions> + + <#else> +   + + - <#if cartLine.getIsPromo() || cartLine.getShoppingListId()??> - <#if fixedAssetExist == true> + + <#if cartLine.getIsPromo() || cartLine.getShoppingListId()??> + <#if fixedAssetExist == true> <#if cartLine.getReservStart()??> - - - - - - - - - - + + + + + + <#list assocProducts as productAssoc> - + - ${setRequestAttribute("optProductId", productAssoc.productIdTo)} - ${setRequestAttribute("listIndex", listIndex)} - ${setRequestAttribute("formNamePrefix", formNamePrefix)} + + - ${productAssoc.reason!} + + + + ${setRequestAttribute("optProductId", productAssoc.productIdTo)} + ${setRequestAttribute("listIndex", listIndex)} + ${setRequestAttribute("formNamePrefix", formNamePrefix)} <#if targetRequestName?has_content> - ${setRequestAttribute("targetRequestName", targetRequestName)} + ${setRequestAttribute("targetRequestName", targetRequestName)} <#local listIndex = listIndex + 1> - ${setRequestAttribute("optProductId", "")} - ${setRequestAttribute("formNamePrefix", "")} - ${setRequestAttribute("targetRequestName", "")} + ${setRequestAttribute("optProductId", "")} + ${setRequestAttribute("formNamePrefix", "")} + ${setRequestAttribute("targetRequestName", "")} <#assign productValue = product> <#assign listIndex = 1> ${setRequestAttribute("productValue", productValue)} -
 ${cartLine.getReservStart()?string("yyyy-mm-dd")}${cartLine.getReservLength()?string.number}
 ${cartLine.getReservPersons()?string.number} + + + + + + + + + - - - - <#-- Long description of product --> +<#-- Long description of product --> - - - - <#-- Any attributes/etc may go here --> - <#-- Product Configurator --> + +<#-- Any attributes/etc may go here --> +<#-- Product Configurator --> + + - - - <#-- Product Reviews --> +<#-- Product Reviews --> - - <#if productReviews?has_content> - <#list productReviews as productReview> - <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false)> - <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)!> - - - - + + + +<#if productReviews?has_content> + <#list productReviews as productReview> + <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false)> + <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)!> - - <#else> - - - - - + + + + +<#else> + + + + + +
 ${cartLine.getReservStart()?string("yyyy-mm-dd")}${cartLine.getReservLength()?string.number}
 ${cartLine.getReservPersons()?string.number} <#else> - - - - - - - - - + <#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()) /> - + - + - + - + @@ -66,16 +79,29 @@ under the License. <#else> <#assign parentProductId = cartLine.getProductId() /> - <#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 = "" /> - + - - - + + + @@ -101,29 +127,39 @@ under the License. - + - + - + - + @@ -136,33 +172,56 @@ under the License. <#else> <#assign parentProductId = cartLine.getProductId() /> - <#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 smallImageUrl?string?has_content> - Product Image + Product Image - + <#if !cartLine.getIsPromo()> - + <#else> - + - + <#if !cartLine.getIsPromo()> - + @@ -176,9 +235,13 @@ under the License.
- ${uiLabelMap.EcommerceContinueToStep} 2 - + + ${uiLabelMap.EcommerceContinueToStep} 2 + +
- \ No newline at end of file + 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}

- - - - <#if searchCategory?has_content> - - -

${(searchCategory.description)?if_exists}

-
- - - -
- + + + + <#if searchCategory?has_content> + + +

${(searchCategory.description)?if_exists}

+
+ + + + + +
+
- - checked="checked" /> - checked="checked" /> + + + checked="checked"/> + + checked="checked"/>
- <#list productFeatureTypeIdsOrdered as productFeatureTypeId> - <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)> - <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)> - <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]> -
- - -
- + <#list productFeatureTypeIdsOrdered as productFeatureTypeId> + <#assign findPftMap = + Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)> + <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)> + <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]> +
+ + +
+
- - -
- <#if searchConstraintStrings?has_content> -
- - <#list searchConstraintStrings as searchConstraintString> -

${searchConstraintString}

- -

${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}

-
- - -
-
- -
- -
- <#if searchOptionsHistoryList?has_content> -

${uiLabelMap.OrderLastSearches}...

-
- ${uiLabelMap.OrderClearSearchHistory} -

${uiLabelMap.OrderClearSearchHistoryNote}

-
- <#list searchOptionsHistoryList as searchOptions> - <#-- searchOptions type is ProductSearchSession.ProductSearchOptions --> -
-

${uiLabelMap.EcommerceSearchNumber}${searchOptions_index + 1}

- ${uiLabelMap.CommonSearch} - ${uiLabelMap.CommonRefine} -
- <#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)> - <#list constraintStrings as constraintString> -

- ${constraintString}

+ <#if productFeatureTypes?? && productFeatureTypes?has_content> + <#list productFeatureTypes as productFeatureType> + - <#if searchOptions_has_next> - - + + + + + + + + <#if searchConstraintStrings?has_content> +
+ + <#list searchConstraintStrings as searchConstraintString> +

${searchConstraintString}

- +

${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}

+
+ + + + +
+
+ +
+ +
+ <#if searchOptionsHistoryList?has_content> +

${uiLabelMap.OrderLastSearches}...

+
+ + ${uiLabelMap.OrderClearSearchHistory} + +

${uiLabelMap.OrderClearSearchHistoryNote}

+
+ <#list searchOptionsHistoryList as searchOptions> + <#-- searchOptions type is ProductSearchSession.ProductSearchOptions --> +
+

${uiLabelMap.EcommerceSearchNumber}${searchOptions_index + 1}

+ ${uiLabelMap.CommonSearch} + ${uiLabelMap.CommonRefine} +
+ <#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)> + <#list constraintStrings as constraintString> +

- ${constraintString}

+ + <#if searchOptions_has_next> + + +
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. --> -
+
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}
  • +
+
+
+
+
+ + +
-
-
- - -
-
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!} + } + //--> +
-
----
-- + + + + + + + +
----
-- ${cartLine.getQuantity()?string.number}
- <#else><#-- fixedAssetExist --> + <#else><#-- fixedAssetExist --> ${cartLine.getQuantity()?string.number} + + <#else><#-- Is Promo or Shoppinglist --> + <#if fixedAssetExist == true> + <#if cartLine.getReservStart()??> + + + + + + + + + + + + + + + + + +
  + + + +
  + + + <#else> + + + + + + + + + +
----
-- + + +
+ <#else><#-- fixedAssetExist --> + + - <#else><#-- Is Promo or Shoppinglist --> - <#if fixedAssetExist == true><#if cartLine.getReservStart()??> + + + + - - - - - - - -
 
 <#else> -
----
-- -
- <#else><#-- fixedAssetExist --> - +
<@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> +   - - <@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> 
- - <#if shoppingCart.getAdjustments()?has_content> + + + + +
+ + <#if shoppingCart.getAdjustments()?has_content> + + + + + + <#if (shoppingCart.getDisplayTaxIncluded() > 0.0)> + + + + + + + <#list shoppingCart.getAdjustments() as cartAdjustment> + <#assign adjustmentType = cartAdjustment.getRelatedOne("OrderAdjustmentType", true) /> + + + + + + + - - - + + - <#if (shoppingCart.getDisplayTaxIncluded() > 0.0)> + <#if itemsFromList> + + + + + <#if promoItems> + + + + + <#if !itemsFromList && !promoItems> - - - <#list shoppingCart.getAdjustments() as cartAdjustment> - <#assign adjustmentType = cartAdjustment.getRelatedOne("OrderAdjustmentType", true) /> - - - - - - - - - - - - <#if itemsFromList> - - - - - <#if promoItems> - - - - - <#if !itemsFromList && !promoItems> - - - - - - + - - - - - - - -
${uiLabelMap.CommonSubTotal}: + <@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/> +  
${uiLabelMap.OrderSalesTaxIncluded}: + <@ofbizCurrency amount=shoppingCart.getDisplayTaxIncluded() isoCode=shoppingCart.getCurrency()/> +  
+ ${uiLabelMap.EcommerceAdjustment} - ${adjustmentType.get("description",locale)!} + <#if cartAdjustment.productPromoId?has_content> + + ${uiLabelMap.CommonDetails} + + : + + <@ofbizCurrency amount=Static["org.apache.ofbiz.order.order.OrderReadHelper"] + .calcOrderAdjustment(cartAdjustment, + shoppingCart.getSubTotal()) isoCode=shoppingCart.getCurrency()/> +  
${uiLabelMap.CommonSubTotal}:<@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/> ${uiLabelMap.EcommerceCartTotal}: + <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/> +
L - ${uiLabelMap.EcommerceItemsfromShopingList}.
P - ${uiLabelMap.EcommercePromotionalItems}.
${uiLabelMap.OrderSalesTaxIncluded}:<@ofbizCurrency amount=shoppingCart.getDisplayTaxIncluded() isoCode=shoppingCart.getCurrency()/>  
- ${uiLabelMap.EcommerceAdjustment} - ${adjustmentType.get("description",locale)!} - <#if cartAdjustment.productPromoId?has_content>${uiLabelMap.CommonDetails}: - <@ofbizCurrency amount=Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) isoCode=shoppingCart.getCurrency()/> 
${uiLabelMap.EcommerceCartTotal}:<@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/>
L - ${uiLabelMap.EcommerceItemsfromShopingList}.
P - ${uiLabelMap.EcommercePromotionalItems}.
 
- <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous"> -
+ <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous"> + +    + + ${uiLabelMap.EcommerceAddSelectedtoList} +    + <#else> + ${uiLabelMap.OrderYouMust} + + ${uiLabelMap.CommonBeLogged} + + ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.  - - - -    - ${uiLabelMap.EcommerceAddSelectedtoList}   - <#else> - ${uiLabelMap.OrderYouMust} ${uiLabelMap.CommonBeLogged} - ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.  - -
- <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous"> -    - ${uiLabelMap.OrderCreateCustRequestFromCart}   -    - ${uiLabelMap.OrderCreateQuoteFromCart}   - <#else> - ${uiLabelMap.OrderYouMust} ${uiLabelMap.CommonBeLogged} - ${uiLabelMap.EcommerceToOrderCreateCustRequestFromCart}.  - -
- checked="checked"/>${uiLabelMap.EcommerceAlwaysViewCartAfterAddingAnItem}. -
- - - <#else> -

${uiLabelMap.EcommerceYourShoppingCartEmpty}.

- +
+ <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous"> +    + + ${uiLabelMap.OrderCreateCustRequestFromCart} +      + + ${uiLabelMap.OrderCreateQuoteFromCart}   + <#else> + ${uiLabelMap.OrderYouMust} + + ${uiLabelMap.CommonBeLogged} + + ${uiLabelMap.EcommerceToOrderCreateCustRequestFromCart}.  + +
+ checked="checked"/> + ${uiLabelMap.EcommerceAlwaysViewCartAfterAddingAnItem}. +
+ + + <#else> +

${uiLabelMap.EcommerceYourShoppingCartEmpty}.

+ <#-- Copy link bar to bottom to include a link bar at the bottom too -->
+
+

${uiLabelMap.ProductPromoCodes}

+
+
-

${uiLabelMap.ProductPromoCodes}

-
-
-
-
-
- - - <#assign productPromoCodeIds = (shoppingCart.getProductPromoCodesEntered())! /> - <#if productPromoCodeIds?has_content> - ${uiLabelMap.ProductPromoCodesEntered} -
    - <#list productPromoCodeIds as productPromoCodeId> -
  • ${productPromoCodeId}
  • - -
- -
-
-
+
+
+ + + <#assign productPromoCodeIds = (shoppingCart.getProductPromoCodesEntered())! /> + <#if productPromoCodeIds?has_content> + ${uiLabelMap.ProductPromoCodesEntered} +
    + <#list productPromoCodeIds as productPromoCodeId> +
  • ${productPromoCodeId}
  • + +
+ +
+
+
<#if showPromoText?? && showPromoText> -
+
-

${uiLabelMap.OrderSpecialOffers}

+

${uiLabelMap.OrderSpecialOffers}

- <#-- show promotions text --> - +
-
+
<#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")} -
- + <#-- random complementary products --> + <#list associatedProducts as assocProduct> +
+ ${setRequestAttribute("optProduct", assocProduct)} + ${setRequestAttribute("listIndex", assocProduct_index)} + ${screens.render("component://ecommerce/widget/CatalogScreens.xml#productsummary")} +
+
-
+
<#if (shoppingCartSize?default(0) > 0)> ${screens.render("component://ecommerce/widget/CartScreens.xml#promoUseDetailsInline")} - + 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() /> +
${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() /> +
Product Image + Product Image ${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() /> + +
${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()) /> <@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() /> +
${cartLine.getName()!}<@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency() /> + <@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency() /> + <#if cartLine.getIsPromo()> ${cartLine.getQuantity()?string.number} <#else> - - - - + + + + <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /> + <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /> + <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /> + <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency() /> + <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() /> + <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() /> + Remove Item Image + + Remove Item Image + +
- - <#-- Category next/previous --> - <#if category??> - - - - - - - - <#-- Product image/name/price --> +<#-- Category next/previous --> +<#if category??> + + + + + + + +<#-- Product image/name/price --> + + + +
- <#if previousProductId??> - ${uiLabelMap.CommonPrevious} |  - - ${(category.categoryName)?default(category.description)!} - <#if nextProductId??> -  | ${uiLabelMap.CommonNext} - -
+ <#if previousProductId??> + ${uiLabelMap.CommonPrevious} |  + + + ${(category.categoryName)?default(category.description)!} + + <#if nextProductId??> |  + ${uiLabelMap.CommonNext} + +
- <#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 productLargeImageUrl?string?has_content> - - + <#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 productLargeImageUrl?string?has_content> + + + +

${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: - - <#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl> - ${sizeProductFeatureAndAppl.description?default(sizeProductFeatureAndAppl.abbrev?default(sizeProductFeatureAndAppl.productFeatureId))}<#if sizeProductFeatureAndAppl_has_next>, - + <#-- 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: + + <#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl> + ${sizeProductFeatureAndAppl.description?default(sizeProductFeatureAndAppl.abbrev?default( + sizeProductFeatureAndAppl.productFeatureId))} + <#if sizeProductFeatureAndAppl_has_next>, + +
+ + <#-- 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/> +
- - <#-- 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 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 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 price.isSale?? && price.isSale> - ${uiLabelMap.OrderOnSale}! - <#assign priceStyle = "salePrice"> - <#else> - <#assign priceStyle = "regularPrice"> - - ${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual!> from <@ofbizCurrency amount=price.price isoCode=price.currencyUsed/> - + <#if price.isSale?? && price.isSale> + ${uiLabelMap.OrderOnSale}! + <#assign priceStyle = "salePrice"> + <#else> + <#assign priceStyle = "regularPrice"> + + ${uiLabelMap.OrderYourPrice}: + <#if "Y" = product.isVirtual!> from + + <@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}%)
- - - - <#-- 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 product.piecesIncluded?? && product.piecesIncluded?long != 0> -
${uiLabelMap.OrderPieces}: - ${product.piecesIncluded} -
- - <#if daysToShip??> -
${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}
- + + <#-- Included quantities/pieces --> + <#if product.quantityIncluded?? && product.quantityIncluded != 0> +
+ ${uiLabelMap.OrderIncludes}:${product.quantityIncluded!}${product.quantityUomId!} +
+ + <#if product.piecesIncluded?? && product.piecesIncluded?long != 0> +
+ ${uiLabelMap.OrderPieces}:${product.piecesIncluded} +
+ + <#if daysToShip??> +
+ ${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays} +
+ - <#-- 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} -
- -
 
- + <#if disFeatureList?? && 0 < disFeatureList.size()> +

 

+ <#list disFeatureList as currentFeature> +
+ ${currentFeature.productFeatureTypeId}: ${currentFeature.description} +
+ +
 
+ -
- <#assign inStock = true> - <#-- Variant Selection --> - <#if product.isVirtual?? && product.isVirtual?upper_case == "Y"> - <#if variantTree?? && 0 < variantTree.size()> - <#list featureSet as currentType> -
- -
- - - - <#else> - - + + <#assign inStock = true> + <#-- Variant Selection --> + <#if product.isVirtual?? && product.isVirtual?upper_case == "Y"> + <#if variantTree?? && 0 < variantTree.size()> + <#list featureSet as currentType> +
+ +
+ + + + <#else> + + +
${uiLabelMap.ProductItemOutOfStock}.
+ <#assign inStock = false> + + <#else> + + + <#if productNotAvailable??> + <#assign isStoreInventoryRequired = + Static["org.apache.ofbiz.product.store.ProductStoreWorker"] + .isStoreInventoryRequired(request, product)> + <#if isStoreInventoryRequired>
${uiLabelMap.ProductItemOutOfStock}.
<#assign inStock = false> - - <#else> - - - <#if productNotAvailable??> - <#assign isStoreInventoryRequired = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].isStoreInventoryRequired(request, product)> - <#if isStoreInventoryRequired> -
${uiLabelMap.ProductItemOutOfStock}.
- <#assign inStock = false> - <#else> -
${product.inventoryMessage!}
- + <#else> +
${product.inventoryMessage!}
- -
- - <#-- 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 --> + +
+ <#-- 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"> - -
- Amount:  - -
- <#if !configwrapper.isCompleted()> -
[${uiLabelMap.EcommerceProductNotConfigured}]  -
- <#else> - ${uiLabelMap.OrderAddToCart}  - - <#if minimumQuantity?? && minimumQuantity > 0> - Minimum order quantity is ${minimumQuantity}. - - - - <#if requestParameters.category_id??> - + <#assign hiddenStyle = "hidden"> + +
+ Amount:  + +
+ <#if !configwrapper.isCompleted()> +
[${uiLabelMap.EcommerceProductNotConfigured}]  +
+ <#else> + + + ${uiLabelMap.OrderAddToCart} + +   + + <#if minimumQuantity?? && minimumQuantity > 0> + Minimum order quantity is ${minimumQuantity}. + + <#if requestParameters.category_id??> + + + -
+
<#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous"> - -
- - - + + + +    - - [${uiLabelMap.OrderAddToShoppingList}] + + + [${uiLabelMap.OrderAddToShoppingList}] +
- <#else>
- ${uiLabelMap.OrderYouMust} ${uiLabelMap.CommonBeLogged} - ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.  + <#else>
+ ${uiLabelMap.OrderYouMust} + ${uiLabelMap.CommonBeLogged} + ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}. 
- <#-- Prefill first select box (virtual products only) --> - <#if variantTree?? && 0 < variantTree.size()> - - + <#-- Prefill first select box (virtual products only) --> + <#if variantTree?? && 0 < variantTree.size()> + + - <#-- 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 !imageUrl?string?has_content> - <#assign imageUrl = "/images/defaultImage.jpg"> - - + <#-- Swatches (virtual products only) --> + <#if variantSample?? && 0 < variantSample.size()> + <#assign imageKeys = variantSample.keySet()> + <#assign imageMap = variantSample> +

 

+
- -
- ${key} -
+ + <#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")!> - <#assign indexer = indexer + 1> - - <#if (indexer > maxIndex)> -
${uiLabelMap.OrderMoreOptionsAvailable}.
+ <#if !imageUrl?string?has_content> + <#assign imageUrl = "/images/defaultImage.jpg"> + + - -
+ + + +
+ + ${key} + +
- + <#assign indexer = indexer + 1> + + <#if (indexer > maxIndex)> +
${uiLabelMap.OrderMoreOptionsAvailable}.
+ +
+
${productContentWrapper.get("LONG_DESCRIPTION", "html")!}

-
- - - +
+
+ + + + - - + +
- <#assign counter = 0> - <#assign questions = configwrapper.questions> - <#list questions as question> + <#assign counter = 0> + <#assign questions = configwrapper.questions> + <#list questions as question> - <#assign counter = counter + 1>
- +
${question.question}
@@ -459,259 +508,300 @@ function getConfigDetails(event) {
${StringUtil.wrapString(question.description!)}
<#assign instructions = question.content.get("INSTRUCTIONS", "html")!> <#if instructions?has_content> - Instructions + Instructions <#assign image = question.content.get("IMAGE_URL", "url")!> <#if image?string?has_content> - + <#else> - +
+ Details +
- <#if question.isStandard()> + <#if question.isStandard()> <#-- Standard item: all the options are always included --> - <#assign options = question.options> - <#list options as option> -
${option.description} <#if !option.isAvailable()> (*)
- - <#else> - <#if question.isSingleChoice()> - <#-- Single choice question --> <#assign options = question.options> - <#assign selectedOption = question.getSelected()!> - <#assign selectedPrice = 0.0> - <#if selectedOption?has_content> - <#assign selectedPrice = selectedOption.getPrice()> - - <#-- The single choice input can be implemented with radio buttons or a select field --> - <#if renderSingleChoiceWithRadioButtons?? && "Y" == renderSingleChoiceWithRadioButtons> - <#-- This is the radio button implementation --> - <#if !question.isMandatory()> -
No option
- - <#assign optionCounter = 0> <#list options as option> - <#assign componentCounter = 0> - <#if showOffsetPrice?? && "Y" == showOffsetPrice> - <#assign shownPrice = option.price - selectedPrice> - <#else> - <#assign shownPrice = option.price> +
${option.description} <#if !option.isAvailable()> (*)
+ + <#else> + <#if question.isSingleChoice()> + <#-- Single choice question --> + <#assign options = question.options> + <#assign selectedOption = question.getSelected()!> + <#assign selectedPrice = 0.0> + <#if selectedOption?has_content> + <#assign selectedPrice = selectedOption.getPrice()> + <#-- The single choice input can be implemented with radio buttons or a select field --> + <#if renderSingleChoiceWithRadioButtons?? && "Y" == renderSingleChoiceWithRadioButtons> + <#-- This is the radio button implementation --> + <#if !question.isMandatory()> +
+ + No option +
+ + <#assign optionCounter = 0> + <#list options as option> + <#assign componentCounter = 0> + <#if showOffsetPrice?? && "Y" == showOffsetPrice> + <#assign shownPrice = option.price - selectedPrice> + <#else> + <#assign shownPrice = option.price> + <#-- Render virtual compoennts --> - <#if option.hasVirtualComponent()> -
- + <#if option.hasVirtualComponent()> +
+ ${option.description} <#if !option.isAvailable()> (*) - <#assign components = option.getComponents()> - <#list components as component> - <#if (option.isVirtualComponent(component))> + <#assign components = option.getComponents()> + <#list components as component> + <#if (option.isVirtualComponent(component))> ${setRequestAttribute("inlineProductId", component.productId)} ${setRequestAttribute("inlineCounter", counter+ "_" +optionCounter + "_"+componentCounter)} ${setRequestAttribute("addJavaScript", componentCounter)} ${screens.render(inlineProductDetailScreen)} + <#assign componentCounter = componentCounter + 1> + + +
+ <#else> +
+ checked="checked"/> + ${option.description}  + <#if (shownPrice > 0)>+<@ofbizCurrency amount=shownPrice isoCode=price.currencyUsed/> +   + <#if (shownPrice < 0)>-<@ofbizCurrency amount=(-1*shownPrice) isoCode=price.currencyUsed/> +   + <#if !option.isAvailable()>(*) +
+ + <#assign optionCounter = optionCounter + 1> + + <#else> + <#-- And this is the select box implementation --> + + + <#else> + <#-- Multi choice question --> + <#assign options = question.options> + <#assign optionCounter = 0> + <#list options as option> + <#assign componentCounter = 0> + <#-- Render virtual compoennts --> + <#if option.hasVirtualComponent()> +
+ + ${option.description} <#if !option.isAvailable()> (*) + <#assign components = option.getComponents()> + <#list components as component> + <#if (option.isVirtualComponent(component))> + ${setRequestAttribute("inlineProductId", component.productId)} + ${setRequestAttribute("inlineCounter", counter+ "_" +optionCounter + "_"+componentCounter)} + ${setRequestAttribute("addJavaScript", componentCounter)} + ${screens.render(inlineProductDetailScreen)} <#assign componentCounter = componentCounter + 1>
<#else>
- checked="checked" /> - ${option.description}  - <#if (shownPrice > 0)>+<@ofbizCurrency amount=shownPrice isoCode=price.currencyUsed/>  - <#if (shownPrice < 0)>-<@ofbizCurrency amount=(-1*shownPrice) isoCode=price.currencyUsed/>  - <#if !option.isAvailable()>(*) + checked="checked"/> + ${option.description} +<@ofbizCurrency amount=option.price isoCode=price.currencyUsed/> + <#if !option.isAvailable()> (*)
- <#assign optionCounter = optionCounter + 1> - - <#else> - <#-- And this is the select box implementation --> - + - <#else> - <#-- Multi choice question --> - <#assign options = question.options> - <#assign optionCounter = 0> - <#list options as option> - <#assign componentCounter = 0> - <#-- Render virtual compoennts --> - <#if option.hasVirtualComponent()> -
- - ${option.description} <#if !option.isAvailable()> (*) - <#assign components = option.getComponents()> - <#list components as component> - <#if (option.isVirtualComponent(component))> - ${setRequestAttribute("inlineProductId", component.productId)} - ${setRequestAttribute("inlineCounter", counter+ "_" +optionCounter + "_"+componentCounter)} - ${setRequestAttribute("addJavaScript", componentCounter)} - ${screens.render(inlineProductDetailScreen)} - <#assign componentCounter = componentCounter + 1> - - -
- <#else> -
- checked="checked" /> - ${option.description} +<@ofbizCurrency amount=option.price isoCode=price.currencyUsed/><#if !option.isAvailable()> (*) -
- - <#assign optionCounter = optionCounter + 1> - -
${uiLabelMap.OrderCustomerReviews}:
- <#if averageRating?? && (averageRating > 0) && numRatings?? && (numRatings > 1)> -
${uiLabelMap.OrderAverageRating}: ${averageRating} <#if numRatings??>(${uiLabelMap.CommonFrom} ${numRatings} ${uiLabelMap.OrderRatings})
- + <#if averageRating?? && (averageRating > 0) && numRatings?? && (numRatings > 1)> +
${uiLabelMap.OrderAverageRating}: ${averageRating} + <#if numRatings??>(${uiLabelMap.CommonFrom} ${numRatings} ${uiLabelMap.OrderRatings}) +
+

- - - - - - - - - - - - - -
-
${uiLabelMap.CommonBy}: <#if productReview.postedAnonymous?default("N") == "Y">${uiLabelMap.OrderAnonymous}<#else>${postedPerson.firstName} ${postedPerson.lastName}
-
-
${uiLabelMap.CommonOn}: ${productReview.postedDateTime!}
-
-
${uiLabelMap.OrderRanking}: ${productReview.productRating!?string}
-
-
 
-
-
${productReview.productReview!}
-
-
+
+
- ${uiLabelMap.ProductReviewThisProduct}! -
-
${uiLabelMap.ProductProductNotReviewedYet}.
-
- ${uiLabelMap.ProductBeTheFirstToReviewThisProduct} + + + + + + + + + + + + +
+
${uiLabelMap.CommonBy}: + <#if productReview.postedAnonymous?default("N") == "Y"> + ${uiLabelMap.OrderAnonymous} + <#else> + ${postedPerson.firstName} ${postedPerson.lastName} + +
+
+
${uiLabelMap.CommonOn}: ${productReview.postedDateTime!}
+
+
${uiLabelMap.OrderRanking}: ${productReview.productRating!?string}
+
+
 
+
+
${productReview.productReview!}
+
+ ${uiLabelMap.ProductReviewThisProduct}! +
+
${uiLabelMap.ProductProductNotReviewedYet}.
+
+ ${uiLabelMap.ProductBeTheFirstToReviewThisProduct} +
<#-- Upgrades/Up-Sell/Cross-Sell --> - <#macro associated assocProducts beforeName showName afterName formNamePrefix targetRequestName> +<#macro associated assocProducts beforeName showName afterName formNamePrefix targetRequestName> <#assign targetRequest = "product"> <#if targetRequestName?has_content> <#assign targetRequest = targetRequestName> <#if assocProducts?has_content> -
 

${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}${afterName!}

 
+

${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}${afterName!}

+
-
- +
+
+ ${productAssoc.productIdTo!} - - - ${productAssoc.reason!} -
-
- ${screens.render(productsummaryScreen)} + ${screens.render(productsummaryScreen)}
+
<#-- obsolete --> - <@associated assocProducts=obsoleteProducts beforeName="" showName="Y" afterName=" is made obsolete by these products:" formNamePrefix="obs" targetRequestName=""/> + <@associated assocProducts=obsoleteProducts beforeName="" showName="Y" + afterName=" is made obsolete by these products:" formNamePrefix="obs" targetRequestName=""/> <#-- cross sell --> - <@associated assocProducts=crossSellProducts beforeName="" showName="N" afterName="You might be interested in these as well:" formNamePrefix="cssl" targetRequestName="crosssell"/> + <@associated assocProducts=crossSellProducts beforeName="" showName="N" + afterName="You might be interested in these as well:" formNamePrefix="cssl" targetRequestName="crosssell"/> <#-- up sell --> - <@associated assocProducts=upSellProducts beforeName="Try these instead of " showName="Y" afterName=":" formNamePrefix="upsl" targetRequestName="upsell"/> + <@associated assocProducts=upSellProducts beforeName="Try these instead of " showName="Y" afterName=":" + formNamePrefix="upsl" targetRequestName="upsell"/> <#-- obsolescence --> - <@associated assocProducts=obsolenscenseProducts beforeName="" showName="Y" afterName=" makes these products obsolete:" formNamePrefix="obce" targetRequestName=""/> -
+ <@associated assocProducts=obsolenscenseProducts beforeName="" showName="Y" + afterName=" makes these products obsolete:" formNamePrefix="obce" targetRequestName=""/> +
<#-- special cross/up-sell area using commonFeatureResultIds (from common feature product search) --> <#if commonFeatureResultIds?has_content> @@ -720,14 +810,14 @@ ${setRequestAttribute("productValue", productValue)} <#list commonFeatureResultIds as commonFeatureResultId>
- ${setRequestAttribute("optProductId", commonFeatureResultId)} + ${setRequestAttribute("optProductId", commonFeatureResultId)} ${setRequestAttribute("listIndex", commonFeatureResultId_index)} ${setRequestAttribute("formNamePrefix", "cfeatcssl")} <#-- ${setRequestAttribute("targetRequestName", targetRequestName)} --> ${screens.render(productsummaryScreen)}
<#if commonFeatureResultId_has_next> -
+
diff --git a/ecommerce/template/catalog/DetailImage.ftl b/ecommerce/template/catalog/DetailImage.ftl index 184d2f130..be6f3501f 100644 --- a/ecommerce/template/catalog/DetailImage.ftl +++ b/ecommerce/template/catalog/DetailImage.ftl @@ -18,15 +18,15 @@ under the License. --> - <#if requestParameters.detail?has_content> - <#--assign detailImage = Static["org.apache.ofbiz.base.util.Base64"].base64Decode(requestParameters.detail)--> - - <#else> - - + + diff --git a/ecommerce/template/catalog/LastViewedProducts.ftl b/ecommerce/template/catalog/LastViewedProducts.ftl index 072cbce15..ac401846e 100644 --- a/ecommerce/template/catalog/LastViewedProducts.ftl +++ b/ecommerce/template/catalog/LastViewedProducts.ftl @@ -20,14 +20,13 @@ under the License.

- ${uiLabelMap.ProductProductsLastViewed} + ${uiLabelMap.ProductProductsLastViewed}

<#if sessionAttributes.lastViewedProducts?? && sessionAttributes.lastViewedProducts?has_content> - <#list sessionAttributes.lastViewedProducts as productId> @@ -39,13 +38,12 @@ under the License.
- <#else> - - - - -
-
${uiLabelMap.ProductNotViewedAnyProducts}.
-
+ + + + +
+
${uiLabelMap.ProductNotViewedAnyProducts}.
+
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 --> - - <#-- End Page Select Drop-Down --> - <#if (0 < viewIndex?int)> - ${uiLabelMap.CommonPrevious} | - - <#if ((listSize?int - viewSize?int) > 0)> - ${lowIndex + 1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} - - <#if highIndex?int < listSize?int> - | ${uiLabelMap.CommonNext} - -
- + <#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)> + <#if (viewIndexMax?int > 0)> +
+ <#-- Start Page Select Drop-Down --> + + <#-- End Page Select Drop-Down --> + <#if (0 < viewIndex?int)> + ${uiLabelMap.CommonPrevious} | + + <#if ((listSize?int - viewSize?int) > 0)> + ${lowIndex + 1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} + + <#if highIndex?int < listSize?int> + | + ${uiLabelMap.CommonNext} + + +
+ <#if productCategory??> - <#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/> - <#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/> - <#if categoryName?has_content> -

${categoryName}

- - <#if categoryDescription?has_content> -

${categoryDescription}

- - <#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 longDescription?has_content> - ${longDescription} - -
+ <#assign categoryName = categoryContentWrapper.get("CATEGORY_NAME", "html")!/> + <#assign categoryDescription = categoryContentWrapper.get("DESCRIPTION", "html")!/> + <#if categoryName?has_content> +

${categoryName}

+ + <#if categoryDescription?has_content> +

${categoryDescription}

+ + <#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 longDescription?has_content> + ${longDescription} + +
<#if productIds?has_content> - <@paginationControls/> - <#assign numCol = numCol?default(1)> - <#assign numCol = numCol?number> - <#assign tabCol = 1> -
- style="position: relative; margin-top: ${height}px;" - - class="productsummary-container<#if (numCol?int > 1)> matrix"> + <@paginationControls/> + <#assign numCol = numCol?default(1)> + <#assign numCol = numCol?number> + <#assign tabCol = 1> +
+ style="position: relative; margin-top: ${height}px;" + class="productsummary-container<#if (numCol?int > 1)> matrix"> <#if (numCol?int > 1)> - <#list productIds as productId> - <#if (numCol?int == 1)> - ${setRequestAttribute("optProductId", productId)} - ${setRequestAttribute("listIndex", productId_index)} - ${screens.render(productsummaryScreen)} - <#else> - <#if (tabCol?int = 1)> - - <#if (tabCol?int = numCol)> - <#assign tabCol = tabCol+1><#if (tabCol?int > numCol)><#assign tabCol = 1> - - + <#list productIds as productId> + <#if (numCol?int == 1)> + ${setRequestAttribute("optProductId", productId)} + ${setRequestAttribute("listIndex", productId_index)} + ${screens.render(productsummaryScreen)} + <#else> + <#if (tabCol?int = 1)> + + <#if (tabCol?int = numCol)> + <#assign tabCol = tabCol+1><#if (tabCol?int > numCol)><#assign tabCol = 1> + + <#if (numCol?int > 1)>
- ${setRequestAttribute("optProductId", productId)} - ${setRequestAttribute("listIndex", productId_index)} - ${screens.render(productsummaryScreen)} -
+ ${setRequestAttribute("optProductId", productId)} + ${setRequestAttribute("listIndex", productId_index)} + ${screens.render(productsummaryScreen)} +
-
- <@paginationControls/> +
+ <@paginationControls/> <#else> -
-
${uiLabelMap.ProductNoProductsInThisCategory}
+
+
${uiLabelMap.ProductNoProductsInThisCategory}
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}
+
  + X + <#noescape> ${searchConstraintString} +
<#list searchConstraintStrings as searchConstraintString> <#if searchConstraintString.indexOf("Category: ") = -1 && searchConstraintString != "Exclude Variants"> -
 X ${searchConstraintString}
+
  + + X +   + ${searchConstraintString} +
<#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}) + +
  • @@ -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")} +
      • -
      +
    -
    +
    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)/> -
    - -

    ${uiLabelMap.OrderLastSearches}...

    -
      - <#list searchOptionsHistoryList[0..limit] as searchOptions> - <#-- searchOptions type is ProductSearchSession.ProductSearchOptions --> -
    • - ${uiLabelMap.EcommerceSearchNumber} ${searchOptions_index + 1} - -
    • - -
    + <#if (searchOptionsHistoryList?size > maxToShow)> + <#assign limit=maxToShow/> + <#else> + <#assign limit=(searchOptionsHistoryList?size-1)/> + +
    + +

    ${uiLabelMap.OrderLastSearches}...

    +
      + <#list searchOptionsHistoryList[0..limit] as searchOptions> + <#-- searchOptions type is ProductSearchSession.ProductSearchOptions --> +
    • + ${uiLabelMap.EcommerceSearchNumber} ${searchOptions_index + 1} + +
    • + +
    +
    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 (lastViewedCategories?size > maxToShow)> + <#assign limit=maxToShow/> + <#else> + <#assign limit=(lastViewedCategories?size-1)/> +

      <#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 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!} + +
    • 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 (lastViewedProducts?size > maxToShow)> + <#assign limit=maxToShow/> + <#else> + <#assign limit=(lastViewedProducts?size-1)/> +

      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 totalPrice??> -
      • ${uiLabelMap.ProductAggregatedPrice}: <@ofbizCurrency amount=totalPrice isoCode=priceResult.currencyUsed/>
      • - <#else> - - <@ofbizCurrency amount=priceResult.price isoCode=priceResult.currencyUsed/> - - - + + ${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 totalPrice??> +
        • + ${uiLabelMap.ProductAggregatedPrice}: + + <@ofbizCurrency amount=totalPrice isoCode=priceResult.currencyUsed/> + +
        • + <#else> + + <@ofbizCurrency amount=priceResult.price isoCode=priceResult.currencyUsed/> + + + <#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 requestParameters.orderId?has_content> - <#if requestParameters.product_id?has_content> - <#if requestParameters.category_id?has_content> - <#if requestParameters.VIEW_INDEX?has_content> - <#if requestParameters.VIEW_SIZE?has_content> + <#if requestParameters.orderId?has_content> + + + <#if requestParameters.product_id?has_content> + + + <#if requestParameters.category_id?has_content> + + + <#if requestParameters.VIEW_INDEX?has_content> + + + <#if requestParameters.VIEW_SIZE?has_content> + + - ${uiLabelMap.CommonAdd} ${miniProdQuantity} ${uiLabelMap.OrderToCart} + + + ${uiLabelMap.CommonAdd} ${miniProdQuantity} ${uiLabelMap.OrderToCart} + +
        • -
        +
      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> - - - + <#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> + +
      -
      +
      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} +
      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"))!/> - + 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(){
      - <#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??> -
      - <#if previousProductId??> - ${uiLabelMap.CommonPrevious} |  - - ${(category.categoryName)?default(category.description)!} - <#if nextProductId??> -  | ${uiLabelMap.CommonNext} - -
      + <#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??> +
      + <#if previousProductId??> + ${uiLabelMap.CommonPrevious} |  - -
      -
      - <#if productImageList?has_content> - <#-- 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 productLargeImageUrl?string?has_content> - - - - <#if !productLargeImageUrl?string?has_content> - - -
      - <#-- Show Image Approved --> -
      - <#if productImageList?has_content> - <#list productImageList as productImage> -
      - -
      - - -
      - <#else> - <#-- 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 productLargeImageUrl?string?has_content> - - - - <#if !productLargeImageUrl?string?has_content> - - -
      -
      - <#if productAdditionalImage1?string?has_content> -
      - -
      - - <#if productAdditionalImage2?string?has_content> -
      - -
      - - <#if productAdditionalImage3?string?has_content> -
      - -
      - - <#if productAdditionalImage4?string?has_content> -
      - -
      - -
      + ${(category.categoryName)?default(category.description)!} + <#if nextProductId??> |  + ${uiLabelMap.CommonNext} + +
      + + +
      +
      + <#if productImageList?has_content> + <#-- 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 /> - -
      -

      ${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)> - ${uiLabelMap.OrderSizeAvailableSingle}: - <#else> - ${uiLabelMap.OrderSizeAvailableMultiple}: - - <#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl> - ${sizeProductFeatureAndAppl.description?default(sizeProductFeatureAndAppl.abbrev?default(sizeProductFeatureAndAppl.productFeatureId))}<#if sizeProductFeatureAndAppl_has_next>, - + <#if productLargeImageUrl?string?has_content> + + + + + + <#if !productLargeImageUrl?string?has_content> + + +
      + <#-- Show Image Approved --> +
      + <#if productImageList?has_content> + <#list productImageList as productImage> + - - - <#-- 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?? && price.price?? && price.price < price.competitivePrice> -
      ${uiLabelMap.ProductCompareAtPrice}: <@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed />
      - - <#if price.listPrice?? && price.price?? && price.price < price.listPrice> -
      ${uiLabelMap.ProductListPrice}: <@ofbizCurrency amount=price.listPrice 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 price.specialPromoPrice??> -
      ${uiLabelMap.ProductSpecialPromoPrice}: <@ofbizCurrency amount=price.specialPromoPrice isoCode=price.currencyUsed />
      - -
      - - <#if price.isSale?? && price.isSale> - ${uiLabelMap.OrderOnSale}! - <#assign priceStyle = "salePrice" /> - <#else> - <#assign priceStyle = "regularPrice" /> - - ${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual!> ${uiLabelMap.CommonFrom} <@ofbizCurrency amount=price.price isoCode=price.currencyUsed /> - <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN"> - <#if product.reserv2ndPPPerc?? && product.reserv2ndPPPerc != 0>
      ${uiLabelMap.ProductReserv2ndPPPerc}<#if !product.reservNthPPPerc?? || product.reservNthPPPerc == 0>${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1} <@ofbizCurrency amount=product.reserv2ndPPPerc*price.price/100 isoCode=price.currencyUsed /> - <#if product.reservNthPPPerc?? &&product.reservNthPPPerc != 0>
      ${uiLabelMap.ProductReservNthPPPerc} <#if !product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0>${uiLabelMap.ProductReservSecond} <#else> ${uiLabelMap.ProductReservThird} ${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1}, ${uiLabelMap.ProductEach}: <@ofbizCurrency amount=product.reservNthPPPerc*price.price/100 isoCode=price.currencyUsed /> - <#if (!product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0) && (!product.reservNthPPPerc?? || product.reservNthPPPerc == 0)>
      ${uiLabelMap.ProductMaximum} ${product.reservMaxPersons!1} ${uiLabelMap.ProductPersons}. - -
      + + +
      + <#else> + <#-- 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 productLargeImageUrl?string?has_content> + + + + + + <#if !productLargeImageUrl?string?has_content> + + +
      +
      + <#if productAdditionalImage1?string?has_content> + - <#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}%)
      - - <#-- show price details ("showPriceDetails" field can be set in the screen definition) --> - <#if (showPriceDetails?? && showPriceDetails?default("N") == "Y")> - <#if price.orderItemPriceInfos??> - <#list price.orderItemPriceInfos as orderItemPriceInfo> -
      ${orderItemPriceInfo.description!}
      - - - - - <#-- Included quantities/pieces --> - <#if product.piecesIncluded?? && product.piecesIncluded?long != 0> -
      - ${uiLabelMap.OrderPieces}: ${product.piecesIncluded} -
      - - <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content> - <#assign quantityUom = product.getRelatedOne("QuantityUom", true)! /> -
      - ${uiLabelMap.CommonQuantity}: ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!} -
      - - - <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content> - <#assign weightUom = product.getRelatedOne("WeightUom", true)! /> -
      - ${uiLabelMap.CommonWeight}: ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!} -
      - - <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content> - <#assign heightUom = product.getRelatedOne("HeightUom", true)! /> -
      - ${uiLabelMap.CommonHeight}: ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!} -
      - - <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content> - <#assign widthUom = product.getRelatedOne("WidthUom", true)! /> -
      - ${uiLabelMap.CommonWidth}: ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!} -
      - - <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content> - <#assign depthUom = product.getRelatedOne("DepthUom", true)! /> -
      - ${uiLabelMap.CommonDepth}: ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!} -
      - - - <#if daysToShip??> -
      ${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}!
      - - - <#-- show tell a friend details only in ecommerce application --> -
       
      -
      - ${uiLabelMap.CommonTellAFriend} + + <#if productAdditionalImage2?string?has_content> + - - <#if disFeatureList?? && 0 < disFeatureList.size()> -

       

      - <#list disFeatureList as currentFeature> - <#assign disFeatureType = currentFeature.getRelatedOne("ProductFeatureType", true) /> -
      - <#if disFeatureType.description??>${disFeatureType.get("description", locale)}<#else>${currentFeature.productFeatureTypeId}: ${currentFeature.description} -
      - -
       
      - -
      - -
      -
      -
      - <#assign inStock = true /> - <#assign commentEnable = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("order", "order.item.comment.enable", delegator)> - <#if commentEnable.equals("Y")> - <#assign orderItemAttr = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("order", "order.item.attr.prefix", delegator)> - ${uiLabelMap.CommonComment}  - - <#-- Variant Selection --> - <#if product.isVirtual!?upper_case == "Y"> - <#if product.virtualVariantMethodEnum! == "VV_FEATURETREE" && featureLists?has_content> - <#list featureLists as featureList> - <#list featureList as feature> - <#if feature_index == 0> -
      ${feature.description}: -
      - - - -
      - ${uiLabelMap.CommonQuantity}:  - - ${uiLabelMap.OrderAddToCart} -   -
      - - <#if !product.virtualVariantMethodEnum?? || product.virtualVariantMethodEnum == "VV_VARIANTTREE"> - <#if variantTree?? && (variantTree.size() > 0)> - <#list featureSet as currentType> -
      - -
      - - - - -
      - -
      -
      - <#else> - - <#assign inStock = false /> - - - <#else> - - <#if mainProducts?has_content> - -
      -
      - -
      -
      - - <#if (availableInventory??) && (availableInventory <= 0) && product.requireAmount?default("N") == "N"> - <#assign inStock = false /> - - - <#-- check to see if introductionDate hasnt 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 --> - <#elseif product.virtualVariantMethodEnum! != "VV_FEATURETREE"> - <#if inStock> - <#if product.requireAmount?default("N") == "Y"> - <#assign hiddenStyle = "visible" /> - <#else> - <#assign hiddenStyle = "hidden"/> - -
      - ${uiLabelMap.CommonAmount}:  - -
      - <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN"> -
      - <@htmlTemplate.renderDateTimeField event="" action="" name="reservStart" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${startDate}" size="25" maxlength="30" id="reservStart1" dateType="date" shortDateInput=true timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> -
      -
      - <#--td nowrap="nowrap" align="right">Number
      of days   - Number of days - Number of persons - Number of rooms -
      - ${uiLabelMap.OrderAddToCart} - <#else> - disabled="disabled" />${uiLabelMap.OrderAddToCart} - <@showUnavailableVarients/> - - <#else> - <#if productStore??> - <#if productStore.requireInventory?? && productStore.requireInventory == "N"> - disabled="disabled" />${uiLabelMap.OrderAddToCart} - <@showUnavailableVarients/> - <#else> - ${uiLabelMap.OrderAddToCart}
      - ${uiLabelMap.ProductItemOutOfStock}<#if product.inventoryMessage??>— ${product.inventoryMessage} - - - - - <#if variantPriceList??> - <#list variantPriceList as vpricing> - <#assign variantName = vpricing.get("variantName")!> - <#assign secondVariantName = vpricing.get("secondVariantName")!> - <#assign minimumQuantity = vpricing.get("minimumQuantity")> - <#if minimumQuantity > 0> -
      minimum order quantity for ${secondVariantName!} ${variantName!} is ${minimumQuantity!}
      - - - <#elseif minimumQuantity?? && minimumQuantity?has_content && minimumQuantity > 0> -
      minimum order quantity for ${productContentWrapper.get("PRODUCT_NAME", "html")!} is ${minimumQuantity!}
      - -
      -
      -
      + + <#if productAdditionalImage3?string?has_content> +
      + + + +
      + + <#if productAdditionalImage4?string?has_content> +
      + + + +
      + +
      + + +
      +

      ${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 sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous"> -
      -
      -
      - - - - - -    - <#--assign nowDate = Static["org.apache.ofbiz.base.util.UtilDateTime"].nowDateString("yyyy-MM-dd")--> - <#if product.productTypeId! == "ASSET_USAGE"> -  ${uiLabelMap.CommonStartDate} (yyyy-mm-dd)<@htmlTemplate.renderDateTimeField name="reservStartStr" event="" action="" value="${startDate}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="15" maxlength="30" id="reservStartStr" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> Number of days   
      Number of persons    Qty   - <#elseif product.productTypeId! == "ASSET_USAGE_OUT_IN"> -  ${uiLabelMap.CommonStartDate} (yyyy-mm-dd)   <@htmlTemplate.renderDateTimeField name="reservStartStr" event="" action="" value="${startDate}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="15" maxlength="30" id="reservStartStr" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>  Number of days  
      - Qty  - <#else> - - - - ${uiLabelMap.OrderAddToShoppingList} -
      -
      - <#else>
      - ${uiLabelMap.OrderYouMust} ${uiLabelMap.CommonBeLogged} - ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.  + <#if (sizeProductFeatureAndAppls?size == 1)> + ${uiLabelMap.OrderSizeAvailableSingle}: + <#else> + ${uiLabelMap.OrderSizeAvailableMultiple}: -
      - <#-- Prefill first select box (virtual products only) --> - <#if variantTree?? && 0 < variantTree.size()> - - - - <#-- 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 !imageUrl?string?has_content> - <#assign imageUrl = "/images/defaultImage.jpg" /> - - ${key} - -
      - - <#assign indexer = indexer + 1 /> - - <#if (indexer > maxIndex)> -
      ${uiLabelMap.ProductMoreOptions}
      - - - - <#-- Digital Download Files Associated with this Product --> - <#if downloadProductContentAndInfoList?has_content> -
      -
      ${uiLabelMap.OrderDownloadFilesTitle}:
      - <#list downloadProductContentAndInfoList as downloadProductContentAndInfo> -
      ${downloadProductContentAndInfo.contentName!}<#if downloadProductContentAndInfo.description?has_content> - ${downloadProductContentAndInfo.description}
      + <#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl> + ${sizeProductFeatureAndAppl.description?default( + sizeProductFeatureAndAppl.abbrev?default(sizeProductFeatureAndAppl.productFeatureId))} + <#if sizeProductFeatureAndAppl_has_next>,
      - - <#-- Long description of product --> -
      -
      ${productContentWrapper.get("LONG_DESCRIPTION", "html")!}
      -
      ${productContentWrapper.get("WARNINGS", "html")!}
      -
      - - <#-- Any attributes/etc may go here --> - - <#-- Product Reviews --> -
      -
      ${uiLabelMap.OrderCustomerReviews}:
      - <#if averageRating?? && (averageRating > 0) && numRatings?? && (numRatings > 1)> -
      ${uiLabelMap.OrderAverageRating}: ${averageRating} <#if numRatings??>(${uiLabelMap.CommonFrom} ${numRatings} ${uiLabelMap.OrderRatings})
      - -
      - <#if productReviews?has_content> - <#list productReviews as productReview> - <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false) /> - <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)! /> -
      ${uiLabelMap.CommonBy}: <#if productReview.postedAnonymous?default("N") == "Y"> ${uiLabelMap.OrderAnonymous}<#else> ${postedPerson.firstName} ${postedPerson.lastName} 
      -
      ${uiLabelMap.CommonAt}: ${productReview.postedDateTime!} 
      -
      ${uiLabelMap.OrderRanking}: ${productReview.productRating!?string}
      -
       
      -
      ${productReview.productReview!}
      -
      - - - <#else> -
      ${uiLabelMap.ProductProductNotReviewedYet}.
      - + + <#-- 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?? && price.price?? && price.price < price.competitivePrice> +
      ${uiLabelMap.ProductCompareAtPrice}: + + <@ofbizCurrency amount=price.competitivePrice isoCode=price.currencyUsed /> +
      + <#if price.listPrice?? && price.price?? && price.price < price.listPrice> +
      ${uiLabelMap.ProductListPrice}: + + <@ofbizCurrency amount=price.listPrice 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 price.specialPromoPrice??> +
      ${uiLabelMap.ProductSpecialPromoPrice}: + + <@ofbizCurrency amount=price.specialPromoPrice isoCode=price.currencyUsed /> + +
      + +
      + + <#if price.isSale?? && price.isSale> + ${uiLabelMap.OrderOnSale}! + <#assign priceStyle = "salePrice" /> + <#else> + <#assign priceStyle = "regularPrice" /> + + ${uiLabelMap.OrderYourPrice}: + <#if "Y" = product.isVirtual!> + ${uiLabelMap.CommonFrom} + + + <@ofbizCurrency amount=price.price isoCode=price.currencyUsed /> + + <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN"> + <#if product.reserv2ndPPPerc?? && product.reserv2ndPPPerc != 0>
      + + ${uiLabelMap.ProductReserv2ndPPPerc} + <#if !product.reservNthPPPerc?? || product.reservNthPPPerc == 0> + ${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1} + + <@ofbizCurrency amount=product.reserv2ndPPPerc*price.price/100 isoCode=price.currencyUsed /> + + + <#if product.reservNthPPPerc?? &&product.reservNthPPPerc != 0>
      + + ${uiLabelMap.ProductReservNthPPPerc} + <#if !product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0> + ${uiLabelMap.ProductReservSecond} + <#else> + ${uiLabelMap.ProductReservThird} + + ${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1}, ${uiLabelMap.ProductEach}: + <@ofbizCurrency amount=product.reservNthPPPerc*price.price/100 isoCode=price.currencyUsed /> + + + <#if (!product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0) && (!product.reservNthPPPerc?? || + product.reservNthPPPerc == 0)> +
      ${uiLabelMap.ProductMaximum} ${product.reservMaxPersons!1} ${uiLabelMap.ProductPersons}. + + +
      +
      + <#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}%) + +
      + + <#-- show price details ("showPriceDetails" field can be set in the screen definition) --> + <#if (showPriceDetails?? && showPriceDetails?default("N") == "Y")> + <#if price.orderItemPriceInfos??> + <#list price.orderItemPriceInfos as orderItemPriceInfo> +
      ${orderItemPriceInfo.description!}
      + + + + + <#-- Included quantities/pieces --> + <#if product.piecesIncluded?? && product.piecesIncluded?long != 0> +
      + ${uiLabelMap.OrderPieces}: ${product.piecesIncluded} +
      + + <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content> + <#assign quantityUom = product.getRelatedOne("QuantityUom", true)! /> +
      + ${uiLabelMap.CommonQuantity} : + ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!} +
      + + + <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content> + <#assign weightUom = product.getRelatedOne("WeightUom", true)! /> +
      + ${uiLabelMap.CommonWeight}: + ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!} +
      + + <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content> + <#assign heightUom = product.getRelatedOne("HeightUom", true)! /> +
      + ${uiLabelMap.CommonHeight}: + ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!} +
      + + <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content> + <#assign widthUom = product.getRelatedOne("WidthUom", true)! /> +
      + ${uiLabelMap.CommonWidth}: + ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!} +
      + + <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content> + <#assign depthUom = product.getRelatedOne("DepthUom", true)! /> +
      + ${uiLabelMap.CommonDepth}: + ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!} +
      + + + <#if daysToShip??> +
      + + ${uiLabelMap.ProductUsuallyShipsIn} ${daysToShip} ${uiLabelMap.CommonDays}! + +
      + + + <#-- show tell a friend details only in ecommerce application --> +
       
      + + + <#if disFeatureList?? && 0 < disFeatureList.size()> +

       

      + <#list disFeatureList as currentFeature> + <#assign disFeatureType = currentFeature.getRelatedOne("ProductFeatureType", true) /> +
      + <#if disFeatureType.description??> + ${disFeatureType.get("description", locale)} + <#else> + ${currentFeature.productFeatureTypeId} + :  + ${currentFeature.description} +
      + +
       
      + +
      + +
      +
      +
      + <#assign inStock = true /> + <#assign commentEnable = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"] + .getPropertyValue("order", "order.item.comment.enable", delegator)> + <#if commentEnable.equals("Y")> + <#assign orderItemAttr = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"] + .getPropertyValue("order", "order.item.attr.prefix", delegator)> + ${uiLabelMap.CommonComment}  + + <#-- Variant Selection --> + <#if product.isVirtual!?upper_case == "Y"> + <#if product.virtualVariantMethodEnum! == "VV_FEATURETREE" && featureLists?has_content> + <#list featureLists as featureList> + <#list featureList as feature> + <#if feature_index == 0> +
      + ${feature.description}: + +
      + + + +
      + ${uiLabelMap.CommonQuantity}:  + + ${uiLabelMap.OrderAddToCart} +   +
      + + <#if !product.virtualVariantMethodEnum?? || product.virtualVariantMethodEnum == "VV_VARIANTTREE"> + <#if variantTree?? && (variantTree.size() > 0)> + <#list featureSet as currentType> +
      + +
      + + + + +
      + + +
      +
      +
      + <#else> + + <#assign inStock = false /> + + + <#else> + + <#if mainProducts?has_content> + +
      +
      + + +
      +
      +
      + + <#if (availableInventory??) && (availableInventory <= 0) && product.requireAmount?default("N") == "N"> + <#assign inStock = false /> + + + <#-- check to see if introductionDate hasnt 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 --> + <#elseif product.virtualVariantMethodEnum! != "VV_FEATURETREE"> + <#if inStock> + <#if product.requireAmount?default("N") == "Y"> + <#assign hiddenStyle = "visible" /> + <#else> + <#assign hiddenStyle = "hidden"/> + +
      + ${uiLabelMap.CommonAmount}:  + +
      + <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN"> +
      + + <@htmlTemplate.renderDateTimeField event="" action="" name="reservStart" className="" alert="" + title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="${startDate}" size="25" maxlength="30" + id="reservStart1" dateType="date" shortDateInput=true timeDropdownParamName="" + defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" + hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" + pmSelected="" compositeType="" formName=""/> +
      +
      + <#--td nowrap="nowrap" align="right">Number
      of days + +    + Number of days + Number of persons + Number of rooms +
      + ${uiLabelMap.OrderAddToCart} + <#else> + disabled="disabled"/>${uiLabelMap.OrderAddToCart} + <@showUnavailableVarients/> + + <#else> + <#if productStore??> + <#if productStore.requireInventory?? && productStore.requireInventory == "N"> + disabled="disabled"/>${uiLabelMap.OrderAddToCart} + <@showUnavailableVarients/> + <#else> + ${uiLabelMap.OrderAddToCart}
      + ${uiLabelMap.ProductItemOutOfStock}<#if product.inventoryMessage??>— ${product.inventoryMessage} + + + + + <#if variantPriceList??> + <#list variantPriceList as vpricing> + <#assign variantName = vpricing.get("variantName")!> + <#assign secondVariantName = vpricing.get("secondVariantName")!> + <#assign minimumQuantity = vpricing.get("minimumQuantity")> + <#if minimumQuantity > 0> +
      minimum order quantity for ${secondVariantName!} ${variantName!} is ${minimumQuantity!}
      + + + <#elseif minimumQuantity?? && minimumQuantity?has_content && minimumQuantity > 0> +
      minimum order quantity for ${productContentWrapper.get("PRODUCT_NAME", "html")!} + is ${minimumQuantity!}
      + +
      +
      +
      +
      + <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous"> +
      +
      +
      + + + + + +    + <#--assign nowDate = Static["org.apache.ofbiz.base.util.UtilDateTime"].nowDateString("yyyy-MM-dd")--> + <#if product.productTypeId! == "ASSET_USAGE">  + ${uiLabelMap.CommonStartDate}(yyyy-mm-dd) + <@htmlTemplate.renderDateTimeField name="reservStartStr" event="" action="" value="${startDate}" + className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="15" maxlength="30" + id="reservStartStr" dateType="date" shortDateInput=false timeDropdownParamName="" + defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" + hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" + compositeType="" formName=""/> Number of days   +  
      Number of persons   +   Qty   + + <#elseif product.productTypeId! == "ASSET_USAGE_OUT_IN">  + ${uiLabelMap.CommonStartDate}(yyyy-mm-dd)    + <@htmlTemplate.renderDateTimeField name="reservStartStr" event="" action="" value="${startDate}" + className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="15" maxlength="30" + id="reservStartStr" dateType="date" shortDateInput=false timeDropdownParamName="" + defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" + hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" + compositeType="" formName=""/>  Number of days   + +
      Qty  + + <#else> + + + + ${uiLabelMap.OrderAddToShoppingList} +
      +
      + <#else>
      + ${uiLabelMap.OrderYouMust} + ${uiLabelMap.CommonBeLogged} + ${uiLabelMap.OrderToAddSelectedItemsToShoppingList}.  + +
      + <#-- Prefill first select box (virtual products only) --> + <#if variantTree?? && 0 < variantTree.size()> + + + + <#-- 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 !imageUrl?string?has_content> + <#assign imageUrl = "/images/defaultImage.jpg" /> + + ${key} + +
      + + <#assign indexer = indexer + 1 /> + + <#if (indexer > maxIndex)> +
      ${uiLabelMap.ProductMoreOptions}
      + + + + <#-- Digital Download Files Associated with this Product --> + <#if downloadProductContentAndInfoList?has_content> +
      +
      ${uiLabelMap.OrderDownloadFilesTitle}:
      + <#list downloadProductContentAndInfoList as downloadProductContentAndInfo> +
      ${downloadProductContentAndInfo.contentName!}<#if downloadProductContentAndInfo.description?has_content> + - ${downloadProductContentAndInfo.description}
      + +
      + + + <#-- Long description of product --> +
      +
      ${productContentWrapper.get("LONG_DESCRIPTION", "html")!}
      +
      ${productContentWrapper.get("WARNINGS", "html")!}
      +
      + + <#-- Any attributes/etc may go here --> + + <#-- Product Reviews --> +
      +
      ${uiLabelMap.OrderCustomerReviews}:
      + <#if averageRating?? && (averageRating > 0) && numRatings?? && (numRatings > 1)> +
      ${uiLabelMap.OrderAverageRating}: ${averageRating} <#if numRatings??> + (${uiLabelMap.CommonFrom} ${numRatings} ${uiLabelMap.OrderRatings})
      + +
      + <#if productReviews?has_content> + <#list productReviews as productReview> + <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false) /> + <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)! /> +
      + ${uiLabelMap.CommonBy} : + <#if productReview.postedAnonymous?default("N") == "Y"> + ${uiLabelMap.OrderAnonymous} + <#else> + ${postedPerson.firstName} ${postedPerson.lastName}  + +
      +
      ${uiLabelMap.CommonAt}: ${productReview.postedDateTime!} 
      +
      ${uiLabelMap.OrderRanking}: ${productReview.productRating!?string}
      +
       
      +
      ${productReview.productReview!}
      +
      + + + <#else> +
      ${uiLabelMap.ProductProductNotReviewedYet}.
      + +
      + <#-- Upgrades/Up-Sell/Cross-Sell --> - <#macro associated assocProducts beforeName showName afterName formNamePrefix targetRequestName> + <#macro associated assocProducts beforeName showName afterName formNamePrefix targetRequestName> <#assign pageProduct = product /> <#assign targetRequest = "product" /> <#if targetRequestName?has_content> <#assign targetRequest = targetRequestName /> <#if assocProducts?has_content> -

      ${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}${afterName!}

      - +

      + ${beforeName!} + <#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}${afterName!} +

      +
      - <#list assocProducts as productAssoc> + <#list assocProducts as productAssoc> <#if productAssoc.productId == product.productId> - <#assign assocProductId = productAssoc.productIdTo /> + <#assign assocProductId = productAssoc.productIdTo /> <#else> - <#assign assocProductId = productAssoc.productId /> + <#assign assocProductId = productAssoc.productId />
      - - ${assocProductId} + + ${assocProductId} - <#if productAssoc.reason?has_content> - - ${productAssoc.reason} - + <#if productAssoc.reason?has_content> + - ${productAssoc.reason} +
      ${setRequestAttribute("optProductId", assocProductId)} ${setRequestAttribute("listIndex", listIndex)} ${setRequestAttribute("formNamePrefix", formNamePrefix)} - <#if targetRequestName?has_content> + <#if targetRequestName?has_content> ${setRequestAttribute("targetRequestName", targetRequestName)} - - ${screens.render(productsummaryScreen)} - <#assign product = pageProduct /> - <#local listIndex = listIndex + 1 /> - + + ${screens.render(productsummaryScreen)} + <#assign product = pageProduct /> + <#local listIndex = listIndex + 1 /> +
      - - ${setRequestAttribute("optProductId", "")} - ${setRequestAttribute("formNamePrefix", "")} - ${setRequestAttribute("targetRequestName", "")} + + ${setRequestAttribute("optProductId", "")} + ${setRequestAttribute("formNamePrefix", "")} + ${setRequestAttribute("targetRequestName", "")} - + <#assign productValue = product /> <#assign listIndex = 1 /> ${setRequestAttribute("productValue", productValue)}
      - <#-- also bought --> - <@associated assocProducts=alsoBoughtProducts beforeName="" showName="N" afterName="${uiLabelMap.ProductAlsoBought}" formNamePrefix="albt" targetRequestName="" /> - <#-- obsolete --> - <@associated assocProducts=obsoleteProducts beforeName="" showName="Y" afterName=" ${uiLabelMap.ProductObsolete}" formNamePrefix="obs" targetRequestName="" /> - <#-- cross sell --> - <@associated assocProducts=crossSellProducts beforeName="" showName="N" afterName="${uiLabelMap.ProductCrossSell}" formNamePrefix="cssl" targetRequestName="crosssell" /> - <#-- up sell --> - <@associated assocProducts=upSellProducts beforeName="${uiLabelMap.ProductUpSell} " showName="Y" afterName=":" formNamePrefix="upsl" targetRequestName="upsell" /> - <#-- obsolescence --> - <@associated assocProducts=obsolenscenseProducts beforeName="" showName="Y" afterName=" ${uiLabelMap.ProductObsolescense}" formNamePrefix="obce" targetRequestName="" /> + <#-- also bought --> + <@associated assocProducts=alsoBoughtProducts beforeName="" showName="N" + afterName="${uiLabelMap.ProductAlsoBought}" formNamePrefix="albt" targetRequestName="" /> + <#-- obsolete --> + <@associated assocProducts=obsoleteProducts beforeName="" showName="Y" afterName=" ${uiLabelMap.ProductObsolete}" + formNamePrefix="obs" targetRequestName="" /> + <#-- cross sell --> + <@associated assocProducts=crossSellProducts beforeName="" showName="N" afterName="${uiLabelMap.ProductCrossSell}" + formNamePrefix="cssl" targetRequestName="crosssell" /> + <#-- up sell --> + <@associated assocProducts=upSellProducts beforeName="${uiLabelMap.ProductUpSell} " showName="Y" afterName=":" + formNamePrefix="upsl" targetRequestName="upsell" /> + <#-- obsolescence --> + <@associated assocProducts=obsolenscenseProducts beforeName="" showName="Y" + afterName=" ${uiLabelMap.ProductObsolescense}" formNamePrefix="obce" targetRequestName="" />
      - - <#-- special cross/up-sell area using commonFeatureResultIds (from common feature product search) --> - <#if commonFeatureResultIds?has_content> -

      ${uiLabelMap.ProductSimilarProducts}

      - -
      - <#list commonFeatureResultIds as commonFeatureResultId> - ${setRequestAttribute("optProductId", commonFeatureResultId)} - ${setRequestAttribute("listIndex", commonFeatureResultId_index)} - ${setRequestAttribute("formNamePrefix", "cfeatcssl")} - <#-- ${setRequestAttribute("targetRequestName", targetRequestName)} --> - ${screens.render(productsummaryScreen)} - -
      - + + <#-- special cross/up-sell area using commonFeatureResultIds (from common feature product search) --> + <#if commonFeatureResultIds?has_content> +

      ${uiLabelMap.ProductSimilarProducts}

      + +
      + <#list commonFeatureResultIds as commonFeatureResultId> + ${setRequestAttribute("optProductId", commonFeatureResultId)} + ${setRequestAttribute("listIndex", commonFeatureResultId_index)} + ${setRequestAttribute("formNamePrefix", "cfeatcssl")} + <#-- ${setRequestAttribute("targetRequestName", targetRequestName)} --> + ${screens.render(productsummaryScreen)} + +
      +
      -

      ${uiLabelMap.EcommerceProductTags}

      - <#if productTags??> -

      ${uiLabelMap.EcommerceProductTagsDetail}:

      -

      -

        -
      • - <#assign no = 0 /> - <#list productTags?keys?sort as productTag> - <#assign tagValue = productTags.get(productTag)!/> - <#if tagValue?has_content> - ${productTag} (${tagValue}) <#if no < (productTags.size() - 1)> | - <#assign no = no + 1 /> - - -
      • -
      -

      - - -

      ${uiLabelMap.EcommerceAddYourTags}:

      -

      -

      - - - -
      - ${uiLabelMap.EcommerceAddTagsDetail} -

      +

      +

      ${uiLabelMap.EcommerceProductTags}

      + <#if productTags??> +

      ${uiLabelMap.EcommerceProductTagsDetail}:

      +

      +

        +
      • + <#assign no = 0 /> + <#list productTags?keys?sort as productTag> + <#assign tagValue = productTags.get(productTag)!/> + <#if tagValue?has_content> + + ${productTag} + (${tagValue}) <#if no < (productTags.size() - 1)> | + + <#assign no = no + 1 /> + + +
      • +
      +

      + + +

      ${uiLabelMap.EcommerceAddYourTags}:

      +

      +

      + + + +
      + ${uiLabelMap.EcommerceAddTagsDetail} +

      -
      +
      - - - - - - + + + + + +
      -
      +
      diff --git a/ecommerce/template/catalog/ProductReview.ftl b/ecommerce/template/catalog/ProductReview.ftl index df1d57ec0..49bccff84 100644 --- a/ecommerce/template/catalog/ProductReview.ftl +++ b/ecommerce/template/catalog/ProductReview.ftl @@ -63,11 +63,15 @@ under the License.
      <#else>

      ${uiLabelMap.ProductCannotReviewUnKnownProduct}.

      - \ No newline at end of file + diff --git a/ecommerce/template/catalog/ShowBestSellingCategory.ftl b/ecommerce/template/catalog/ShowBestSellingCategory.ftl index 217448d9c..5462b9389 100644 --- a/ecommerce/template/catalog/ShowBestSellingCategory.ftl +++ b/ecommerce/template/catalog/ShowBestSellingCategory.ftl @@ -18,74 +18,86 @@ under the License. --> <#if productCategoryList?has_content> -

      Popular Categories

      -
      - - - - <#list productCategoryList as childCategoryList> - - <#assign cateCount = 0/> - <#list childCategoryList as productCategory> - <#if (cateCount > 2)> - - <#assign cateCount = 0/> - - <#assign productCategoryId = productCategory.productCategoryId/> - <#assign categoryImageUrl = "/images/defaultImage.jpg"> - <#assign productCategoryMembers = delegator.findByAnd("ProductCategoryAndMember", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryId), Static["org.apache.ofbiz.base.util.UtilMisc"].toList("-quantity"), false)> - <#if productCategory.categoryImageUrl?has_content> - <#assign categoryImageUrl = productCategory.categoryImageUrl/> - <#elseif productCategoryMembers?has_content> - <#assign productCategoryMember = Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(productCategoryMembers)/> - <#assign product = delegator.findOne("Product", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId", productCategoryMember.productId), false)/> - <#if product.smallImageUrl?has_content> - <#assign categoryImageUrl = product.smallImageUrl/> +

      Popular Categories

      +
      +
      + + <#list productCategoryList as childCategoryList> + + <#assign cateCount = 0/> + <#list childCategoryList as productCategory> + <#if (cateCount > 2)> + + <#assign cateCount = 0/> + + <#assign productCategoryId = productCategory.productCategoryId/> + <#assign categoryImageUrl = "/images/defaultImage.jpg"> + <#assign productCategoryMembers = delegator + .findByAnd("ProductCategoryAndMember", Static["org.apache.ofbiz.base.util.UtilMisc"] + .toMap("productCategoryId", productCategoryId), + Static["org.apache.ofbiz.base.util.UtilMisc"].toList("-quantity"), false)> + <#if productCategory.categoryImageUrl?has_content> + <#assign categoryImageUrl = productCategory.categoryImageUrl/> + <#elseif productCategoryMembers?has_content> + <#assign productCategoryMember = + Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(productCategoryMembers)/> + <#assign product = delegator.findOne("Product", + Static["org.apache.ofbiz.base.util.UtilMisc"] + .toMap("productId", productCategoryMember.productId), false)/> + <#if product.smallImageUrl?has_content> + <#assign categoryImageUrl = product.smallImageUrl/> + + + - <#assign cateCount = cateCount + 1/> - - + <#break> + + <#if productCategoryMember?has_content> + <#assign product = delegator.findOne("Product", + Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId", + productCategoryMember.productId), false)> +
    • + "> + ${product.productName!product.productId} + +
    • + + <#assign i = i+1/> + + + + + + + <#assign cateCount = cateCount + 1/> - -
      +
      +
      + + Small Image + +
      + +
      +
        + <#if productCategoryMembers??> + <#assign i = 0/> + <#list productCategoryMembers as productCategoryMember> + <#if (i > 2)> + <#if productCategoryMembers[i]?has_content> + + More... + - -
      -
      -
      - - Small Image - -
      - -
      -
        - <#if productCategoryMembers??> - <#assign i = 0/> - <#list productCategoryMembers as productCategoryMember> - <#if (i > 2)> - <#if productCategoryMembers[i]?has_content> - - More... - - - <#break> - - <#if productCategoryMember?has_content> - <#assign product = delegator.findOne("Product", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId", productCategoryMember.productId), false)> -
      • - "> - ${product.productName!product.productId} - -
      • - - <#assign i = i+1/> - - -
      -
      -
      -
      -
      + + + + +
      diff --git a/ecommerce/template/catalog/SideDeepCategory.ftl b/ecommerce/template/catalog/SideDeepCategory.ftl index 082b3190c..64a167858 100644 --- a/ecommerce/template/catalog/SideDeepCategory.ftl +++ b/ecommerce/template/catalog/SideDeepCategory.ftl @@ -22,12 +22,14 @@ under the License. <#-- looping macro --> <#macro categoryList parentCategory category wrapInBox> - <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??> + <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && + catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??> <#assign categoryName = catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")> <#else> <#assign categoryName = category.categoryName!> - <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??> + <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && + catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??> <#assign categoryDescription = catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")> <#else> <#assign categoryDescription = category.description!> @@ -41,53 +43,69 @@ under the License.
        -
      • <#if categoryDescription?has_content>${categoryDescription}<#else>${categoryName?default("")}
      • +
      • + <#if categoryDescription?has_content> + ${categoryDescription} + <#else> + ${categoryName?default("")} + +

      -
    • - <#if parentCategory?has_content> - <#assign parentCategoryId = parentCategory.productCategoryId/> - <#else> - <#assign parentCategoryId = ""/> - - <#if categoryName?has_content>${categoryName}<#else>${categoryDescription?default("")} +
    • + <#if parentCategory?has_content> + <#assign parentCategoryId = parentCategory.productCategoryId/> + <#else> + <#assign parentCategoryId = ""/> + + + <#if categoryName?has_content> + ${categoryName} + <#else> + ${categoryDescription?default("")} + + - <#if (Static["org.apache.ofbiz.product.category.CategoryWorker"].checkTrailItem(request, category.getString("productCategoryId"))) || (curCategoryId?? && curCategoryId == category.productCategoryId)> - <#local subCatList = Static["org.apache.ofbiz.product.category.CategoryWorker"].getRelatedCategoriesRet(request, "subCatList", category.getString("productCategoryId"), true)> - <#if subCatList??> - <#list subCatList as subCat> -
        - <@categoryList parentCategory=category category=subCat wrapInBox="N"/> -
      - + <#if (Static["org.apache.ofbiz.product.category.CategoryWorker"] + .checkTrailItem(request, category.getString("productCategoryId"))) || + (curCategoryId?? && curCategoryId == category.productCategoryId)> + <#local subCatList = Static["org.apache.ofbiz.product.category.CategoryWorker"] + .getRelatedCategoriesRet(request, "subCatList", category.getString("productCategoryId"), true)> + <#if subCatList??> + <#list subCatList as subCat> +
        + <@categoryList parentCategory=category category=subCat wrapInBox="N"/> +
      + + -
    • <#if wrapInBox == "Y"> +
      -
      <#if topLevelList?has_content> -
      -
      -
        -
      • ${uiLabelMap.ProductBrowseCategories}
      • -
      -
      +
      +
      +
        +
      • ${uiLabelMap.ProductBrowseCategories}
      • +
      +
      +
      +
      +
        + <#list topLevelList as category> + <@categoryList parentCategory="" category=category wrapInBox="N"/> + +
      +
      -
      -
        - <#list topLevelList as category> - <@categoryList parentCategory="" category=category wrapInBox="N"/> - -
      -
      -
      diff --git a/ecommerce/template/catalog/TellAFriend.ftl b/ecommerce/template/catalog/TellAFriend.ftl index 702f0608e..49fdf5393 100644 --- a/ecommerce/template/catalog/TellAFriend.ftl +++ b/ecommerce/template/catalog/TellAFriend.ftl @@ -18,49 +18,51 @@ under the License. --> - - ${uiLabelMap.EcommerceTellAFriend} - + + ${uiLabelMap.EcommerceTellAFriend} + -
      - <#if (requestParameters.productId)?? || (requestParameters.productId)??> - " /> - <#else> - <#assign cancel = "Y"> - - - <#if !cancel??> - - - - - - - - - - - - - - - - - - -
      ${uiLabelMap.CommonYouremail}:
      ${uiLabelMap.CommonEmailTo}:
      ${uiLabelMap.CommonMessage}
      - -
      - -
      - <#else> - -
      ${uiLabelMap.EcommerceTellAFriendSorry}
      - -
      + +
      ${uiLabelMap.EcommerceTellAFriendSorry}
      + + diff --git a/ecommerce/template/content/BlogLib.ftl b/ecommerce/template/content/BlogLib.ftl index 624e03890..39ec85374 100644 --- a/ecommerce/template/content/BlogLib.ftl +++ b/ecommerce/template/content/BlogLib.ftl @@ -18,38 +18,49 @@ under the License. --> <#macro renderAncestryPath trail siteId startIndex=0 endIndexOffset=0 buttonTitle="Back to" searchOn="" > - <#local indent = ""> - <#local csv = ""> - <#local counter = 0> - <#local len = trail?size> - + <#local indent = ""> + <#local csv = ""> + <#local counter = 0> + <#local len = trail?size> +
      <#list trail as content> <#if counter < (len - endIndexOffset) && startIndex <= counter > <#if 0 < counter > - <#local csv = csv + ","/> + <#local csv = csv + ","/> <#local csv = csv + content.contentId/> <#if counter < len && startIndex <= counter > - - + - + + + <#local counter = counter + 1> - <#if 20 < counter > <#break/> + <#if 20 < counter > <#break/> -
      +
      ${indent} <#if content.contentTypeId == "WEB_SITE_PUB_PT" > - ${uiLabelMap.CommonBackTo}  ${content.contentName!} + + ${uiLabelMap.CommonBackTo} + +  ${content.contentName!} <#else> - ${uiLabelMap.CommonBackTo}  ${content.contentName!} + + ${uiLabelMap.CommonBackTo} + +  ${content.contentName!} <#local indent = indent + "    "> [${content.contentId!}] <#if searchOn?has_content && searchOn?lower_case == "true"> -   - ${uiLabelMap.CommonSearch} +   + + ${uiLabelMap.CommonSearch} + - -
      + diff --git a/ecommerce/template/content/ContentCategories.ftl b/ecommerce/template/content/ContentCategories.ftl index 1421ae39d..6df6d1ed5 100644 --- a/ecommerce/template/content/ContentCategories.ftl +++ b/ecommerce/template/content/ContentCategories.ftl @@ -42,10 +42,13 @@ under the License. <#assign count_1=0/> <@loopSubContent contentId=contentRootId viewIndex=0 viewSize=9999 orderBy="contentName">
    • - ${content.contentName} + + ${content.contentName} +
    • <#assign count_1=(count_1 + 1)/>
    -
    \ No newline at end of file +
    diff --git a/ecommerce/template/content/MiniPoll.ftl b/ecommerce/template/content/MiniPoll.ftl index 1e063ad16..3b9641fea 100644 --- a/ecommerce/template/content/MiniPoll.ftl +++ b/ecommerce/template/content/MiniPoll.ftl @@ -19,7 +19,8 @@ under the License. <#assign groupName = page.randomSurveyGroup!> <#if groupName?has_content> - <#assign randomSurvey = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getRandomSurveyWrapper(request, "testSurveyGroup")!> + <#assign randomSurvey = Static["org.apache.ofbiz.product.store.ProductStoreWorker"] + .getRandomSurveyWrapper(request, "testSurveyGroup")!> <#if randomSurvey?has_content> @@ -31,7 +32,9 @@ under the License.
    -
    + ${randomSurvey.render()}
    diff --git a/ecommerce/template/content/RecentlyViewed.ftl b/ecommerce/template/content/RecentlyViewed.ftl index a9c5be612..3e3b11d8c 100644 --- a/ecommerce/template/content/RecentlyViewed.ftl +++ b/ecommerce/template/content/RecentlyViewed.ftl @@ -28,9 +28,11 @@ under the License.
    <#list mrvList as mrvArr>
    - \ No newline at end of file + diff --git a/ecommerce/template/content/SearchContent.ftl b/ecommerce/template/content/SearchContent.ftl index e8b62f1e5..c77412dc7 100644 --- a/ecommerce/template/content/SearchContent.ftl +++ b/ecommerce/template/content/SearchContent.ftl @@ -19,80 +19,80 @@ under the License.
    - - - - - - - - - - - - -
    -${uiLabelMap.EcommerceEnterQueryParameters} -  - -
    +
    - - + - <#list productFeatureTypeIdsOrdered as productFeatureTypeId> - <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)> - <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)> - <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]> + + + +
    -
    ${uiLabelMap.ProductFeatures}:
    +
    + ${uiLabelMap.EcommerceEnterQueryParameters} -
    - ${uiLabelMap.CommonAll} - ${uiLabelMap.CommonAny} -
    +
      +
    - - - <#if searchConstraintStrings?has_content> - - - + + + + + <#if searchConstraintStrings?has_content> + + + + + + + + + - - - - - - -
    -
    ${(productFeatureType.get("description",locale))!}:
    +
    ${uiLabelMap.ProductFeatures}:
    +
    - + ${uiLabelMap.CommonAll} + ${uiLabelMap.CommonAny}
    -
    ${uiLabelMap.ProductLastSearch}:
    -
    + <#list productFeatureTypeIdsOrdered as productFeatureTypeId> + <#assign findPftMap = Static["org.apache.ofbiz.base.util.UtilMisc"] + .toMap("productFeatureTypeId", productFeatureTypeId)> + <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)> + <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]> +
    +
    ${(productFeatureType.get("description",locale))!}:
    +
    +
    + +
    +
    +
    ${uiLabelMap.ProductLastSearch}:
    +
    <#list searchConstraintStrings as searchConstraintString> -
     - ${searchConstraintString}
    +
     - ${searchConstraintString}
    ${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}
    - ${uiLabelMap.ProductNewSearch} - ${uiLabelMap.CommonRefineSearch} + ${uiLabelMap.ProductNewSearch} + + ${uiLabelMap.CommonRefineSearch} +
    -
       + +
    -   - -
    +
    @@ -107,8 +107,8 @@ under the License. <#local indent = indent + "  "/> -<@loopSubContent contentId=contentId viewIndex=0 viewSize=9999 returnAfterPickWhen="1==1";> - - <@listSiteIds contentId=content.contentId indentIndex=indentIndex + 1 /> - + <@loopSubContent contentId=contentId viewIndex=0 viewSize=9999 returnAfterPickWhen="1==1";> + + <@listSiteIds contentId=content.contentId indentIndex=indentIndex + 1 /> + diff --git a/ecommerce/template/content/ShowContentTree.ftl b/ecommerce/template/content/ShowContentTree.ftl index 0ed3f1f03..1136a4727 100644 --- a/ecommerce/template/content/ShowContentTree.ftl +++ b/ecommerce/template/content/ShowContentTree.ftl @@ -23,22 +23,26 @@ under the License. <@renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 siteId=siteId searchOn="true"/> <#if ancestorList?has_content && (0 < ancestorList?size) > - <#assign lastContent=ancestorList?last /> -

    [${lastContent.contentId}] ${lastContent.description} - ${uiLabelMap.CommonSearch} -

    + <#assign lastContent=ancestorList?last /> +

    [${lastContent.contentId}] ${lastContent.description} + + ${uiLabelMap.CommonSearch} + +

    <#assign viewIdx = "" /> <#if requestParameters.viewIndex?has_content> -<#assign viewIdx = requestParameters.viewIndex! /> + <#assign viewIdx = requestParameters.viewIndex! /> <#assign viewSz = "" /> <#if requestParameters.viewSize?has_content> -<#assign viewSz = requestParameters.viewSize! /> + <#assign viewSz = requestParameters.viewSize! /> <#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/> -<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in showcontenttree, nodeTrailCsv(0):" + nodeTrailCsv, "")/> +<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"] + .logInfo("in showcontenttree, nodeTrailCsv(0):" + nodeTrailCsv, "")/> <#assign nodeTrail=[]/> <#assign firstContentId=""/> <#if nodeTrailCsv?has_content> @@ -54,58 +58,75 @@ under the License. -->
    - <@renderCategoryBrowse contentId=siteId indentIndex=1 nodeTrail=nodeTrail /> + <@renderCategoryBrowse contentId=siteId indentIndex=1 nodeTrail=nodeTrail />
    <#macro renderCategoryBrowse contentId="" indentIndex=0 nodeTrail=[] viewSz=9999 viewIdx=0> - + - <#local contentIdx = contentId! /> - <#if (!contentIdx?? || contentIdx?length == 0)> - <#local contentIdx = page.contentIdx! /> - <#if (!contentIdx?? || contentIdx?length == 0)> - - + <#local contentIdx = contentId! /> + <#if (!contentIdx?? || contentIdx?length == 0)> + <#local contentIdx = page.contentIdx! /> + <#if (!contentIdx?? || contentIdx?length == 0)> + + - <#local thisContentId=nodeTrail[indentIndex]!/> + <#local thisContentId=nodeTrail[indentIndex]!/> - <#local thisNodeTrailCsv = "" /> - <#local listUpper = (indentIndex - 1) /> - <#if nodeTrail?size < listUpper > - <#local listUpper = (nodeTrail?size - 1)> - - <#list 0..listUpper as idx> - <#if thisNodeTrailCsv?has_content> - <#local thisNodeTrailCsv = thisNodeTrailCsv + ","/> - - <#if nodeTrail[idx]??> - <#local thisNodeTrailCsv = thisNodeTrailCsv + nodeTrail[idx]> - - + <#local thisNodeTrailCsv = "" /> + <#local listUpper = (indentIndex - 1) /> + <#if nodeTrail?size < listUpper > + <#local listUpper = (nodeTrail?size - 1)> + + <#list 0..listUpper as idx> + <#if thisNodeTrailCsv?has_content> + <#local thisNodeTrailCsv = thisNodeTrailCsv + ","/> + + <#if nodeTrail[idx]??> + <#local thisNodeTrailCsv = thisNodeTrailCsv + nodeTrail[idx]> + + - + - - <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK" returnAfterPickWhen="1==1"> - <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in showcontenttree, nodeTrailCsv(1):" + nodeTrailCsv, "")/> - <#local thisCsv=thisNodeTrailCsv + "," + subContentId /> - ${uiLabelMap.CommonView} ${content.description!}
    - + + <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz + contentAssocTypeId="PUBLISH_LINK" returnAfterPickWhen="1==1"> + <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"] + .logInfo("in showcontenttree, nodeTrailCsv(1):" + nodeTrailCsv, "")/> + <#local thisCsv=thisNodeTrailCsv + "," + subContentId /> + + ${uiLabelMap.CommonView} + ${content.description!} +
    + - - <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz returnAfterPickWhen="1==1" orderBy="contentName"> - <#local plusMinus="+"/> - <#if thisContentId == subContentId> - <#local plusMinus="-"/> - - <#local thisCsv=thisNodeTrailCsv /> - <#local thisCsv=thisNodeTrailCsv + "," + subContentId /> - ${plusMinus}  ${content.description!} - ${uiLabelMap.CommonSearch}
    - <#if thisContentId == subContentId> - <#assign catTrail = nodeTrail + [subContentId]/> -
    <@renderCategoryBrowse contentId=subContentId indentIndex=(indentIndex + 1) nodeTrail=catTrail viewSz=viewSz viewIdx=viewIdx />
    - - + + <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz + returnAfterPickWhen="1==1" orderBy="contentName"> + <#local plusMinus="+"/> + <#if thisContentId == subContentId> + <#local plusMinus="-"/> + + <#local thisCsv=thisNodeTrailCsv /> + <#local thisCsv=thisNodeTrailCsv + "," + subContentId /> + + ${plusMinus} +  ${content.description!} + + ${uiLabelMap.CommonSearch} + +
    + <#if thisContentId == subContentId> + <#assign catTrail = nodeTrail + [subContentId]/> +
    + <@renderCategoryBrowse contentId=subContentId indentIndex=(indentIndex + 1) + nodeTrail=catTrail viewSz=viewSz viewIdx=viewIdx /> +
    + + diff --git a/ecommerce/template/content/TplMbContent.ftl b/ecommerce/template/content/TplMbContent.ftl index 258e4aad3..84fb24ce3 100644 --- a/ecommerce/template/content/TplMbContent.ftl +++ b/ecommerce/template/content/TplMbContent.ftl @@ -20,14 +20,13 @@ under the License. <#recurse doc> - <#macro "ask:document"> <#recurse .node> <#macro "ask:title"> -

    ${.node}

    -

    +

    ${.node}

    +

    <#macro "ask:body"> @@ -48,18 +47,23 @@ under the License. <#macro @text> -${.node?html} + ${.node?html} <#-- <#macro content> - <#assign contentId="ECMC" + .node.@id[0]/> - - - - - + <#assign contentId="ECMC" + .node.@id[0]/> + + + + + + + --> diff --git a/ecommerce/template/content/ViewContent.ftl b/ecommerce/template/content/ViewContent.ftl index 0932d2339..81ebdd71b 100644 --- a/ecommerce/template/content/ViewContent.ftl +++ b/ecommerce/template/content/ViewContent.ftl @@ -18,119 +18,135 @@ under the License. -->

    -
    -<#-- Do this so that we don't have to find the content twice (again in renderSubContent) --> -<#assign subContentId=requestParameters.contentId!/> -<#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/> -<#-- <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in viewcontent, nodeTrailCsv:" + nodeTrailCsv, "")/> --> -<#if ancestorList?has_content && (0 < ancestorList?size) > +
    + <#-- Do this so that we don't have to find the content twice (again in renderSubContent) --> + <#assign subContentId=requestParameters.contentId!/> + <#assign nodeTrailCsv=requestParameters.nodeTrailCsv!/> + <#-- <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"] + .logInfo("in viewcontent, nodeTrailCsv:" + nodeTrailCsv, "")/> --> + <#if ancestorList?has_content && (0 < ancestorList?size) > <#assign lastContent=ancestorList?last /> <#assign firstContent=ancestorList[0] /> - -<#if firstContent?has_content> - <#assign siteId = firstContent.contentId/> - -<#if siteId?has_content> - <@renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 siteId=siteId/> - - -<#if lastContent?has_content> -

    [${lastContent.contentId}] ${lastContent.description!}

    - -<#-- -<#assign globalNodeTrail=[]/> -<#assign firstContentId=""/> -<#if nodeTrailCsv?has_content> - <#assign globalNodeTrail=Static["org.apache.ofbiz.base.util.StringUtil"].split(nodeTrailCsv, ",") /> - <#if 0 < globalNodeTrail?size> - <#assign firstContentId=globalNodeTrail[0]?string/> - -<#assign globalNodeTrail=requestParameters.globalNodeTrail?default([])/> ---> -<#if globalNodeTrail?has_content && (0 < globalNodeTrail?size) > + <#if firstContent?has_content> + <#assign siteId = firstContent.contentId/> + + <#if siteId?has_content> + <@renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 siteId=siteId/> + + + <#if lastContent?has_content> +

    [${lastContent.contentId}] ${lastContent.description!}

    + + <#-- + <#assign globalNodeTrail=[]/> + <#assign firstContentId=""/> + <#if nodeTrailCsv?has_content> + <#assign globalNodeTrail=Static["org.apache.ofbiz.base.util.StringUtil"].split(nodeTrailCsv, ",") /> + <#if 0 < globalNodeTrail?size> + <#assign firstContentId=globalNodeTrail[0]?string/> + + + <#assign globalNodeTrail=requestParameters.globalNodeTrail?default([])/> + --> + <#if globalNodeTrail?has_content && (0 < globalNodeTrail?size) > <#assign lastNode = globalNodeTrail?last/> <#if lastNode?has_content> <#assign subContent=lastNode.value/> -<#else> - <#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/> - -<#assign dummy=Static["org.apache.ofbiz.base.util.Debug"].logInfo("in viewcontent, subContent:" + subContent, "")/> -
    -

    ${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!} - ${subContent.description!}:


    - - - - - - - <#assign thisContentId = subContentId/> - <@loopSubContent contentId=thisContentId viewIndex=0 viewSize=9999 contentAssocTypeId="RELATED_CONTENT"> - <#assign thisNodeTrailCsv = nodeTrailCsv /> + <#else> + <#assign subContent = delegator.findOne("Content", + Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/> + + <#assign dummy=Static["org.apache.ofbiz.base.util.Debug"] + .logInfo("in viewcontent, subContent:" + subContent, "")/> +
    +

    ${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!} + - ${subContent.description!}:


    +
      - <@renderSubContentCache subContentId=subContentId /> - -<#-- -<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_VIEW" > - -<@checkPermission mode="equals" entityOperation="_CREATE" targetOperation="HAS_USER_ROLE" > - Respond - ---> -
    - -
    - + + - -
    - ${content.contentName!} +   + <@renderSubContentCache subContentId=subContentId /> + + <#-- + <@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_VIEW" > + + <@checkPermission mode="equals" entityOperation="_CREATE" targetOperation="HAS_USER_ROLE" > + Respond + + --> +
    -
    -<#-- -<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" > - ${permissionErrorMsg!} - ---> + <#assign thisContentId = subContentId/> + <@loopSubContent contentId=thisContentId viewIndex=0 viewSize=9999 contentAssocTypeId="RELATED_CONTENT"> + <#assign thisNodeTrailCsv = nodeTrailCsv /> + + + ${content.contentName!} + + + + +
    + <#-- + <@checkPermission mode="not-equals" subContentId=subContentId + targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" > + ${permissionErrorMsg!} + + --> -
    +
    <#macro renderAncestryPath trail siteId startIndex=0 endIndexOffset=0 buttonTitle="Back to" searchOn="" > - <#local indent = ""> - <#local csv = ""> - <#local counter = 0> - <#local len = trail?size> - + <#local indent = ""> + <#local csv = ""> + <#local counter = 0> + <#local len = trail?size> +
    <#list trail as content> <#if counter < (len - endIndexOffset) && startIndex <= counter > <#if 0 < counter > - <#local csv = csv + ","/> + <#local csv = csv + ","/> <#local csv = csv + content.contentId/> <#if counter < len && startIndex <= counter > - - + - + + + <#local counter = counter + 1> - <#if 20 < counter > <#break/> + <#if 20 < counter > <#break/> -
    +
    ${indent} <#if content.contentTypeId == "WEB_SITE_PUB_PT" > - ${uiLabelMap.CommonBackTo}  ${content.contentName!} + + ${uiLabelMap.CommonBackTo} + +  ${content.contentName!} <#else> - ${uiLabelMap.CommonBackTo}  ${content.contentName!} + + ${uiLabelMap.CommonBackTo} + +  ${content.contentName!} <#local indent = indent + "    "> [${content.contentId!}] <#if searchOn?has_content && searchOn?lower_case == "true"> -   - ${uiLabelMap.CommonSearch} +   + + ${uiLabelMap.CommonSearch} + - -
    + diff --git a/ecommerce/template/customer/AnonContactus.ftl b/ecommerce/template/customer/AnonContactus.ftl index fa30cbe5b..186fb7249 100644 --- a/ecommerce/template/customer/AnonContactus.ftl +++ b/ecommerce/template/customer/AnonContactus.ftl @@ -18,63 +18,83 @@ under the License. -->
    -
    -

    ${uiLabelMap.CommonContactUs}

    -
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ${uiLabelMap.EcommerceSubject}*
    ${uiLabelMap.CommonMessage}*
    ${uiLabelMap.FormFieldTitle_emailAddress}*
    ${uiLabelMap.PartyFirstName}
    ${uiLabelMap.PartyLastName}
    ${uiLabelMap.CommonCaptchaCode}
    ${uiLabelMap.CommonReloadCaptchaCode}
    ${uiLabelMap.CommonVerifyCaptchaCode}*
    -
    -
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ${uiLabelMap.EcommerceSubject} + * +
    ${uiLabelMap.CommonMessage} + * +
    ${uiLabelMap.FormFieldTitle_emailAddress} + * +
    ${uiLabelMap.PartyFirstName} + +
    ${uiLabelMap.PartyLastName} + +
    ${uiLabelMap.CommonCaptchaCode} +
    + +
    + ${uiLabelMap.CommonReloadCaptchaCode} +
    ${uiLabelMap.CommonVerifyCaptchaCode}*
    +
    +
    diff --git a/ecommerce/template/customer/ChangePassword.ftl b/ecommerce/template/customer/ChangePassword.ftl index 68c704408..47b76e98a 100644 --- a/ecommerce/template/customer/ChangePassword.ftl +++ b/ecommerce/template/customer/ChangePassword.ftl @@ -19,9 +19,11 @@ under the License.

    ${uiLabelMap.PartyChangePassword}

    -
    -  ${uiLabelMap.CommonGoBack} -  ${uiLabelMap.CommonSave} +
      + ${uiLabelMap.CommonGoBack}  + + ${uiLabelMap.CommonSave} +

    @@ -40,12 +42,15 @@ under the License.
    - +
    [${uiLabelMap.CommonGoBack}] - [${uiLabelMap.CommonSave}] + + [${uiLabelMap.CommonSave}] + diff --git a/ecommerce/template/customer/CustomerSurvey.ftl b/ecommerce/template/customer/CustomerSurvey.ftl index 96695416f..579080b23 100644 --- a/ecommerce/template/customer/CustomerSurvey.ftl +++ b/ecommerce/template/customer/CustomerSurvey.ftl @@ -18,17 +18,18 @@ under the License. -->
    -
    -
    ${survey.surveyName}
    -
    -
    - <#-- Render the survey --> - <#if surveyWrapper?has_content> -
    - ${surveyWrapper.render()} -
    - <#else> -

    ${uiLabelMap.OrderNothingToDoHere}

    - -
    +
    +
    ${survey.surveyName}
    +
    +
    + <#-- Render the survey --> + <#if surveyWrapper?has_content> +
    + ${surveyWrapper.render()} +
    + <#else> +

    ${uiLabelMap.OrderNothingToDoHere}

    + +
    diff --git a/ecommerce/template/customer/DigitalProductEdit.ftl b/ecommerce/template/customer/DigitalProductEdit.ftl index ba4b26191..28ca00005 100644 --- a/ecommerce/template/customer/DigitalProductEdit.ftl +++ b/ecommerce/template/customer/DigitalProductEdit.ftl @@ -20,76 +20,98 @@ under the License. <#assign productPrice = productPriceList[0]!/>
    -
    -
    ${uiLabelMap.PageTitleDigitalProductEdit}
    -
    -
    -<#if !supplierProduct?has_content && parameters.productId?has_content> -

    ${uiLabelMap.EcommerceMessage1} [${parameters.productId}] ${uiLabelMap.EcommerceMessage2}

    -<#else> - +
    +
    ${uiLabelMap.PageTitleDigitalProductEdit}
    +
    +
    + <#if !supplierProduct?has_content && parameters.productId?has_content> +

    ${uiLabelMap.EcommerceMessage1} [${parameters.productId}] ${uiLabelMap.EcommerceMessage2}

    + <#else> <#if !supplierProduct??>

    ${uiLabelMap.EcommerceAddNewDigitalProduct}

    -
    - + + <#else>

    ${uiLabelMap.EcommerceUpdateDigitalProduct}

    - - - - - - -  ${uiLabelMap.CommonBackToList} - - - - - - - - - - - - - - - - - - - - - - -
    ${uiLabelMap.ProductProductName}
     *
    ${uiLabelMap.ProductProductDescription}
     
    ${uiLabelMap.ProductPrice}
     *
     
     ${uiLabelMap.CommonSave}
    -
    - -
    +
    + + + + +   + ${uiLabelMap.CommonBackToList} + + + + + + + + + + + + + + + + + + + + + +
    +
    ${uiLabelMap.ProductProductName}
    +
      + * +
    +
    ${uiLabelMap.ProductProductDescription}
    +
      + +
    +
    ${uiLabelMap.ProductPrice}
    +
      + * +
    +
     
    +
      + ${uiLabelMap.CommonSave} +
    +
    + +
    <#if supplierProduct?has_content> -
    +
    -
    ${uiLabelMap.OrderDigitalProductFiles}
    +
    ${uiLabelMap.OrderDigitalProductFiles}
    - <#list productContentAndInfoList as productContentAndInfo> -
    - ${productContentAndInfo.contentName} (${uiLabelMap.CommonSince}: ${productContentAndInfo.fromDate}) - ${uiLabelMap.CommonRemove} -
    - - -

    -
    ${uiLabelMap.EcommerceDigitalAddFromMyFiles}
    + <#list productContentAndInfoList as productContentAndInfo>
    -
    - - - - + ${productContentAndInfo.contentName} (${uiLabelMap.CommonSince}: ${productContentAndInfo.fromDate}) + ${uiLabelMap.CommonRemove} +
    + +
    +
    +
    +
    ${uiLabelMap.EcommerceDigitalAddFromMyFiles}
    +
    + + + + + ${uiLabelMap.CommonAdd} -
    -  ${uiLabelMap.CommonBackToList} +
      + ${uiLabelMap.CommonBackToList}
    -
    + diff --git a/ecommerce/template/customer/DigitalProductList.ftl b/ecommerce/template/customer/DigitalProductList.ftl index b958c1f32..fb5a9185b 100644 --- a/ecommerce/template/customer/DigitalProductList.ftl +++ b/ecommerce/template/customer/DigitalProductList.ftl @@ -18,52 +18,67 @@ under the License. -->
    -
    -
    ${uiLabelMap.PageTitleDigitalProductList}
    -
    -
    -
     ${uiLabelMap.EcommerceDigitalNewProduct}
    - - - - - - - - - <#list supplierProductList as supplierProduct> - <#assign product = supplierProduct.getRelatedOne("Product", true)/> - - - - - - - - - - <#if !supplierProductList?has_content> - - -
    -
    ${uiLabelMap.ProductProductName}
    -
      -
    ${uiLabelMap.CommonDescription}
    -
      

    -
    ${(product.productName)!}
    -
      -
    ${(product.description)!}
    -
      - Edit -

    ${uiLabelMap.EcommerceNoDigitalProductsFound}

    +
    +
    ${uiLabelMap.PageTitleDigitalProductList}
    +
    +
    +
      + + ${uiLabelMap.EcommerceDigitalNewProduct} +
    + + + + + + + + + <#list supplierProductList as supplierProduct> + <#assign product = supplierProduct.getRelatedOne("Product", true)/> + + + + + + + + + + + + <#if !supplierProductList?has_content> + + + + +
    +
    ${uiLabelMap.ProductProductName}
    +
      +
    ${uiLabelMap.CommonDescription}
    +
      
    +
    +
    +
    ${(product.productName)!}
    +
      +
    ${(product.description)!}
    +
      + Edit +

    ${uiLabelMap.EcommerceNoDigitalProductsFound}

    +
    -
    -
    ${uiLabelMap.EcommerceDigitalProductPurchaseHistoryCommission}
    -
    -
    -
     ${uiLabelMap.EcommerceDigitalNewProduct}
    +
    +
    ${uiLabelMap.EcommerceDigitalProductPurchaseHistoryCommission}
    +
    +
    diff --git a/ecommerce/template/customer/EditContactMech.ftl b/ecommerce/template/customer/EditContactMech.ftl index e9192dcca..750fb4270 100644 --- a/ecommerce/template/customer/EditContactMech.ftl +++ b/ecommerce/template/customer/EditContactMech.ftl @@ -17,27 +17,30 @@ specific language governing permissions and limitations under the License. --> <#if canNotView> -

    ${uiLabelMap.PartyContactInfoNotBelongToYou}.

    - ${uiLabelMap.CommonBack} +

    ${uiLabelMap.PartyContactInfoNotBelongToYou}.

    +${uiLabelMap.CommonBack} <#else> <#if !contactMech??> - <#-- When creating a new contact mech, first select the type, then actually create --> + <#-- When creating a new contact mech, first select the type, then actually create --> <#if !requestParameters.preContactMechTypeId?? && !preContactMechTypeId??>

    ${uiLabelMap.PartyCreateNewContactInfo}

    - - - - - -
    ${uiLabelMap.PartySelectContactType}: -  ${uiLabelMap.CommonCreate} -
    + + + + + +
    ${uiLabelMap.PartySelectContactType}: +   + ${uiLabelMap.CommonCreate} +
    <#--

    ERROR: Contact information with ID "${contactMechId}" not found!

    --> @@ -46,80 +49,95 @@ under the License. <#if contactMechTypeId??> <#if !contactMech??> -

    ${uiLabelMap.PartyCreateNewContactInfo}

    - ${uiLabelMap.CommonGoBack} - ${uiLabelMap.CommonSave} - - -
    - - <#if contactMechPurposeType??> -
    (${uiLabelMap.PartyNewContactHavePurpose} "${contactMechPurposeType.get("description",locale)!}")
    - - <#if cmNewPurposeTypeId?has_content> - <#if preContactMechTypeId?has_content> - <#if paymentMethodId?has_content> +

    ${uiLabelMap.PartyCreateNewContactInfo}

    + ${uiLabelMap.CommonGoBack} + ${uiLabelMap.CommonSave} +
    + +
    + + <#if contactMechPurposeType??> +
    (${uiLabelMap.PartyNewContactHavePurpose} "${contactMechPurposeType.get("description",locale)!}")
    + + <#if cmNewPurposeTypeId?has_content> + + + <#if preContactMechTypeId?has_content> + + + <#if paymentMethodId?has_content> + + <#else> -

    ${uiLabelMap.PartyEditContactInfo}

    +

    ${uiLabelMap.PartyEditContactInfo}

    ${uiLabelMap.CommonGoBack} ${uiLabelMap.CommonSave} -
    - - - - + + +
    + + <#if contactMechTypeId = "POSTAL_ADDRESS"> @@ -127,67 +145,74 @@ under the License.
    + * + + * + - - + - + + * + - + @@ -196,54 +221,64 @@ under the License. - + <#elseif contactMechTypeId = "EMAIL_ADDRESS"> + * + <#else> - - - - - - - - + + + + + + + +
    ${uiLabelMap.PartyContactPurposes}  - - <#list partyContactMechPurposes! as partyContactMechPurpose> - <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) /> - - - - - - <#if purposeTypes?has_content> +
    - <#if contactMechPurposeType??> - ${contactMechPurposeType.get("description",locale)} - <#else> - ${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}" - - (${uiLabelMap.CommonSince}:${partyContactMechPurpose.fromDate.toString()}) - <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpires}:${partyContactMechPurpose.thruDate.toString()}) - - - - -
    + + + + - - -
    - - + +
    ${uiLabelMap.PartyContactPurposes}  + + <#list partyContactMechPurposes! as partyContactMechPurpose> + <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) /> + + + + <#if purposeTypes?has_content> + + - + - -
    -
    + <#if contactMechPurposeType??> + ${contactMechPurposeType.get("description",locale)} + <#else> + ${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}" + + (${uiLabelMap.CommonSince}:${partyContactMechPurpose.fromDate.toString()}) + <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpires} + :${partyContactMechPurpose.thruDate.toString()}) +
    + + +
    +
    +
    + + -
    +
    ${uiLabelMap.PartyAddPurpose} + ${uiLabelMap.PartyAddPurpose} +
    -
    +
    ${uiLabelMap.PartyToName}   - +
    ${uiLabelMap.PartyAttentionName}   - +
    ${uiLabelMap.PartyAddressLine1}   - - *
    ${uiLabelMap.PartyAddressLine2}   - +
    ${uiLabelMap.PartyCity}   - - *
    ${uiLabelMap.PartyState}   +
    ${uiLabelMap.PartyZipCode}   - - *
    ${uiLabelMap.CommonCountry}  
    ${uiLabelMap.PartyPhoneNumber}   - - -  - -  -  ${uiLabelMap.PartyExtension}  + -  + -  +   + ${uiLabelMap.PartyExtension}  +
     [${uiLabelMap.CommonCountryCode}] [${uiLabelMap.PartyAreaCode}] [${uiLabelMap.PartyContactNumber}] [${uiLabelMap.PartyExtension}][${uiLabelMap.CommonCountryCode}] [${uiLabelMap.PartyAreaCode}] [${uiLabelMap.PartyContactNumber}] + [${uiLabelMap.PartyExtension}] +
    ${uiLabelMap.PartyEmailAddress}   - - *
    ${contactMechType.get("description",locale)!}   - - *
    ${uiLabelMap.PartyAllowSolicitation}?  - + *
    ${uiLabelMap.PartyAllowSolicitation}?  + +
    - ${uiLabelMap.CommonGoBack} ${uiLabelMap.CommonSave} - <#else> + <#else> ${uiLabelMap.CommonGoBack} diff --git a/ecommerce/template/customer/EditCreditCard.ftl b/ecommerce/template/customer/EditCreditCard.ftl index 1265eef1a..b5c405b67 100644 --- a/ecommerce/template/customer/EditCreditCard.ftl +++ b/ecommerce/template/customer/EditCreditCard.ftl @@ -19,124 +19,145 @@ under the License. <#if canNotView>

    ${uiLabelMap.AccountingCardInfoNotBelongToYou}.

    -${uiLabelMap.CommonGoBack} + ${uiLabelMap.CommonGoBack} <#else> <#if !creditCard??> -

    ${uiLabelMap.AccountingAddNewCreditCard}

    -
    -
    - <#else> -

    ${uiLabelMap.AccountingEditCreditCard}

    - -
    - - -  ${uiLabelMap.CommonGoBack} -  ${uiLabelMap.CommonSave} -

    - - ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")} - - - -
    ${uiLabelMap.PartyBillingAddress}  - <#-- Removed because is confusing, can add but would have to come back here with all data populated as before... - - [Create New Address]   - --> - - <#assign hasCurrent = false /> - <#if curPostalAddress?has_content> - <#assign hasCurrent = true /> - - - - - <#else> - <#-- - - --> - +

    ${uiLabelMap.AccountingAddNewCreditCard}

    + +
    + <#else> +

    ${uiLabelMap.AccountingEditCreditCard}

    + +
    - - - ${uiLabelMap.PartyUseCurrentAddress}: - <#list curPartyContactMechPurposes as curPartyContactMechPurpose> - <#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) /> -
    - ${curContactMechPurposeType.get("description",locale)!} - <#if curPartyContactMechPurpose.thruDate??> - ((${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()}) - -
    - -
    - <#if curPostalAddress.toName??>${uiLabelMap.CommonTo}: ${curPostalAddress.toName}
    - <#if curPostalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName}
    - ${curPostalAddress.address1!}
    - <#if curPostalAddress.address2??>${curPostalAddress.address2}
    - ${curPostalAddress.city}<#if curPostalAddress.stateProvinceGeoId?has_content>, ${curPostalAddress.stateProvinceGeoId} ${curPostalAddress.postalCode} - <#if curPostalAddress.countryGeoId??>
    ${curPostalAddress.countryGeoId} -
    (${uiLabelMap.CommonUpdated}: ${(curPartyContactMech.fromDate.toString())!})
    - <#if curPartyContactMech.thruDate??>
    ${uiLabelMap.CommonDelete}: ${curPartyContactMech.thruDate.toString()} -
    -
    -
    ${uiLabelMap.PartyBillingAddressNotSelected}
    -
    + ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")} + + + + - -
    ${uiLabelMap.PartyBillingAddress}  + <#-- Removed because is confusing, can add but would have to come back here with all data populated as before... + + [Create New Address]   + --> + + <#assign hasCurrent = false /> + <#if curPostalAddress?has_content> + <#assign hasCurrent = true /> + + + + + <#else> + <#-- + + --> + <#-- is confusing + + + + --> + <#list postalAddressInfos as postalAddressInfo> + <#assign contactMech = postalAddressInfo.contactMech /> + <#assign partyContactMechPurposes = postalAddressInfo.partyContactMechPurposes /> + <#assign postalAddress = postalAddressInfo.postalAddress /> + <#assign partyContactMech = postalAddressInfo.partyContactMech /> + + + + + + <#if !postalAddressInfos?has_content && !curContactMech??> + + + + - + - --> - <#list postalAddressInfos as postalAddressInfo> - <#assign contactMech = postalAddressInfo.contactMech /> - <#assign partyContactMechPurposes = postalAddressInfo.partyContactMechPurposes /> - <#assign postalAddress = postalAddressInfo.postalAddress /> - <#assign partyContactMech = postalAddressInfo.partyContactMech /> - - - - - - <#if !postalAddressInfos?has_content && !curContactMech??> - - - - - - -
    + + + ${uiLabelMap.PartyUseCurrentAddress}: + <#list curPartyContactMechPurposes as curPartyContactMechPurpose> + <#assign curContactMechPurposeType = + curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) /> +
    + ${curContactMechPurposeType.get("description",locale)!} + <#if curPartyContactMechPurpose.thruDate??> + ((${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()}) + +
    + +
    + <#if curPostalAddress.toName??>${uiLabelMap.CommonTo}: ${curPostalAddress.toName}
    + <#if curPostalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName} +
    + + ${curPostalAddress.address1!}
    + <#if curPostalAddress.address2??>${curPostalAddress.address2}
    + ${curPostalAddress.city} + <#if curPostalAddress.stateProvinceGeoId?has_content>,  + ${curPostalAddress.stateProvinceGeoId} +  ${curPostalAddress.postalCode} + <#if curPostalAddress.countryGeoId??>
    ${curPostalAddress.countryGeoId} +
    (${uiLabelMap.CommonUpdated}: ${(curPartyContactMech.fromDate.toString())!})
    + <#if curPartyContactMech.thruDate??> +
    ${uiLabelMap.CommonDelete}: ${curPartyContactMech.thruDate.toString()} + +
    +
    +
    ${uiLabelMap.PartyBillingAddressNotSelected}
    +
    +
    ${uiLabelMap.EcommerceMessage3}
    +
    + + + <#list partyContactMechPurposes as partyContactMechPurpose> + <#assign contactMechPurposeType = + partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) /> +
    + ${contactMechPurposeType.get("description",locale)!} + <#if partyContactMechPurpose.thruDate??> + (${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate}) + +
    + +
    + <#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}
    + <#if postalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}
    + ${postalAddress.address1!}
    + <#if postalAddress.address2??>${postalAddress.address2}
    + ${postalAddress.city} + <#if postalAddress.stateProvinceGeoId?has_content> + , ${postalAddress.stateProvinceGeoId} +   + ${postalAddress.postalCode} + <#if postalAddress.countryGeoId??>
    ${postalAddress.countryGeoId} +
    +
    (${uiLabelMap.CommonUpdated}: ${(partyContactMech.fromDate.toString())!})
    + <#if partyContactMech.thruDate??> +
    ${uiLabelMap.CommonDelete}: ${partyContactMech.thruDate.toString()}
    + +
    +
    ${uiLabelMap.PartyNoContactInformation}.
    +
    -
    ${uiLabelMap.EcommerceMessage3}
    +
    + checked="checked"/> + + ${uiLabelMap.PartyCreateNewBillingAddress}.
    - - - <#list partyContactMechPurposes as partyContactMechPurpose> - <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) /> -
    - ${contactMechPurposeType.get("description",locale)!} - <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate}) -
    - -
    - <#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}
    - <#if postalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}
    - ${postalAddress.address1!}
    - <#if postalAddress.address2??>${postalAddress.address2}
    - ${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId} ${postalAddress.postalCode} - <#if postalAddress.countryGeoId??>
    ${postalAddress.countryGeoId} -
    -
    (${uiLabelMap.CommonUpdated}: ${(partyContactMech.fromDate.toString())!})
    - <#if partyContactMech.thruDate??>
    ${uiLabelMap.CommonDelete}: ${partyContactMech.thruDate.toString()}
    -
    ${uiLabelMap.PartyNoContactInformation}.
    - checked="checked" /> - - ${uiLabelMap.PartyCreateNewBillingAddress}. -
    -
    - - +
    + + + +

    +  ${uiLabelMap.CommonGoBack} -  ${uiLabelMap.CommonSave} +  ${uiLabelMap.CommonSave} diff --git a/ecommerce/template/customer/EditEftAccount.ftl b/ecommerce/template/customer/EditEftAccount.ftl index 0b61bb55f..6c730a01b 100644 --- a/ecommerce/template/customer/EditEftAccount.ftl +++ b/ecommerce/template/customer/EditEftAccount.ftl @@ -18,51 +18,67 @@ under the License. --> <#if canNotView> -

    ${uiLabelMap.AccountingEFTNotBelongToYou}.

    - ${uiLabelMap.CommonGoBack} +

    ${uiLabelMap.AccountingEFTNotBelongToYou}.

      + ${uiLabelMap.CommonGoBack} <#else> - <#if !eftAccount??> -

    ${uiLabelMap.AccountingAddNewEftAccount}

    -
    - <#else> -

    ${uiLabelMap.PageTitleEditEFTAccount}

    - - - -  ${uiLabelMap.CommonGoBack} -  ${uiLabelMap.CommonSave} -

    - + <#if !eftAccount??> +

    ${uiLabelMap.AccountingAddNewEftAccount}

    + + <#else> +

    ${uiLabelMap.PageTitleEditEFTAccount}

    + + +   + ${uiLabelMap.CommonGoBack}  + ${uiLabelMap.CommonSave} +

    +

    - + - - - - - - + + + - + + * + - + + + + + + - - - - - - - - - - - - + + + + + + + + + + +
    ${uiLabelMap.AccountingNameOnAccount}
    +
    ${uiLabelMap.AccountingNameOnAccount}
    +
      - - *
    ${uiLabelMap.AccountingCompanyNameOnAccount}
      - + *
    ${uiLabelMap.AccountingBankName}
    +
    ${uiLabelMap.AccountingCompanyNameOnAccount}
    +
      - - *
    ${uiLabelMap.AccountingRoutingNumber}
    +
    ${uiLabelMap.AccountingBankName}
    +
      - - *
    ${uiLabelMap.AccountingAccountType}
    +
    ${uiLabelMap.AccountingRoutingNumber}
    +
      + * +
    +
    ${uiLabelMap.AccountingAccountType}
    +
      - *
    ${uiLabelMap.AccountingAccountNumber}
      - - *
    ${uiLabelMap.CommonDescription}
      - + *
    ${uiLabelMap.PartyBillingAddress}
    +
    ${uiLabelMap.AccountingAccountNumber}
    +
      + * +
    +
    ${uiLabelMap.CommonDescription}
    +
      + +
    +
    ${uiLabelMap.PartyBillingAddress}
    +
      <#-- Removed because is confusing, can add but would have to come back here with all data populated as before... @@ -97,41 +120,54 @@ under the License. [Create New Address]   --> - <#if curPostalAddress??> - - - + + - - <#else> - <#-- - - --> - +
    (${uiLabelMap.CommonUpdated}: ${(curPartyContactMech.fromDate.toString())!})
    + <#if curPartyContactMech.thruDate??> +
    ${uiLabelMap.CommonDelete}: ${curPartyContactMech.thruDate.toString()}
    + + + + <#else> + <#-- + + + + --> + <#-- is confusing <#if !postalAddressInfos?has_content && !curContactMech??> - + + +
    - - -
    ${uiLabelMap.PartyUseCurrentAddress}:
    - <#list curPartyContactMechPurposes as curPartyContactMechPurpose> - <#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)> + <#if curPostalAddress??> +
    + + +
    ${uiLabelMap.PartyUseCurrentAddress}:
    + <#list curPartyContactMechPurposes as curPartyContactMechPurpose> + <#assign curContactMechPurposeType = + curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)> +
    + ${curContactMechPurposeType.get("description",locale)!} + <#if curPartyContactMechPurpose.thruDate??> + (${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()}) + +
    +
    - ${curContactMechPurposeType.get("description",locale)!} - <#if curPartyContactMechPurpose.thruDate??> - (${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()}) + <#if curPostalAddress.toName??> + ${uiLabelMap.CommonTo}: ${curPostalAddress.toName}
    + <#if curPostalAddress.attnName??> + ${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName}
    + + ${curPostalAddress.address1!}
    + <#if curPostalAddress.address2??>${curPostalAddress.address2}
    + ${curPostalAddress.city} + <#if curPostalAddress.stateProvinceGeoId?has_content>,  + ${curPostalAddress.stateProvinceGeoId} +   + ${curPostalAddress.postalCode} + <#if curPostalAddress.countryGeoId??>
    ${curPostalAddress.countryGeoId}
    - -
    - <#if curPostalAddress.toName??>${uiLabelMap.CommonTo}: ${curPostalAddress.toName}
    - <#if curPostalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName}
    - ${curPostalAddress.address1!}
    - <#if curPostalAddress.address2??>${curPostalAddress.address2}
    - ${curPostalAddress.city}<#if curPostalAddress.stateProvinceGeoId?has_content>, ${curPostalAddress.stateProvinceGeoId} ${curPostalAddress.postalCode} - <#if curPostalAddress.countryGeoId??>
    ${curPostalAddress.countryGeoId} -
    -
    (${uiLabelMap.CommonUpdated}: ${(curPartyContactMech.fromDate.toString())!})
    - <#if curPartyContactMech.thruDate??>
    ${uiLabelMap.CommonDelete}: ${curPartyContactMech.thruDate.toString()}
    -
    -
    ${uiLabelMap.PartyNoBillingAddress}
    -
    +
    ${uiLabelMap.PartyNoBillingAddress}
    +
    @@ -146,38 +182,53 @@ under the License. <#assign partyContactMech = postalAddressInfo.partyContactMech>
    - + <#list partyContactMechPurposes as partyContactMechPurpose> - <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)> -
    - ${contactMechPurposeType.get("description",locale)!} - <#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate}) -
    + <#assign contactMechPurposeType = + partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)> +
    + ${contactMechPurposeType.get("description",locale)!} + <#if partyContactMechPurpose.thruDate??> + (${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate}) + +
    - <#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}
    - <#if postalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}
    - ${postalAddress.address1!}
    - <#if postalAddress.address2??>${postalAddress.address2}
    - ${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId} ${postalAddress.postalCode} - <#if postalAddress.countryGeoId??>
    ${postalAddress.countryGeoId} + <#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}
    + <#if postalAddress.attnName??> + ${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}
    + + ${postalAddress.address1!}
    + <#if postalAddress.address2??>${postalAddress.address2}
    + ${postalAddress.city} + <#if postalAddress.stateProvinceGeoId?has_content>,  + ${postalAddress.stateProvinceGeoId} +   + ${postalAddress.postalCode} + <#if postalAddress.countryGeoId??>
    ${postalAddress.countryGeoId}
    (${uiLabelMap.CommonUpdated}: ${(partyContactMech.fromDate.toString())!})
    - <#if partyContactMech.thruDate??>
    ${uiLabelMap.CommonDelete}: ${partyContactMech.thruDate.toString()}
    + <#if partyContactMech.thruDate??> +
    ${uiLabelMap.CommonDelete}: ${partyContactMech.thruDate.toString()}
    +
    ${uiLabelMap.PartyNoContactInformation}.
    +
    ${uiLabelMap.PartyNoContactInformation}.
    +
    -

    +  ${uiLabelMap.CommonGoBack} -  ${uiLabelMap.CommonSave} +  ${uiLabelMap.CommonSave} diff --git a/ecommerce/template/customer/EditGiftCard.ftl b/ecommerce/template/customer/EditGiftCard.ftl index a9d4cacd4..1844bba9e 100644 --- a/ecommerce/template/customer/EditGiftCard.ftl +++ b/ecommerce/template/customer/EditGiftCard.ftl @@ -18,96 +18,108 @@ under the License. --> <#if canNotView> -

    ${uiLabelMap.AccountingCardInfoNotBelongToYou}.

    - [${uiLabelMap.CommonGoBack}] +

    ${uiLabelMap.AccountingCardInfoNotBelongToYou}.

      + [${uiLabelMap.CommonGoBack}] <#else> - <#if !giftCard??> -

    ${uiLabelMap.AccountingAddNewGiftCard}

    -
    - <#else> -

    ${uiLabelMap.AccountingEditGiftCard}

    - - - -  ${uiLabelMap.CommonGoBack} -  ${uiLabelMap.CommonSave} -

    - - - - - + + + + + + + + + + + + + + + + +
    ${uiLabelMap.AccountingCardNumber}
      - <#if giftCardData?has_content && giftCardData.cardNumber?has_content> - <#assign pcardNumberDisplay = ""> - <#assign pcardNumber = giftCardData.cardNumber!> - <#if pcardNumber?has_content> - <#assign psize = pcardNumber?length - 4> - <#if 0 < psize> - <#list 0 .. psize-1 as foo> - <#assign pcardNumberDisplay = pcardNumberDisplay + "*"> - - <#assign pcardNumberDisplay = pcardNumberDisplay + pcardNumber[psize .. psize + 3]> - <#else> - <#assign pcardNumberDisplay = pcardNumber> + <#if !giftCard??> +

    ${uiLabelMap.AccountingAddNewGiftCard}

    + + <#else> +

    ${uiLabelMap.AccountingEditGiftCard}

    + + +   + ${uiLabelMap.CommonGoBack}  + ${uiLabelMap.CommonSave} +

    + + + + + - - - - - - - - - - - - - - - - -
    +
    ${uiLabelMap.AccountingCardNumber}
    +
      + <#if giftCardData?has_content && giftCardData.cardNumber?has_content> + <#assign pcardNumberDisplay = ""> + <#assign pcardNumber = giftCardData.cardNumber!> + <#if pcardNumber?has_content> + <#assign psize = pcardNumber?length - 4> + <#if 0 < psize> + <#list 0 .. psize-1 as foo> + <#assign pcardNumberDisplay = pcardNumberDisplay + "*"> + + <#assign pcardNumberDisplay = pcardNumberDisplay + pcardNumber[psize .. psize + 3]> + <#else> + <#assign pcardNumberDisplay = pcardNumber> + + - - - -
    ${uiLabelMap.AccountingPINNumber}
      - -
    ${uiLabelMap.AccountingExpirationDate}
      - <#assign expMonth = ""> - <#assign expYear = ""> - <#if giftCardData?? && giftCardData.expireDate??> - <#assign expDate = giftCard.expireDate> - <#if (expDate?? && expDate.indexOf("/") > 0)> - <#assign expMonth = expDate.substring(0,expDate.indexOf("/"))> - <#assign expYear = expDate.substring(expDate.indexOf("/")+1)> - - - - -
    ${uiLabelMap.CommonDescription}
      - -
    - -  ${uiLabelMap.CommonGoBack} -  ${uiLabelMap.CommonSave} + +

    +
    ${uiLabelMap.AccountingPINNumber}
    +
      + +
    +
    ${uiLabelMap.AccountingExpirationDate}
    +
      + <#assign expMonth = ""> + <#assign expYear = ""> + <#if giftCardData?? && giftCardData.expireDate??> + <#assign expDate = giftCard.expireDate> + <#if (expDate?? && expDate.indexOf("/") > 0)> + <#assign expMonth = expDate.substring(0,expDate.indexOf("/"))> + <#assign expYear = expDate.substring(expDate.indexOf("/")+1)> + + + + +
    +
    ${uiLabelMap.CommonDescription}
    +
      + +
    +   + ${uiLabelMap.CommonGoBack}  + ${uiLabelMap.CommonSave} diff --git a/ecommerce/template/customer/EditPerson.ftl b/ecommerce/template/customer/EditPerson.ftl index 68f8540fd..9a59b7920 100644 --- a/ecommerce/template/customer/EditPerson.ftl +++ b/ecommerce/template/customer/EditPerson.ftl @@ -17,162 +17,172 @@ specific language governing permissions and limitations under the License. --> <#if person??> -

    ${uiLabelMap.PartyEditPersonalInformation}

    -  
    +

    ${uiLabelMap.PartyEditPersonalInformation}

      + <#else> -

    ${uiLabelMap.PartyAddNewPersonalInformation}

    -   +

    ${uiLabelMap.PartyAddNewPersonalInformation}

      + -
    -  ${uiLabelMap.CommonGoBack} -  ${uiLabelMap.CommonSave} -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ${uiLabelMap.CommonTitle} - -
    ${uiLabelMap.PartyFirstName} - - *
    ${uiLabelMap.PartyMiddleInitial} - -
    ${uiLabelMap.PartyLastName} - - *
    ${uiLabelMap.PartySuffix} - -
    ${uiLabelMap.PartyNickName} - -
    ${uiLabelMap.PartyGender} - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + <#if personData.gender == "F" >${uiLabelMap.CommonFemale} + + + <#else> + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ${uiLabelMap.CommonTitle} + +
    ${uiLabelMap.PartyFirstName} + * +
    ${uiLabelMap.PartyMiddleInitial} + +
    ${uiLabelMap.PartyLastName} + + * +
    ${uiLabelMap.PartySuffix} + +
    ${uiLabelMap.PartyNickName} + +
    ${uiLabelMap.PartyGender} + -
    ${uiLabelMap.PartyBirthDate} - -
    ${uiLabelMap.CommonFormatDate}
    -
    ${uiLabelMap.PartyHeight} - -
    ${uiLabelMap.PartyWeight} - -
    ${uiLabelMap.PartyBirthDate} + +
    ${uiLabelMap.CommonFormatDate}
    +
    ${uiLabelMap.PartyHeight} + +
    ${uiLabelMap.PartyWeight} + +
    ${uiLabelMap.PartyMaidenName} - -
    ${uiLabelMap.PartyMaritalStatus} - -
    ${uiLabelMap.PartySocialSecurityNumber} - -
    ${uiLabelMap.PartyPassportNumber} - -
    ${uiLabelMap.PartyPassportExpireDate} - -
    ${uiLabelMap.CommonFormatDate}
    -
    ${uiLabelMap.PartyTotalYearsWorkExperience} - -
    ${uiLabelMap.CommonComment} - -
    - - - ${uiLabelMap.CommonGoBack} - ${uiLabelMap.CommonSave} \ No newline at end of file +
    ${uiLabelMap.PartyMaidenName} + +
    ${uiLabelMap.PartyMaritalStatus} + +
    ${uiLabelMap.PartySocialSecurityNumber} + +
    ${uiLabelMap.PartyPassportNumber} + +
    ${uiLabelMap.PartyPassportExpireDate} + +
    ${uiLabelMap.CommonFormatDate}
    +
    ${uiLabelMap.PartyTotalYearsWorkExperience} + +
    ${uiLabelMap.CommonComment} + +
    +

    +   + ${uiLabelMap.CommonGoBack}  + ${uiLabelMap.CommonSave} \ No newline at end of file diff --git a/ecommerce/template/customer/FinAccountDetail.ftl b/ecommerce/template/customer/FinAccountDetail.ftl index 73a1b5f38..80151c9b6 100644 --- a/ecommerce/template/customer/FinAccountDetail.ftl +++ b/ecommerce/template/customer/FinAccountDetail.ftl @@ -19,27 +19,47 @@ under the License. - - + + - - + + - - + + - - + + - <#if ownedFinAccount.replenishLevel??> +<#if ownedFinAccount.replenishLevel??> - - + + - +
    Account Number:
    ${ownedFinAccount.finAccountId}
    +
    Account Number:
    +
    +
    ${ownedFinAccount.finAccountId}
    +
    Currency:
    ${(accountCurrencyUom.description)!} [${ownedFinAccount.currencyUomId!}]
    +
    Currency:
    +
    +
    ${(accountCurrencyUom.description)!} [${ownedFinAccount.currencyUomId!}]
    +
    Date Opened:
    ${ownedFinAccount.fromDate!}
    +
    Date Opened:
    +
    +
    ${ownedFinAccount.fromDate!}
    +
    Status:
    ${(finAccountStatusItem.description)?default("Active")}
    +
    Status:
    +
    +
    ${(finAccountStatusItem.description)?default("Active")}
    +
    Replenish Level:
    ${ownedFinAccount.replenishLevel}
    +
    Replenish Level:
    +
    +
    ${ownedFinAccount.replenishLevel}
    +
    @@ -51,21 +71,26 @@ under the License. - <#list ownedFinAccountTransList as ownedFinAccountTrans> - <#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType", false)/> - <#assign displayAmount = ownedFinAccountTrans.amount/> - <#if ownedFinAccountTrans.finAccountTransTypeId == "WITHDRAWAL"> - <#assign displayAmount = -displayAmount/> - - - - - - - - - - + <#list ownedFinAccountTransList as ownedFinAccountTrans> + <#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType", false)/> + <#assign displayAmount = ownedFinAccountTrans.amount/> + <#if ownedFinAccountTrans.finAccountTransTypeId == "WITHDRAWAL"> + <#assign displayAmount = -displayAmount/> + + + + + + + + + + @@ -75,32 +100,32 @@ under the License.
    Type Amount
    ${ownedFinAccountTrans.transactionDate!}${ownedFinAccountTrans.finAccountTransId}<#if ownedFinAccountTrans.orderId?has_content>${ownedFinAccountTrans.orderId!}:${ownedFinAccountTrans.orderItemSeqId!}<#else> <#if ownedFinAccountTrans.paymentId?has_content>${ownedFinAccountTrans.paymentId!}<#else> ${finAccountTransType.description?default(ownedFinAccountTrans.finAccountTransTypeId)!}<@ofbizCurrency amount=displayAmount isoCode=ownedFinAccount.currencyUomId/>
    ${ownedFinAccountTrans.transactionDate!}${ownedFinAccountTrans.finAccountTransId} + <#if ownedFinAccountTrans.orderId?has_content> + ${ownedFinAccountTrans.orderId!}:${ownedFinAccountTrans.orderItemSeqId!} + <#else>  + + <#if ownedFinAccountTrans.paymentId?has_content>${ownedFinAccountTrans.paymentId!}<#else> ${finAccountTransType.description?default(ownedFinAccountTrans.finAccountTransTypeId)!}<@ofbizCurrency amount=displayAmount isoCode=ownedFinAccount.currencyUomId/>
    Actual Balance  
    <#if ownedFinAccountAuthList?has_content> - - - - - - - - - - - - - - <#list ownedFinAccountAuthList as ownedFinAccountAuth> - - - - - - - - - - - - - -
    Authorization ${uiLabelMap.CommonDate}IDExpiresAmount
    Actual Balance  <@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/>
    ${ownedFinAccountAuth.authorizationDate!}${ownedFinAccountAuth.finAccountAuthId}${ownedFinAccountAuth.thruDate!}<@ofbizCurrency amount=-ownedFinAccountAuth.amount isoCode=ownedFinAccount.currencyUomId/>
    Available Balance  <@ofbizCurrency amount=ownedFinAccount.availableBalance isoCode=ownedFinAccount.currencyUomId/>
    + + + + + + + + + + + + + + <#list ownedFinAccountAuthList as ownedFinAccountAuth> + + + + + + + + + + + + + +
    Authorization ${uiLabelMap.CommonDate}IDExpiresAmount
    Actual Balance  <@ofbizCurrency amount=ownedFinAccount.actualBalance isoCode=ownedFinAccount.currencyUomId/>
    ${ownedFinAccountAuth.authorizationDate!}${ownedFinAccountAuth.finAccountAuthId}${ownedFinAccountAuth.thruDate!}<@ofbizCurrency amount=-ownedFinAccountAuth.amount isoCode=ownedFinAccount.currencyUomId/>
    Available Balance  <@ofbizCurrency amount=ownedFinAccount.availableBalance isoCode=ownedFinAccount.currencyUomId/>
    diff --git a/ecommerce/template/customer/GiftCardBalance.ftl b/ecommerce/template/customer/GiftCardBalance.ftl index c1cf6aea7..5792c25f8 100644 --- a/ecommerce/template/customer/GiftCardBalance.ftl +++ b/ecommerce/template/customer/GiftCardBalance.ftl @@ -18,11 +18,11 @@ under the License. -->

    ${uiLabelMap.AccountingGiftCardBalance}

    -
    +
    ${uiLabelMap.AccountingEnterGiftCardNumber}
    -
    +
    -
    +
    <#if requestAttributes.processResult??> @@ -43,23 +43,35 @@ under the License. - + + + - - + + - - + + - - + + - - + + + +
     
     
    ${uiLabelMap.AccountingCardNumber}
    +
    ${uiLabelMap.AccountingCardNumber}
    +
    + +
    ${uiLabelMap.AccountingPINNumber}
    +
    ${uiLabelMap.AccountingPINNumber}
    +
     
     
    + +
    -
    +
    diff --git a/ecommerce/template/customer/GiftCardLink.ftl b/ecommerce/template/customer/GiftCardLink.ftl index 85b895c93..0715d5458 100644 --- a/ecommerce/template/customer/GiftCardLink.ftl +++ b/ecommerce/template/customer/GiftCardLink.ftl @@ -18,14 +18,14 @@ under the License. -->

    ${uiLabelMap.AccountingGiftCardLink}

    -
    +
    ${uiLabelMap.AccountingEnterGiftCardLink}.
    -
    +
    - + <#if userLogin?has_content> - + @@ -34,12 +34,16 @@ under the License. - - + + - - + + @@ -50,19 +54,24 @@ under the License. - - + + - - + + - +
    ${uiLabelMap.AccountingCardNumber}
    +
    ${uiLabelMap.AccountingCardNumber}
    +
    ${uiLabelMap.AccountingPINNumber}
    +
    ${uiLabelMap.AccountingPINNumber}
    +
     
    ${uiLabelMap.AccountingCardNumber}
    +
    ${uiLabelMap.AccountingCardNumber}
    +
    ${uiLabelMap.AccountingPINNumber}
    +
    ${uiLabelMap.AccountingPINNumber}
    +
     
    +
    -
    +
    diff --git a/ecommerce/template/customer/MessageDetail.ftl b/ecommerce/template/customer/MessageDetail.ftl index a545c809a..7ff8a5423 100644 --- a/ecommerce/template/customer/MessageDetail.ftl +++ b/ecommerce/template/customer/MessageDetail.ftl @@ -19,48 +19,72 @@ under the License. <#assign delegator = requestAttributes.delegator> <#if communicationEvent.partyIdFrom??> - <#assign fromName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)> + <#assign fromName = + Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)> <#if communicationEvent.partyIdTo??> - <#assign toName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)> + <#assign toName = + Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)>
    -
    - -
    ${uiLabelMap.EcommerceReadMessage}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
     
    ${uiLabelMap.CommonFrom}:
    ${fromName!}
    ${uiLabelMap.CommonTo}:
    ${toName!}
    ${uiLabelMap.CommonDate}:
    ${communicationEvent.entryDate}
    ${uiLabelMap.EcommerceSubject}:
     ${(communicationEvent.subject)?default("[${uiLabelMap.EcommerceNoSubject}]")}
     
      -
    ${StringUtil.wrapString(communicationEvent.content)?default("[${uiLabelMap.EcommerceEmptyBody}]")}
    -
    +
    + +
    ${uiLabelMap.EcommerceReadMessage}
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     
    +
    ${uiLabelMap.CommonFrom}:
    +
    +
    ${fromName!}
    +
    +
    ${uiLabelMap.CommonTo}:
    +
    +
    ${toName!}
    +
    +
    ${uiLabelMap.CommonDate}:
    +
    +
    ${communicationEvent.entryDate}
    +
    +
    ${uiLabelMap.EcommerceSubject}:
    +
    +
     ${(communicationEvent.subject)?default("[${uiLabelMap.EcommerceNoSubject}]")}
    +
     
      +
    ${StringUtil.wrapString(communicationEvent.content)?default("[${uiLabelMap.EcommerceEmptyBody}]")}
    +
    +
    diff --git a/ecommerce/template/customer/MessageList.ftl b/ecommerce/template/customer/MessageList.ftl index 34c86e44c..73572c02e 100644 --- a/ecommerce/template/customer/MessageList.ftl +++ b/ecommerce/template/customer/MessageList.ftl @@ -19,67 +19,97 @@ under the License. <#macro showMessage communicationEvent isSentMessage index> <#if communicationEvent.partyIdFrom?has_content> - <#assign partyNameFrom = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)> + <#assign partyNameFrom = + Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdFrom, true)> <#else> <#assign partyNameFrom = "${uiLabelMap.CommonNA}"> <#if communicationEvent.partyIdTo?has_content> - <#assign partyNameTo = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)> + <#assign partyNameTo = + Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, communicationEvent.partyIdTo, true)> <#else> <#assign partyNameTo = "${uiLabelMap.CommonNA}"> - -
    ${partyNameFrom}
    -
    ${partyNameTo}
    -
    ${communicationEvent.subject?default("")}
    -
    ${communicationEvent.entryDate}
    - -
    - -
    - ${uiLabelMap.EcommerceRead} - - <#if isSentMessage> -
    - -
    - ${uiLabelMap.PartyReply} - - - + + +
    ${partyNameFrom}
    + + +
    ${partyNameTo}
    + + +
    ${communicationEvent.subject?default("")}
    + + +
    ${communicationEvent.entryDate}
    + + +
    + +
    + ${uiLabelMap.EcommerceRead} + <#if isSentMessage> +
    + +
    + ${uiLabelMap.PartyReply} + + +
    -
    - -
    ${uiLabelMap.CommonMessages}
    -
    -
    - - <#if (!receivedCommunicationEvents?has_content && !sentCommunicationEvents?has_content)> - - <#else> - - - - - - - - - <#list receivedCommunicationEvents! as receivedCommunicationEvent> - <@showMessage communicationEvent=receivedCommunicationEvent isSentMessage=false index=receivedCommunicationEvent_index/> - - <#list sentCommunicationEvents! as sentCommunicationEvent> - <@showMessage communicationEvent=sentCommunicationEvent isSentMessage=true index=sentCommunicationEvent_index/> - - -
    ${uiLabelMap.EcommerceNoMessages}.
    ${uiLabelMap.CommonFrom}
    ${uiLabelMap.CommonTo}
    ${uiLabelMap.EcommerceSubject}
    ${uiLabelMap.EcommerceSentDate}
     

    +
    + +
    ${uiLabelMap.CommonMessages}
    +
    +
    + + <#if (!receivedCommunicationEvents?has_content && !sentCommunicationEvents?has_content)> + + + + <#else> + + + + + + + + + + + <#list receivedCommunicationEvents! as receivedCommunicationEvent> + <@showMessage communicationEvent=receivedCommunicationEvent + isSentMessage=false index=receivedCommunicationEvent_index/> + + <#list sentCommunicationEvents! as sentCommunicationEvent> + <@showMessage communicationEvent=sentCommunicationEvent isSentMessage=true index=sentCommunicationEvent_index/> + + +
    +
    ${uiLabelMap.EcommerceNoMessages}.
    +
    +
    ${uiLabelMap.CommonFrom}
    +
    +
    ${uiLabelMap.CommonTo}
    +
    +
    ${uiLabelMap.EcommerceSubject}
    +
    +
    ${uiLabelMap.EcommerceSentDate}
    +
     
    +
    +
    +
    diff --git a/ecommerce/template/customer/MiniSignUpForContactList.ftl b/ecommerce/template/customer/MiniSignUpForContactList.ftl index 9e67e5b42..60ae9c132 100644 --- a/ecommerce/template/customer/MiniSignUpForContactList.ftl +++ b/ecommerce/template/customer/MiniSignUpForContactList.ftl @@ -22,24 +22,26 @@ under the License.
    @@ -54,7 +56,8 @@ under the License. <#-- The visitor potentially has an account and party id --> <#if userLogin?has_content && userLogin.userLoginId != "anonymous"> <#-- They are logged in so lets present the form to sign up with their email address --> -
    +
    <#assign contextPath = request.getContextPath()> @@ -68,25 +71,40 @@ under the License.
    - +
    <#else> <#-- Not logged in so ask them to log in and then sign up or clear the user association -->

    ${uiLabelMap.EcommerceSignUpForContactListLogIn}

    -

    ${uiLabelMap.CommonLogin} ${sessionAttributes.autoName}

    +

    + ${uiLabelMap.CommonLogin} ${sessionAttributes.autoName} +

    (${uiLabelMap.CommonNotYou}? ${uiLabelMap.CommonClickHere})

    <#else> <#-- There is no party info so just offer an anonymous (non-partyId) related newsletter sign up --> -
    +
    <#assign contextPath = request.getContextPath()> diff --git a/ecommerce/template/customer/NewCustomer.ftl b/ecommerce/template/customer/NewCustomer.ftl index cc470aad2..f469af48d 100644 --- a/ecommerce/template/customer/NewCustomer.ftl +++ b/ecommerce/template/customer/NewCustomer.ftl @@ -20,46 +20,46 @@ under the License. <#if getUsername> @@ -71,83 +71,87 @@ will generally always be reserved for the logo at the top of the page.

    ${uiLabelMap.PartyRequestNewAccount} - ${uiLabelMap.PartyAlreadyHaveAccount}, ${uiLabelMap.CommonLoginHere} + ${uiLabelMap.PartyAlreadyHaveAccount}, ${uiLabelMap.CommonLoginHere}

    <#macro fieldErrors fieldName> <#if errorMessageList?has_content> - <#assign fieldMessages = Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName, true, errorMessageList)> -
      - <#list fieldMessages as errorMsg> -
    • ${errorMsg}
    • - -
    + <#assign fieldMessages = + Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName, true, errorMessageList)> +
      + <#list fieldMessages as errorMsg> +
    • ${errorMsg}
    • + +
    <#macro fieldErrorsMulti fieldName1 fieldName2 fieldName3 fieldName4> <#if errorMessageList?has_content> - <#assign fieldMessages = Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName1, fieldName2, fieldName3, fieldName4, true, errorMessageList)> -
      - <#list fieldMessages as errorMsg> -
    • ${errorMsg}
    • - -
    + <#assign fieldMessages = + Static["org.apache.ofbiz.base.util.MessageString"].getMessagesForField(fieldName1, fieldName2, + fieldName3, fieldName4, true, errorMessageList)> +
      + <#list fieldMessages as errorMsg> +
    • ${errorMsg}
    • + +
    -  ${uiLabelMap.CommonCancel} -  ${uiLabelMap.CommonSave} + ${uiLabelMap.CommonCancel} + ${uiLabelMap.CommonSave} - - - <#---------------------------------------------------------------------- - If you need to include a brief explanation of the form, or certain - elements in the form (such as explaining asterisks denote REQUIRED), - then you should use a

    tag with a class name of "desc" - -----------------------------------------------------------------------> + + +<#---------------------------------------------------------------------- +If you need to include a brief explanation of the form, or certain +elements in the form (such as explaining asterisks denote REQUIRED), +then you should use a

    tag with a class name of "desc" +----------------------------------------------------------------------->

    ${uiLabelMap.CommonFieldsMarkedAreRequired}

    - <#---------------------------------------------------------------------- - There are two types of fieldsets, regular (full width) fielsets, and - column (half width) fieldsets. If you want to group two sets of inputs - side by side in two columns, give each fieldset a class name of "col" - -----------------------------------------------------------------------> +<#---------------------------------------------------------------------- +There are two types of fieldsets, regular (full width) fielsets, and +column (half width) fieldsets. If you want to group two sets of inputs +side by side in two columns, give each fieldset a class name of "col" +----------------------------------------------------------------------->
    ${uiLabelMap.PartyFullName} - <#---------------------------------------------------------------------- - Each input row should be enclosed in a
    . - This will ensure than each input field clears the one - above it. Alternately, if you want several inputs to float next to - each other, you can enclose them in a table as illustrated below for - the phone numbers, or you can enclose each label/input pair in a span + <#---------------------------------------------------------------------- + Each input row should be enclosed in a
    . + This will ensure than each input field clears the one + above it. Alternately, if you want several inputs to float next to + each other, you can enclose them in a table as illustrated below for + the phone numbers, or you can enclose each label/input pair in a span - Example: -
    - - - - - - - - -
    - -----------------------------------------------------------------------> + Example: +
    + + + + + + + + +
    + ----------------------------------------------------------------------->
    - <@fieldErrors fieldName="USER_TITLE"/> + <@fieldErrors fieldName="USER_TITLE"/> + <@fieldErrors fieldName="USER_FIRST_NAME"/> +
    - <@fieldErrors fieldName="USER_MIDDLE_NAME"/> - + <@fieldErrors fieldName="USER_MIDDLE_NAME"/> +
    - <@fieldErrors fieldName="USER_LAST_NAME"/> - + <@fieldErrors fieldName="USER_LAST_NAME"/> +
    - <@fieldErrors fieldName="USER_SUFFIX"/> - + <@fieldErrors fieldName="USER_SUFFIX"/> +
    @@ -185,64 +190,69 @@ will generally always be reserved for the logo at the top of the page. ${uiLabelMap.PartyShippingAddress}
    - <@fieldErrors fieldName="CUSTOMER_ADDRESS1"/> - + <@fieldErrors fieldName="CUSTOMER_ADDRESS1"/> +
    -
    - <@fieldErrors fieldName="CUSTOMER_ADDRESS2"/> - + <@fieldErrors fieldName="CUSTOMER_ADDRESS2"/> +
    -
    - <@fieldErrors fieldName="CUSTOMER_CITY"/> - + <@fieldErrors fieldName="CUSTOMER_CITY"/> +
    -
    - <@fieldErrors fieldName="CUSTOMER_POSTAL_CODE"/> - + <@fieldErrors fieldName="CUSTOMER_POSTAL_CODE"/> +
    -
    - - <@fieldErrors fieldName="CUSTOMER_COUNTRY"/> - -
    - + + <@fieldErrors fieldName="CUSTOMER_COUNTRY"/> + +
    - - <@fieldErrors fieldName="CUSTOMER_STATE"/> - + + <@fieldErrors fieldName="CUSTOMER_STATE"/> +
    -
    <@fieldErrors fieldName="CUSTOMER_ADDRESS_ALLOW_SOL"/>
    -
    ${uiLabelMap.PartyPhoneNumbers} - +
    @@ -256,14 +266,24 @@ will generally always be reserved for the logo at the top of the page. - - - - + + + + - - - - + + + + - - - + + + - - - + + + + + + <#assign defaultSubject = (communicationEvent.subject)?default("")> + <#if (defaultSubject?length == 0)> + <#assign replyPrefix = "RE: "> + <#if parentEvent?has_content> + <#if !parentEvent.subject?default("")?upper_case?starts_with(replyPrefix)> + <#assign defaultSubject = replyPrefix> + + <#assign defaultSubject = defaultSubject + parentEvent.subject?default("")> + + + + + + + + + + + + + + + + + + + + + + + + + +
    ${uiLabelMap.PartyHomePhone} + + + + + + +
    ${uiLabelMap.PartyBusinessPhone} + + + + + + + +
    ${uiLabelMap.PartyFaxNumber} + + + + + +
    ${uiLabelMap.PartyMobilePhone} + + + + + + +
    ${uiLabelMap.EcommerceUseEmailAddress} + ${uiLabelMap.EcommerceUseEmailAddress}
    @@ -356,10 +407,12 @@ will generally always be reserved for the logo at the top of the page.
    <#if requestParameters.preferredUsername?has_content> - - + + <#else> - +
    @@ -383,7 +436,8 @@ will generally always be reserved for the logo at the top of the page.
    <@fieldErrors fieldName="PASSWORD_HINT"/> - +
    <#else>
    @@ -399,13 +453,13 @@ and a tags acting as submit buttons, all button actions should have a class name of "button". No other class names should be used to style button actions. -------------------------------------------------------------------------------> -
    -  ${uiLabelMap.CommonCancel} -  ${uiLabelMap.CommonSave} + diff --git a/ecommerce/template/customer/NewMsg.ftl b/ecommerce/template/customer/NewMsg.ftl index 7822d0cee..11517ee18 100644 --- a/ecommerce/template/customer/NewMsg.ftl +++ b/ecommerce/template/customer/NewMsg.ftl @@ -18,93 +18,109 @@ under the License. -->
    -
    - -
    ${pageHeader}
    +
    + -
    - - - - - <#if productStore?has_content> - +
    ${pageHeader}
    +
    +
    + + + + + <#if productStore?has_content> + + + + <#if message?has_content> + + <#if (communicationEvent.origCommEventId?? && communicationEvent.origCommEventId?length > 0)> + <#assign orgComm = communicationEvent.origCommEventId> + <#else> + <#assign orgComm = communicationEvent.communicationEventId> - - <#if message?has_content> - - <#if (communicationEvent.origCommEventId?? && communicationEvent.origCommEventId?length > 0)> - <#assign orgComm = communicationEvent.origCommEventId> - <#else> - <#assign orgComm = communicationEvent.communicationEventId> - - - - + + +
    + + + + + + + + + <#if partyIdTo?has_content> + <#assign partyToName = + Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, partyIdTo, true)> + - - - - <#if partyIdTo?has_content> - <#assign partyToName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(delegator, partyIdTo, true)> - - - - - - - - - - - - - - <#assign defaultSubject = (communicationEvent.subject)?default("")> - <#if (defaultSubject?length == 0)> - <#assign replyPrefix = "RE: "> - <#if parentEvent?has_content> - <#if !parentEvent.subject?default("")?upper_case?starts_with(replyPrefix)> - <#assign defaultSubject = replyPrefix> - - <#assign defaultSubject = defaultSubject + parentEvent.subject?default("")> - - - - - - - - - - - - - - - - - + - - - - - - - -
     
      +
    ${uiLabelMap.CommonFrom}:
    +
    +
     ${sessionAttributes.autoName!} [${userLogin.partyId}] (${uiLabelMap.CommonNotYou}? ${uiLabelMap.CommonClickHere}) +
    +
     
     
    ${uiLabelMap.CommonFrom}:
     ${sessionAttributes.autoName!} [${userLogin.partyId}] (${uiLabelMap.CommonNotYou}? ${uiLabelMap.CommonClickHere})
     
     
    ${uiLabelMap.CommonTo}:
     ${partyToName}
     
     
    ${uiLabelMap.EcommerceSubject}:
    -
     
     
    ${uiLabelMap.CommonMessage}:
     
      - + +
    ${uiLabelMap.CommonTo}:
    +
    +
     ${partyToName}
     
     
    - -
    + +
     
      +
    ${uiLabelMap.EcommerceSubject}:
    +
    +
     
      +
    ${uiLabelMap.CommonMessage}:
    +
     
      + +
     
     
    + +
    diff --git a/ecommerce/template/customer/SerializedInventorySummary.ftl b/ecommerce/template/customer/SerializedInventorySummary.ftl index 2c9d44016..d53a16e77 100644 --- a/ecommerce/template/customer/SerializedInventorySummary.ftl +++ b/ecommerce/template/customer/SerializedInventorySummary.ftl @@ -18,45 +18,61 @@ under the License. -->
    -
    - ${uiLabelMap.ProductSerializedInventorySummary} -
    -
    - - - - - - - - - - - - - <#list inventoryItemList as inventoryItem> - <#assign product = inventoryItem.getRelatedOne('Product', false)!> - - - - - - - - - - -
    ${uiLabelMap.ProductInventoryItemId}
    ${uiLabelMap.ProductProductName}
    ${uiLabelMap.ProductSerialNumber}
    ${uiLabelMap.ProductSoftIdentifier}
    ${uiLabelMap.ProductActivationNumber}
    ${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}
    ${inventoryItem.inventoryItemId} - <#if product?has_content> - <#if product.isVariant?default('N') == 'Y'> - <#assign product = Static['org.apache.ofbiz.product.product.ProductWorker'].getParentProduct(product.productId, delegator)!> - - <#if product?has_content> - <#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!> - ${productName?default(product.productId)} - - - ${inventoryItem.serialNumber!}${inventoryItem.softIdentifier!}${inventoryItem.activationNumber!}${inventoryItem.activationValidThru!}
    -
    +
    + ${uiLabelMap.ProductSerializedInventorySummary} +
    +
    + + + + + + + + + + + + + <#list inventoryItemList as inventoryItem> + <#assign product = inventoryItem.getRelatedOne('Product', false)!> + + + + + + + + + + +
    +
    ${uiLabelMap.ProductInventoryItemId}
    +
    +
    ${uiLabelMap.ProductProductName}
    +
    +
    ${uiLabelMap.ProductSerialNumber}
    +
    +
    ${uiLabelMap.ProductSoftIdentifier}
    +
    +
    ${uiLabelMap.ProductActivationNumber}
    +
    +
    ${uiLabelMap.ProductActivationNumber} ${uiLabelMap.CommonValidThruDate}
    +
    ${inventoryItem.inventoryItemId} + <#if product?has_content> + <#if product.isVariant?default('N') == 'Y'> + <#assign product = Static['org.apache.ofbiz.product.product.ProductWorker'] + .getParentProduct(product.productId, delegator)!> + + <#if product?has_content> + <#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper'] + .getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!> + + ${productName?default(product.productId)} + + + + ${inventoryItem.serialNumber!}${inventoryItem.softIdentifier!}${inventoryItem.activationNumber!}${inventoryItem.activationValidThru!}
    +
    diff --git a/ecommerce/template/customer/SubscriptionSummary.ftl b/ecommerce/template/customer/SubscriptionSummary.ftl index f1970cc58..7afc4b45c 100644 --- a/ecommerce/template/customer/SubscriptionSummary.ftl +++ b/ecommerce/template/customer/SubscriptionSummary.ftl @@ -18,44 +18,63 @@ under the License. -->
    -
    - ${uiLabelMap.ProductSubscriptions} -
    -
    - - - - - - - - - - - - - - <#list subscriptionList as subscription> - - - + + + + + + + +
    ${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonId}
    ${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonType}
    ${uiLabelMap.CommonDescription}
    ${uiLabelMap.ProductProductName}
    ${uiLabelMap.CommonFromDate}
    ${uiLabelMap.CommonThruDate}

    ${subscription.subscriptionId} - <#assign subscriptionType = subscription.getRelatedOne('SubscriptionType', false)!> +
    + ${uiLabelMap.ProductSubscriptions} +
    +
    + + + + + + + + + + + + + + + + <#list subscriptionList as subscription> + + + - - - - - - - -
    +
    ${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonId}
    +
    +
    ${uiLabelMap.ProductSubscription} ${uiLabelMap.CommonType}
    +
    +
    ${uiLabelMap.CommonDescription}
    +
    +
    ${uiLabelMap.ProductProductName}
    +
    +
    ${uiLabelMap.CommonFromDate}
    +
    +
    ${uiLabelMap.CommonThruDate}
    +
    +
    +
    ${subscription.subscriptionId} + <#assign subscriptionType = subscription.getRelatedOne('SubscriptionType', false)!> ${(subscriptionType.description)?default(subscription.subscriptionTypeId?default('N/A'))} - ${subscription.description!} - <#assign product = subscription.getRelatedOne('Product', false)!> - <#if product?has_content> - <#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper'].getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!> - ${productName?default(product.productId)} - - ${subscription.fromDate!}${subscription.thruDate!}
    -
    +
    ${subscription.description!} + <#assign product = subscription.getRelatedOne('Product', false)!> + <#if product?has_content> + <#assign productName = Static['org.apache.ofbiz.product.product.ProductContentWrapper'] + .getProductContentAsText(product, 'PRODUCT_NAME', request, "html")!> + + ${productName?default(product.productId)} + + + ${subscription.fromDate!}${subscription.thruDate!}
    +
    diff --git a/ecommerce/template/customer/profile/EditBillToAddress.ftl b/ecommerce/template/customer/profile/EditBillToAddress.ftl index 882ca8108..41e89d5cb 100644 --- a/ecommerce/template/customer/profile/EditBillToAddress.ftl +++ b/ecommerce/template/customer/profile/EditBillToAddress.ftl @@ -20,28 +20,36 @@ under the License.
    - - + + <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) /> - +
    - - + +
    - +
    - - + +
    - - + +
    @@ -51,13 +59,22 @@ under the License. ${screens.render("component://common/widget/CommonScreens.xml#countries")} - +
    - + - - - - - - - + + + + - + - + -
    - checked="checked" /> + checked="checked"/>
    - <#-- - - --> + <#-- + + -->
    \ No newline at end of file diff --git a/ecommerce/template/customer/profile/EditPostalAddress.ftl b/ecommerce/template/customer/profile/EditPostalAddress.ftl index 40aef553f..426207389 100644 --- a/ecommerce/template/customer/profile/EditPostalAddress.ftl +++ b/ecommerce/template/customer/profile/EditPostalAddress.ftl @@ -18,68 +18,88 @@ under the License. -->
    -<#assign postalAddress = delegator.findOne("PostalAddress", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contactMechId", contactMech.contactMechId), true) /> +<#assign postalAddress = delegator.findOne("PostalAddress", + Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contactMechId", contactMech.contactMechId), true) />
    - + <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) /> - -
    - - - -
    -
    - - -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - - - -
    -
    - - checked="checked" /> -
    -
    - - checked="checked" /> -
    - <#-- - - --> + +
    + + + +
    +
    + + +
    +
    + + + +
    +
    + + + +
    +
    + + + +
    +
    + + + +
    +
    + + checked="checked"/> +
    +
    + + checked="checked"/> +
    + <#-- + + -->
    \ No newline at end of file diff --git a/ecommerce/template/customer/profile/EditProfile.ftl b/ecommerce/template/customer/profile/EditProfile.ftl index 550930999..dbc00216f 100644 --- a/ecommerce/template/customer/profile/EditProfile.ftl +++ b/ecommerce/template/customer/profile/EditProfile.ftl @@ -23,46 +23,64 @@ under the License.
    -

    ${uiLabelMap.PartyContactInformation}

    -
    - - -
    -
    - - -
    -
    - - -
    +

    ${uiLabelMap.PartyContactInformation}

    +
    + + +
    +
    + + +
    +
    + + +
    -

    ${uiLabelMap.EcommerceAccountInformation}

    -
    - - disabled="disabled" /> -
    -
    - - -
    -
    - - -
    -
    - - -
    +

    ${uiLabelMap.EcommerceAccountInformation}

    +
    + + disabled="disabled" /> +
    +
    + + +
    +
    + + +
    +
    + + +
    \ No newline at end of file diff --git a/ecommerce/template/customer/profile/EditShipToAddress.ftl b/ecommerce/template/customer/profile/EditShipToAddress.ftl index 98ff835c7..befe26cc1 100644 --- a/ecommerce/template/customer/profile/EditShipToAddress.ftl +++ b/ecommerce/template/customer/profile/EditShipToAddress.ftl @@ -20,28 +20,36 @@ under the License.
    - - - <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) /> - + + + <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"] + .getProductStoreId(request) /> +
    - - + +
    - +
    - - + +
    - - + +
    @@ -51,13 +59,22 @@ under the License. ${screens.render("component://common/widget/CommonScreens.xml#countries")} - +
    - + - - - - - - - + + + - + - + -
    - checked="checked" /> + checked="checked"/>
    <#-- -->
    -
    \ No newline at end of file + diff --git a/ecommerce/template/customer/profile/ManageAddress.ftl b/ecommerce/template/customer/profile/ManageAddress.ftl index 7d9855175..74d54fe23 100644 --- a/ecommerce/template/customer/profile/ManageAddress.ftl +++ b/ecommerce/template/customer/profile/ManageAddress.ftl @@ -17,11 +17,11 @@ specific language governing permissions and limitations under the License. --> -<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) /> +<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"] + .getProductStoreId(request) />
    -

    ${uiLabelMap.EcommerceAddressBook}

    <#-- Add address --> @@ -30,82 +30,95 @@ under the License.
    - - + +
    - +
    - +
    - +
    - +
    - +
    - <#if stateProvinceGeoId?has_content> <#else> - +
    - checked="checked" /> + checked="checked"/>
    - checked="checked" /> + checked="checked"/>
    @@ -113,104 +126,122 @@ under the License.

    ${uiLabelMap.EcommerceDefaultAddresses}

    - <#--===================================== Billing Address and Telecom number ===========================================--> + <#--===================================== Billing Address and Telecom number ====================================-->

    ${uiLabelMap.EcommercePrimaryBillingAddress}

      - <#if billToContactMechId??> -
    • ${billToAddress1!}
    • - <#if billToAddress2?has_content>
    • ${billToAddress2!}
    • -
    • - <#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_"> - ${billToStateProvinceGeoId} + <#if billToContactMechId??> +
    • ${billToAddress1!}
    • + <#if billToAddress2?has_content> +
    • ${billToAddress2!}
    • - ${billToCity!}, - ${billToPostalCode!} - -
    • ${billToCountryGeoId!}
    • - <#if billToTelecomNumber?has_content> -
    • - ${billToTelecomNumber.countryCode!}- - ${billToTelecomNumber.areaCode!}- - ${billToTelecomNumber.contactNumber!} - <#if billToExtension??>-${billToExtension!} -
    • +
    • + <#if billToStateProvinceGeoId?has_content && billToStateProvinceGeoId != "_NA_"> + ${billToStateProvinceGeoId} + + ${billToCity!}, + ${billToPostalCode!} +
    • +
    • ${billToCountryGeoId!}
    • + <#if billToTelecomNumber?has_content> +
    • + ${billToTelecomNumber.countryCode!}- + ${billToTelecomNumber.areaCode!}- + ${billToTelecomNumber.contactNumber!} + <#if billToExtension??>-${billToExtension!} +
    • + +
    • + ${uiLabelMap.CommonEdit} + +
    • + <#else> +
    • ${uiLabelMap.PartyPostalInformationNotFound}
    • -
    • ${uiLabelMap.CommonEdit}
    • - <#else> -
    • ${uiLabelMap.PartyPostalInformationNotFound}
    • -
    - <#--===================================== Shipping Address and Telecom number ===========================================--> + <#--===================================== Shipping Address and Telecom number ===================================-->

    ${uiLabelMap.EcommercePrimaryShippingAddress}

      - <#if shipToContactMechId??> -
    • ${shipToAddress1!}
    • - <#if shipToAddress2?has_content>
    • ${shipToAddress2!}
    • -
    • - <#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_"> - ${shipToStateProvinceGeoId} + <#if shipToContactMechId??> +
    • ${shipToAddress1!}
    • + <#if shipToAddress2?has_content> +
    • ${shipToAddress2!}
    • + +
    • + <#if shipToStateProvinceGeoId?has_content && shipToStateProvinceGeoId != "_NA_"> + ${shipToStateProvinceGeoId} + + ${shipToCity!}, + ${shipToPostalCode!} +
    • +
    • ${shipToCountryGeoId!}
    • + <#if shipToTelecomNumber?has_content> +
    • + ${shipToTelecomNumber.countryCode!}- + ${shipToTelecomNumber.areaCode!}- + ${shipToTelecomNumber.contactNumber!} + <#if shipToExtension??>-${shipToExtension!} +
    • + +
    • + ${uiLabelMap.CommonEdit} + +
    • + <#else> +
    • ${uiLabelMap.PartyPostalInformationNotFound}
    • - ${shipToCity!}, - ${shipToPostalCode!} - -
    • ${shipToCountryGeoId!}
    • - <#if shipToTelecomNumber?has_content> -
    • - ${shipToTelecomNumber.countryCode!}- - ${shipToTelecomNumber.areaCode!}- - ${shipToTelecomNumber.contactNumber!} - <#if shipToExtension??>-${shipToExtension!} -
    • - -
    • ${uiLabelMap.CommonEdit}
    • - <#else> -
    • ${uiLabelMap.PartyPostalInformationNotFound}
    • -
    @@ -233,59 +264,69 @@ under the License. <#include "EditPostalAddress.ftl" />
    <#if postalAddress??> -
    -
      -
    • ${postalAddress.address1}
    • - <#if postalAddress.address2?has_content>
    • ${postalAddress.address2}
    • -
    • ${postalAddress.city}
    • -
    • - <#if postalAddress.stateProvinceGeoId?has_content && postalAddress.stateProvinceGeoId != "_NA_"> - ${postalAddress.stateProvinceGeoId} - - ${postalAddress.postalCode!} -
    • - <#if postalAddress.countryGeoId?has_content>
    • ${postalAddress.countryGeoId}
    • -
    - <#if (!postalAddress.countryGeoId?has_content || postalAddress.countryGeoId! = "USA")> - <#assign addr1 = postalAddress.address1! /> - <#if (addr1.indexOf(" ") > 0)> - <#assign addressNum = addr1.substring(0, addr1.indexOf(" ")) /> - <#assign addressOther = addr1.substring(addr1.indexOf(" ")+1) /> - (${uiLabelMap.CommonLookupWhitepages}) - +
    +
      +
    • ${postalAddress.address1}
    • + <#if postalAddress.address2?has_content> +
    • ${postalAddress.address2}
    • +
    • ${postalAddress.city}
    • +
    • + <#if postalAddress.stateProvinceGeoId?has_content && postalAddress.stateProvinceGeoId != "_NA_"> + ${postalAddress.stateProvinceGeoId} -
    + ${postalAddress.postalCode!} + + <#if postalAddress.countryGeoId?has_content> +
  • ${postalAddress.countryGeoId}
  • + + + <#if (!postalAddress.countryGeoId?has_content || postalAddress.countryGeoId! = "USA")> + <#assign addr1 = postalAddress.address1! /> + <#if (addr1.indexOf(" ") > 0)> + <#assign addressNum = addr1.substring(0, addr1.indexOf(" ")) /> + <#assign addressOther = addr1.substring(addr1.indexOf(" ")+1) /> + (${uiLabelMap.CommonLookupWhitepages}) + + +
    - ${uiLabelMap.CommonEdit} -
    -
    - -
    -
    + ${uiLabelMap.CommonEdit} + + +
    +
    + +
    +
    <#else>
    - +
    @@ -293,9 +334,9 @@ under the License. <#if postalAddressFlag == "N">
    - +
    - \ No newline at end of file + diff --git a/ecommerce/template/customer/profile/NewCustomer.ftl b/ecommerce/template/customer/profile/NewCustomer.ftl index f36137797..2186655bc 100644 --- a/ecommerce/template/customer/profile/NewCustomer.ftl +++ b/ecommerce/template/customer/profile/NewCustomer.ftl @@ -23,152 +23,243 @@ under the License.
    ${uiLabelMap.PartyContactInformation} - - - <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) /> - -
    - - -
    -
    - - -
    -
    - - -
    - + + + <#assign productStoreId = + Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) /> + +
    + + +
    +
    + + +
    +
    + + +
    +
    - ${uiLabelMap.EcommerceAccountInformation} -
    - - -
    -
    - - - -
    -
    - - - -
    + ${uiLabelMap.EcommerceAccountInformation} +
    + + +
    +
    + + + +
    +
    + + + +
    - ${uiLabelMap.OrderShippingInformation} + ${uiLabelMap.OrderShippingInformation} +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    - - +
    +
    +
    +
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - - - - - - - - - - - - -
    -
    - checked="checked" /> - +
    +
    +
    + + + + + + + - + - + - +
    +
    + checked="checked"/> + +
    - ${uiLabelMap.PageTitleBillingInformation} -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - - -
    -
    - -
    - -
    -
    -
    - - - - - - - - - - - - -
    + ${uiLabelMap.PageTitleBillingInformation} +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + +
    + +
    +
    +
    + + + + + + + - + - + - +
    ${uiLabelMap.CommonSubmit}
    - \ No newline at end of file + diff --git a/ecommerce/template/customer/profile/ViewProfile.ftl b/ecommerce/template/customer/profile/ViewProfile.ftl index bc3195fbc..578d142c5 100644 --- a/ecommerce/template/customer/profile/ViewProfile.ftl +++ b/ecommerce/template/customer/profile/ViewProfile.ftl @@ -39,65 +39,65 @@ under the License.

    ${uiLabelMap.EcommercePrimaryShippingAddress}

    ${uiLabelMap.EcommercePrimaryBillingAddress}

    - \ No newline at end of file + diff --git a/ecommerce/template/data/Content.ftl b/ecommerce/template/data/Content.ftl index 762541839..d3054213f 100644 --- a/ecommerce/template/data/Content.ftl +++ b/ecommerce/template/data/Content.ftl @@ -19,23 +19,28 @@ under the License. --> - -<#recurse doc> + + <#recurse doc> <#macro contents> -<#recurse .node> + <#recurse .node> <#macro content> - <#assign contentId="ECMC" + .node.@id[0]/> - - - - - + <#assign contentId="ECMC" + .node.@id[0]/> + + + + + + + <#macro @element> diff --git a/ecommerce/template/data/Topic.ftl b/ecommerce/template/data/Topic.ftl index e1f8179e9..6dc650c44 100644 --- a/ecommerce/template/data/Topic.ftl +++ b/ecommerce/template/data/Topic.ftl @@ -19,23 +19,25 @@ under the License. --> -<#recurse doc> + <#recurse doc> <#macro topics> -<#recurse .node> + <#recurse .node> <#macro topic> - <#assign contentId="ECMT" + .node.@id[0]/> - - <#assign internalName=.node.@name[0]/> - <#assign internalNameParts=internalName?split(".")/> - <#assign firstPart=internalNameParts[0] /> - <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/> - <#if firstPart == "WIDGETS"> - - + <#assign contentId="ECMT" + .node.@id[0]/> + + <#assign internalName=.node.@name[0]/> + <#assign internalNameParts=internalName?split(".")/> + <#assign firstPart=internalNameParts[0] /> + <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/> + <#if firstPart == "WIDGETS"> + + <#macro @element> diff --git a/ecommerce/template/data/Tree.ftl b/ecommerce/template/data/Tree.ftl index e231f1178..ceb8ef1ae 100644 --- a/ecommerce/template/data/Tree.ftl +++ b/ecommerce/template/data/Tree.ftl @@ -19,27 +19,28 @@ under the License. --> -<#recurse doc> + <#recurse doc> <#macro topic_tree> -<#recurse .node> + <#recurse .node> <#macro topic> - <#assign contentId="ECMT" + .node.@id[0]/> - <#recurse .node> + <#assign contentId="ECMT" + .node.@id[0]/> + <#recurse .node> <#macro child> - <#assign contentIdTo="ECMT" + .node.@id[0]/> - <#assign assocType="SUB_CONTENT"/> - <#if .node.@type = "content"> - <#assign contentIdTo="ECMC" + .node.@id[0]/> - <#assign assocType="PUBLISH_LINK"/> - - <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/> - + <#assign contentIdTo="ECMT" + .node.@id[0]/> + <#assign assocType="SUB_CONTENT"/> + <#if .node.@type = "content"> + <#assign contentIdTo="ECMC" + .node.@id[0]/> + <#assign assocType="PUBLISH_LINK"/> + + <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/> + <#macro @element> diff --git a/ecommerce/template/email/ContactListEmailTemplate.ftl b/ecommerce/template/email/ContactListEmailTemplate.ftl index 6ad214c09..eb0fed5c3 100644 --- a/ecommerce/template/email/ContactListEmailTemplate.ftl +++ b/ecommerce/template/email/ContactListEmailTemplate.ftl @@ -17,22 +17,22 @@ specific language governing permissions and limitations under the License. --> - -
    - ${content} -
    - <#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" /> -
    -
    - - - - - - - - -
    -
    - + +
    + ${content} +
    + <#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" /> +
    +
    + + + + + + + + +
    +
    + diff --git a/ecommerce/template/email/ContactListSubscribeEmail.ftl b/ecommerce/template/email/ContactListSubscribeEmail.ftl index 480be51a3..52149a0be 100644 --- a/ecommerce/template/email/ContactListSubscribeEmail.ftl +++ b/ecommerce/template/email/ContactListSubscribeEmail.ftl @@ -17,15 +17,14 @@ specific language governing permissions and limitations under the License. --> - -

    Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!

    -

    Successfully subscribed from ${contactList.contactListName} contact list.

    + +

    Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!

    +

    Successfully subscribed from ${contactList.contactListName} contact list.

    - <#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_UNSUBS_PENDING&optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&baseLocation='+baseLocation!> - <#if (contactListParty.preferredContactMechId)??> - <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> - - If this was by mistake, click here to unsubscribe your subscription again. - - + <#assign verifyUrl = baseEcommerceSecureUrl +'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_UNSUBS_PENDING&optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&baseLocation='+baseLocation!> + <#if (contactListParty.preferredContactMechId)??> + <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> + + If this was by mistake, click here to unsubscribe your subscription again. + diff --git a/ecommerce/template/email/ContactListUnsubscribeEmail.ftl b/ecommerce/template/email/ContactListUnsubscribeEmail.ftl index bf1e1c491..2ea24e28c 100644 --- a/ecommerce/template/email/ContactListUnsubscribeEmail.ftl +++ b/ecommerce/template/email/ContactListUnsubscribeEmail.ftl @@ -27,7 +27,5 @@ under the License. If this was by mistake, click here subscribe again. - - diff --git a/ecommerce/template/email/ContactListUnsubscribeVerifyEmail.ftl b/ecommerce/template/email/ContactListUnsubscribeVerifyEmail.ftl index 109d7adfd..86ef198f2 100644 --- a/ecommerce/template/email/ContactListUnsubscribeVerifyEmail.ftl +++ b/ecommerce/template/email/ContactListUnsubscribeVerifyEmail.ftl @@ -16,26 +16,26 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + - - - ${title!} - - - - <#-- custom logo or text can be inserted here --> -

    ${title!}

    - <#if note??>

    ${note}

    - -

    Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!

    -

    We have received a request for unsubscription to the ${contactList.contactListName} contact list.

    -

    To complete your unsubscription click the on the following link:

    - - <#assign verifyUrl = baseEcommerceSecureUrl+'contactListOptOut?contactListId='+contactListParty.contactListId+'&communicationEventId='+communicationEventId!+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_UNSUBSCRIBED&optInVerifyCode='+contactListPartyStatus.optInVerifyCode> - <#if (contactListParty.preferredContactMechId)??> - <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> - -
    Please click here to verify your unsubscription. - + + + ${title!} + + + <#-- custom logo or text can be inserted here --> +

    ${title!}

    + <#if note??>

    ${note}

    + +

    Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!

    +

    We have received a request for unsubscription to the ${contactList.contactListName} contact list.

    +

    To complete your unsubscription click the on the following link:

    + + <#assign verifyUrl = baseEcommerceSecureUrl+'contactListOptOut?contactListId='+contactListParty.contactListId+'&communicationEventId='+communicationEventId!+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_UNSUBSCRIBED&optInVerifyCode='+contactListPartyStatus.optInVerifyCode> + <#if (contactListParty.preferredContactMechId)??> + <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> + + Please click here to verify your unsubscription. + diff --git a/ecommerce/template/email/ContactListVerifyEmail.ftl b/ecommerce/template/email/ContactListVerifyEmail.ftl index 099daa974..1ce8965c8 100644 --- a/ecommerce/template/email/ContactListVerifyEmail.ftl +++ b/ecommerce/template/email/ContactListVerifyEmail.ftl @@ -16,27 +16,26 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - + - - ${title!} + + ${title!} + <#-- custom logo or text can be inserted here --> +

    ${title!}

    + <#if note??>

    ${note}

    -<#-- custom logo or text can be inserted here --> -

    ${title!}

    -<#if note??>

    ${note}

    +

    Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!

    +

    We have received a request for subscription to the ${contactList.contactListName} contact list.

    +

    To complete your subscription click the on the following link:

    -

    Hello ${partyName.firstName!} ${partyName.lastName!} ${partyName.groupName!}!

    -

    We have received a request for subscription to the ${contactList.contactListName} contact list.

    -

    To complete your subscription click the on the following link:

    - -<#assign verifyUrl = baseEcommerceSecureUrl+'/'+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_ACCEPTED&optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&baseLocation='+baseLocation!> -<#if (contactListParty.preferredContactMechId)??> + <#assign verifyUrl = baseEcommerceSecureUrl+'/'+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_ACCEPTED&optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&baseLocation='+baseLocation!> + <#if (contactListParty.preferredContactMechId)??> <#assign verifyUrl= verifyUrl+"&preferredContactMechId="+contactListParty.preferredContactMechId> - -Please click here to verify your subscription. - + + Please click here to verify your subscription. diff --git a/ecommerce/template/email/ContactUsEmail.ftl b/ecommerce/template/email/ContactUsEmail.ftl index 2ce0d7ca1..014692f6b 100644 --- a/ecommerce/template/email/ContactUsEmail.ftl +++ b/ecommerce/template/email/ContactUsEmail.ftl @@ -18,11 +18,11 @@ under the License. --> - - -

    The information filled by the person on contact us page is as follows:

    -

    ${uiLabelMap.CommonName}: ${parameters.firstName!} ${parameters.lastName!}

    -

    ${uiLabelMap.CommonEmail}: ${parameters.email!}

    -

    ${uiLabelMap.CommonMessage}: ${parameters.message!}

    - + + +

    The information filled by the person on contact us page is as follows:

    +

    ${uiLabelMap.CommonName}: ${parameters.firstName!} ${parameters.lastName!}

    +

    ${uiLabelMap.CommonEmail}: ${parameters.email!}

    +

    ${uiLabelMap.CommonMessage}: ${parameters.message!}

    + \ No newline at end of file diff --git a/ecommerce/template/email/EmailPayRetry.ftl b/ecommerce/template/email/EmailPayRetry.ftl index 067759bb2..aa994aa60 100644 --- a/ecommerce/template/email/EmailPayRetry.ftl +++ b/ecommerce/template/email/EmailPayRetry.ftl @@ -17,13 +17,14 @@ specific language governing permissions and limitations under the License. --> -
    +
    <#if orderHeader.statusId == "ORDER_REJECTED"> - ${uiLabelMap.OrderEmailProblemWithYourPaymentMethod} ${orderHeader.orderId}.
    - ${uiLabelMap.OrderEmailProblemCancelledNotProcessed}
    + ${uiLabelMap.OrderEmailProblemWithYourPaymentMethod} ${orderHeader.orderId}.
    + ${uiLabelMap.OrderEmailProblemCancelledNotProcessed}
    <#elseif orderHeader.statusId == "ORDER_APPROVED"> - ${uiLabelMap.OrderEmailPaymentOK} ${orderHeader.orderId} ${uiLabelMap.OrderEmailAccepted} + ${uiLabelMap.OrderEmailPaymentOK} ${orderHeader.orderId} ${uiLabelMap.OrderEmailAccepted} <#else> - ${uiLabelMap.OrderEmailSorry} ${orderHeader.orderId}.
    + ${uiLabelMap.OrderEmailSorry} ${orderHeader.orderId}.
    -
    ${uiLabelMap.OrderEmailCustomerService} (email@email.com)
    <#-- Customer service email (not a variable why?) must be adapted - JLR 1/6/5 --> +
    ${uiLabelMap.OrderEmailCustomerService} (email@email.com) +
    <#-- Customer service email (not a variable why?) must be adapted - JLR 1/6/5 --> diff --git a/ecommerce/template/email/GiftCardPurchase.ftl b/ecommerce/template/email/GiftCardPurchase.ftl index 97ce3df5e..423c56828 100644 --- a/ecommerce/template/email/GiftCardPurchase.ftl +++ b/ecommerce/template/email/GiftCardPurchase.ftl @@ -23,16 +23,17 @@ under the License. --> <#if recipientName??>${recipientName}, -
    +
    <#-- MyCompany.com (not a variable why?) must be adapted - JLR 1/6/5 --> -${uiLabelMap.EcommerceYouHaveBeenSent} MyCompany.com <#if senderName??> ${uiLabelMap.EcommerceGiftCardFrom} ${senderName}! -

    +${uiLabelMap.EcommerceYouHaveBeenSent} MyCompany.com +<#if senderName??> ${uiLabelMap.EcommerceGiftCardFrom} ${senderName}! +

    <#if giftMessage?has_content> ${uiLabelMap.OrderGiftMessage} -

    +

    ${giftMessage} -

    +

    diff --git a/ecommerce/template/email/GiftCardReload.ftl b/ecommerce/template/email/GiftCardReload.ftl
    index 8fb199684..b7e8d66f4 100644
    --- a/ecommerce/template/email/GiftCardReload.ftl
    +++ b/ecommerce/template/email/GiftCardReload.ftl
    @@ -37,16 +37,16 @@ under the License.
     
     <#if processResult>
       <#-- success -->
    -  
    +
    ${uiLabelMap.EcommerceYourGiftCard} ${displayNumber} ${uiLabelMap.EcommerceYourGiftCardReloaded} -
    +
    ${uiLabelMap.EcommerceGiftCardNewBalance} ${amount} ${uiLabelMap.CommonFrom} ${previousAmount} -
    +
    <#else> <#-- fail --> -
    +
    ${uiLabelMap.EcommerceGiftCardReloadFailed} ${responseCode} -
    +
    ${uiLabelMap.EcommerceGiftCardRefunded} -
    +
    diff --git a/ecommerce/template/email/OrderNoticeEmail.ftl b/ecommerce/template/email/OrderNoticeEmail.ftl index 74852dd86..a04e7cc48 100644 --- a/ecommerce/template/email/OrderNoticeEmail.ftl +++ b/ecommerce/template/email/OrderNoticeEmail.ftl @@ -17,129 +17,127 @@ specific language governing permissions and limitations under the License. --> - + - - ${title!} - <#-- this needs to be fully qualified to appear in email; the server must also be available --> - + .clearBoth { + clear: both; + } + - -<#-- custom logo or text can be inserted here --> - -

    ${title!}

    -<#if !isDemoStore?? || isDemoStore>

    ${uiLabelMap.OrderDemoFrontNote}.

    -<#if note??>

    ${note}

    -<#if orderHeader??> -${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")} -
    -${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")} -<#else> -

    Order not found with ID [${orderId!}], or not allowed to view.

    - - + <#-- custom logo or text can be inserted here --> +

    ${title!}

    + <#if !isDemoStore?? || isDemoStore>

    ${uiLabelMap.OrderDemoFrontNote}.

    + <#if note??>

    ${note}

    + <#if orderHeader??> + ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")} +
    + ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")} + <#else> +

    Order not found with ID [${orderId!}], or not allowed to view.

    + diff --git a/ecommerce/template/email/ReturnAccept.ftl b/ecommerce/template/email/ReturnAccept.ftl index c0ab2f731..8bf55bc82 100644 --- a/ecommerce/template/email/ReturnAccept.ftl +++ b/ecommerce/template/email/ReturnAccept.ftl @@ -18,17 +18,17 @@ under the License. --> <#-- ReturnHeader and a List of ReturnItem records is available to this template --> -
    +
    ${uiLabelMap.EcommerceReturnRequest} -

    +

    -<#list returnItems as item>
    -  <#assign returnReason = item.getRelatedOne("ReturnReason", false)!>
    -  <#assign returnType = item.getRelatedOne("ReturnType", false)!>
    -  ${item.description?default("N/A")} - ${item.returnQuantity?string.number} @ ${item.returnPrice}
    -
    +  <#list returnItems as item>
    +    <#assign returnReason = item.getRelatedOne("ReturnReason", false)!>
    +    <#assign returnType = item.getRelatedOne("ReturnType", false)!>
    +    ${item.description?default("N/A")} - ${item.returnQuantity?string.number} @ ${item.returnPrice}
    +  
     
    -

    +

    ${uiLabelMap.EcommerceReturnRequestAccepted} ${returnHeader.returnId} -

    +

    diff --git a/ecommerce/template/email/ShipmentNotificationEmail.ftl b/ecommerce/template/email/ShipmentNotificationEmail.ftl index 8fd66b37a..e6d00f22a 100644 --- a/ecommerce/template/email/ShipmentNotificationEmail.ftl +++ b/ecommerce/template/email/ShipmentNotificationEmail.ftl @@ -18,46 +18,52 @@ under the License. --> <#if baseEcommerceSecureUrl??><#assign urlPrefix = baseEcommerceSecureUrl/> -<#if shipment?has_content> -
    -
    -
    ${title!}

    -
    - - - - - - <#list orderShipmentInfoSummaryList as orderShipmentInfoSummary> + <#if shipment?has_content> +
    +
    +
    ${title!}

    +
    +
    ${uiLabelMap.OrderTrackingNumber}
    + - + - - -
    - Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")} - <#if orderShipmentInfoSummary.carrierPartyId?has_content>(${uiLabelMap.ProductCarrier}: ${orderShipmentInfoSummary.carrierPartyId}) - ${uiLabelMap.OrderTrackingNumber}
    -
    -
    -
    ${uiLabelMap.EcommerceShipmentItems}
    -
    -
    - - - - - - - <#list shipmentItems as shipmentItem> - <#assign productId = shipmentItem.productId> - <#assign product = shipmentItem.getRelatedOne("Product", false)> - - - - - - -
    ${uiLabelMap.OrderProduct}${uiLabelMap.OrderQuantity}

    ${productId!} - ${product.internalName!} ${shipmentItem.quantity!}

    -
    - + <#list orderShipmentInfoSummaryList as orderShipmentInfoSummary> + + + Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")} + <#if orderShipmentInfoSummary.carrierPartyId?has_content>(${uiLabelMap.ProductCarrier} + : ${orderShipmentInfoSummary.carrierPartyId}) + + + + + + +
    +
    +
    ${uiLabelMap.EcommerceShipmentItems}
    +
    +
    + + + + + + + + + <#list shipmentItems as shipmentItem> + <#assign productId = shipmentItem.productId> + <#assign product = shipmentItem.getRelatedOne("Product", false)> + + + + + + + + +
    ${uiLabelMap.OrderProduct}${uiLabelMap.OrderQuantity}

    ${productId!} - ${product.internalName!} ${shipmentItem.quantity!}

    +
    + diff --git a/ecommerce/template/email/TellAFriend.ftl b/ecommerce/template/email/TellAFriend.ftl index ce0f35221..a740323f9 100644 --- a/ecommerce/template/email/TellAFriend.ftl +++ b/ecommerce/template/email/TellAFriend.ftl @@ -19,12 +19,12 @@ under the License. -${sendTo}, -
    -${sendFrom} ${uiLabelMap.EcommerceFollowingMessage} -

    -${message} -

    -${pageUrl} + ${sendTo}, +
    + ${sendFrom} ${uiLabelMap.EcommerceFollowingMessage} +

    + ${message} +

    + ${pageUrl} diff --git a/ecommerce/template/forum/BlogLib.ftl b/ecommerce/template/forum/BlogLib.ftl index 28fd39cbe..f1042f9a9 100644 --- a/ecommerce/template/forum/BlogLib.ftl +++ b/ecommerce/template/forum/BlogLib.ftl @@ -18,178 +18,198 @@ under the License. --> <#macro renderBlog contentId="" targetPurpose="" stdWrapId=""> -<#if contentId?has_content> + <#if contentId?has_content> <#assign contentIdx = contentId/> - -<#assign viewIdx = "" /> -<#if requestParameters.viewIndex?has_content> -<#assign viewIdx = requestParameters.viewIndex! /> - -<#assign viewSz = "" /> -<#if requestParameters.viewSize?has_content> -<#assign viewSz = requestParameters.viewSize! /> - - -<#assign sz=0/> - -<@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK" - pickWhen="purposes.contains(\"ARTICLE\") && \"CTNT_PUBLISHED\".equals(content.get(\"statusId\"))" - returnAfterPickWhen="purposes.contains(\"ARTICLE\")" - followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"never follow\")"> - <#assign thisNodeTrailCsv=nodeTrailCsv!/> - <#assign thisSubContentId=subContentId!/> - <#assign thisNode=globalNodeTrail?last/> - <#if thisNode?has_content> - <#assign thisOwnerContentId=thisNode.value.ownerContentId!/> + + <#assign viewIdx = "" /> + <#if requestParameters.viewIndex?has_content> + <#assign viewIdx = requestParameters.viewIndex! /> + + <#assign viewSz = "" /> + <#if requestParameters.viewSize?has_content> + <#assign viewSz = requestParameters.viewSize! /> - <#assign userLoginId=""/> - <#if content?has_content && content.createdByUserLogin?has_content> - <#assign userLoginId=content.createdByUserLogin/> - - <#assign authorName=Static["org.apache.ofbiz.content.ContentManagementWorker"].getUserName(request,userLoginId!)/> + <#assign sz=0/> +
    + <@loopSubContent contentId=contentIdx viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="PUBLISH_LINK" + pickWhen="purposes.contains(\"ARTICLE\") && \"CTNT_PUBLISHED\".equals(content.get(\"statusId\"))" + returnAfterPickWhen="purposes.contains(\"ARTICLE\")" + followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"never follow\")"> + <#assign thisNodeTrailCsv=nodeTrailCsv!/> + <#assign thisSubContentId=subContentId!/> + <#assign thisNode=globalNodeTrail?last/> + <#if thisNode?has_content> + <#assign thisOwnerContentId=thisNode.value.ownerContentId!/> + - - - + + - - -<@checkPermission mode="equals" entityOperation="_UPDATE" subContentId=content.contentId targetOperation="CONTENT_UPDATE" contentPurposeList="ARTICLE"> - - - -<#assign sz=listSize/> - - - - -<#if sz == 0 > - - -<@wrapSubContentCache subContentId=contentIdx wrapTemplateId=stdWrapId contentPurposeList="ARTICLE"> - -
      -
    - by:<#if authorName?has_content>${authorName!} - <#else> - <#if content?has_content>${content.createdByUserLogin!} - -   - <#if thisNode?? && thisNode.fromDate??> - <#assign nowTime = thisNode.fromDate?string /> - <#assign shortTime = ""/> - <#if nowTime?has_content> - <#assign lastColon=nowTime?last_index_of(":") - 1/> - <#assign shortTime=nowTime[0..lastColon]/> + <#assign userLoginId=""/> + <#if content?has_content && content.createdByUserLogin?has_content> + <#assign userLoginId=content.createdByUserLogin/> + + <#assign authorName=Static["org.apache.ofbiz.content.ContentManagementWorker"].getUserName(request,userLoginId!)/> + +
      +
    + by:<#if authorName?has_content>${authorName!} + <#else> + <#if content?has_content>${content.createdByUserLogin!} - ${shortTime!} - -
    -
    - <#if content?has_content>${content.contentName!} - -- - <#if content?has_content>${content.description!} - -${uiLabelMap.CommonView} - -${uiLabelMap.CommonEdit} -
    ${uiLabelMap.CommonNoRecordFound}
    - -<#assign targOp="HAS_USER_ROLE"/> -<#assign pageTargOp=targetOperation!/> -<#if pageTargOp?has_content> - <#assign targOp=pageTargOp/> - -<@checkPermission mode="equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED" targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx> - - -<@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED" targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx> - - -
    -${uiLabelMap.ProductNewArticle} -
    -${uiLabelMap.EcommerceLoggedToPost} -
    -<#-- -<@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentIdx statusId="CTNT_PUBLISHED" targetOperation="HAS_USER_ROLE" contentPurposeList="ARTICLE"> - ${permissionErrorMsg!} - ---> +   + <#if thisNode?? && thisNode.fromDate??> + <#assign nowTime = thisNode.fromDate?string /> + <#assign shortTime = ""/> + <#if nowTime?has_content> + <#assign lastColon=nowTime?last_index_of(":") - 1/> + <#assign shortTime=nowTime[0..lastColon]/> + + ${shortTime!} + +
    + + + <#if content?has_content>${content.contentName!} + -- + <#if content?has_content>${content.description!} + + + ${uiLabelMap.CommonView} + + <@checkPermission mode="equals" entityOperation="_UPDATE" subContentId=content.contentId targetOperation="CONTENT_UPDATE" contentPurposeList="ARTICLE"> + + ${uiLabelMap.CommonEdit} + + + + <#assign sz=listSize/> + + <#if sz == 0 > + + ${uiLabelMap.CommonNoRecordFound} + + + <@wrapSubContentCache subContentId=contentIdx wrapTemplateId=stdWrapId contentPurposeList="ARTICLE"> + + + + <#assign targOp="HAS_USER_ROLE"/> + <#assign pageTargOp=targetOperation!/> + <#if pageTargOp?has_content> + <#assign targOp=pageTargOp/> + + <@checkPermission mode="equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED" + targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx> + + + + + <@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentDept statusId="CTNT_PUBLISHED" + targetOperation=targOp contentPurposeList="ARTICLE" quickCheckContentId=contentIdx> + + + + +
    + + ${uiLabelMap.ProductNewArticle} + +
    + ${uiLabelMap.EcommerceLoggedToPost} +
    + <#-- + <@checkPermission mode="not-equals" entityOperation="_CREATE" subContentId=contentIdx statusId="CTNT_PUBLISHED" + targetOperation="HAS_USER_ROLE" contentPurposeList="ARTICLE"> + ${permissionErrorMsg!} + + --> <#macro renderAncestryPath trail startIndex=0 endIndexOffset=0 buttonTitle="${uiLabelMap.CommonBackTo}"> - <#local indent = ""> - <#local csv = ""> - <#local counter = 0> - <#local len = trail?size> - + <#local indent = ""> + <#local csv = ""> + <#local counter = 0> + <#local len = trail?size> +
    <#list trail as content> <#if counter < (len - endIndexOffset) && startIndex <= counter > <#if 0 < counter > - <#local csv = csv + ","/> + <#local csv = csv + ","/> <#local csv = csv + content.contentId/> <#if counter < len && startIndex <= counter > - - + + [${content.contentId!}] + - + <#local counter = counter + 1> - <#if 20 < counter > <#break/> + <#if 20 < counter > <#break/> -
    - ${indent} +
    + ${indent} <#if content.contentTypeId == "WEB_SITE_PUB_PT" > - ${uiLabelMap.CommonBackTo}  ${content.contentName!} + ${uiLabelMap.CommonBackTo} +  ${content.contentName!} <#else> - ${uiLabelMap.CommonBackTo}to  ${content.contentName!} + ${uiLabelMap.CommonBackTo} + to  ${content.contentName!} <#local indent = indent + "    "> - [${content.contentId!}]
    + <#macro nextPrev listSize requestURL queryString lowIndex=0 highIndex=10 viewSize=10 viewIndex=0 > -<#assign lowIdx=lowIndex/> -<#assign highIdx=highIndex/> -<#assign viewSz=viewSize/> -<#assign viewIdx=viewIndex/> -<#assign listSz=listSize/> + <#assign lowIdx=lowIndex/> + <#assign highIdx=highIndex/> + <#assign viewSz=viewSize/> + <#assign viewIdx=viewIndex/> + <#assign listSz=listSize/> -<#if !lowIdx?has_content><#assign lowIdx=0/> -<#if !highIdx?has_content><#assign highIdx=0/> -<#if !viewSz?has_content><#assign viewSz=10/> -<#if !viewIdx?has_content><#assign viewIdx=10/> -<#if !listSz?has_content><#assign listSz=0/> + <#if !lowIdx?has_content><#assign lowIdx=0/> + <#if !highIdx?has_content><#assign highIdx=0/> + <#if !viewSz?has_content><#assign viewSz=10/> + <#if !viewIdx?has_content><#assign viewIdx=10/> + <#if !listSz?has_content><#assign listSz=0/> -<#if queryString?has_content> + <#if queryString?has_content> <#assign queryString = Static["org.apache.ofbiz.base.util.UtilHttp"].stripViewParamsFromQueryString(queryString)/> - + -<#assign lowIdxShow = lowIdx + 1 /> -<#if highIdx < lowIdxShow > - <#assign lowIdxShow = highIdx/> - - - -
    - <#if 0 < listSz?number> - <#if 0 < viewIdx?number> - ${uiLabelMap.CommonPrevious} - <#else> - ${uiLabelMap.CommonPrevious} - - <#if 0 < listSz> - ${lowIdxShow} - ${highIdx!} ${uiLabelMap.CommonOf} ${listSz!} - - <#if highIdx!?number < listSz!?number> - ${uiLabelMap.CommonNext} - <#else> - ${uiLabelMap.CommonNext} - - -
    + <#assign lowIdxShow = lowIdx + 1 /> + <#if highIdx < lowIdxShow > + <#assign lowIdxShow = highIdx/> + + + + + +
    + <#if 0 < listSz?number> + <#if 0 < viewIdx?number> + ${uiLabelMap.CommonPrevious} + <#else> + ${uiLabelMap.CommonPrevious} + + <#if 0 < listSz> + ${lowIdxShow} - ${highIdx!} ${uiLabelMap.CommonOf} ${listSz!} + + <#if highIdx!?number < listSz!?number> + ${uiLabelMap.CommonNext} + <#else> + ${uiLabelMap.CommonNext} + + +
    diff --git a/ecommerce/template/forum/ForumPaging.ftl b/ecommerce/template/forum/ForumPaging.ftl index 887969580..25a4b686e 100644 --- a/ecommerce/template/forum/ForumPaging.ftl +++ b/ecommerce/template/forum/ForumPaging.ftl @@ -22,27 +22,35 @@ under the License. <#assign highIndex = viewIndex?int * viewSize?int + viewSize> <#--
    == viewIndex: ${viewIndex} ==viewSize: ${viewSize} ==lowIndex: ${lowIndex}== highIndex: ${highIndex} == ListSize: ${listSize}--> <#if forumMessages?has_content && forumMessages?size gt 0> - <#assign listSize = forumMessages?size/> - <#if highIndex gt listSize><#assign highIndex = listSize> -
    - <#assign r = listSize / viewSize /> - <#assign viewIndexMax = Static["java.lang.Math"].ceil(r)> - - - <#if (viewIndex?int >0)> - ${uiLabelMap.CommonPrevious} | - - <#if (listSize?int > 0)> - ${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} - - <#if highIndex?int < listSize?int> - | ${uiLabelMap.CommonNext} - - -
    + <#assign listSize = forumMessages?size/> + <#if highIndex gt listSize><#assign highIndex = listSize> +
    + <#assign r = listSize / viewSize /> + <#assign viewIndexMax = Static["java.lang.Math"].ceil(r)> + + + <#if (viewIndex?int >0)> + + ${uiLabelMap.CommonPrevious} + | + + <#if (listSize?int > 0)> + ${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize} + + <#if highIndex?int < listSize?int> + | ${uiLabelMap.CommonNext} + + +
    diff --git a/ecommerce/template/forum/Forums.ftl b/ecommerce/template/forum/Forums.ftl index e155d9f08..c480433e8 100644 --- a/ecommerce/template/forum/Forums.ftl +++ b/ecommerce/template/forum/Forums.ftl @@ -26,11 +26,12 @@ under the License.
    \ No newline at end of file diff --git a/ecommerce/template/forum/MessageDisplay.ftl b/ecommerce/template/forum/MessageDisplay.ftl index 406b1c120..d55259625 100644 --- a/ecommerce/template/forum/MessageDisplay.ftl +++ b/ecommerce/template/forum/MessageDisplay.ftl @@ -16,38 +16,44 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - <#-- Thread content id equals contentId if contentAssocTypeId equals PUBLISH_LINK, else threadContentId = ownerContentId --> - <#assign threadContentId = forumMessage.contentId/> - <#if forumMessage.caContentAssocTypeId == "RESPONSE"> - <#assign threadContentId = forumMessage.ownerContentId!/> +<#-- Thread content id equals contentId if contentAssocTypeId equals PUBLISH_LINK, else threadContentId = ownerContentId --> +<#assign threadContentId = forumMessage.contentId/> +<#if forumMessage.caContentAssocTypeId == "RESPONSE"> + <#assign threadContentId = forumMessage.ownerContentId!/> + +<#if rsp??> + <#assign contentId = rsp.contentId> +<#else> + <#assign contentId = forumMessage.contentId> + +
    + ${uiLabelMap.CommonTitle} : ${forumMessage.contentName!} ${uiLabelMap.CommonBy}:${forumMessage.createdByUserLogin!} + ${uiLabelMap.CommonAt}: ${(forumMessage.createdDate.toString().substring(0,16))!} + ${uiLabelMap.CommonView} +
    +
    + ${forumMessage.description!} +
    + +<#-- + <#assign result = dispatcher.runSync("getPublicForumMessage", Static["org.apache.ofbiz.base.util.UtilMisc"] + .toMap("contentId", contentId, "userLogin", userLogin))/> + <#if (result.resultData)??> +
    + ${uiLabelMap.CommonTitle}: ${result.resultData.content.description!} + ${uiLabelMap.CommonBy}:${result.resultData.content.createdByUserLogin} ${uiLabelMap.CommonAt}: + ${result.resultData.content.createdDate.toString().substring(0,16)} + ${uiLabelMap.PartyReply} +
    +
    + <#if result.resultData.electronicText??> + ${result.resultData.electronicText.textData} - <#if rsp??> - <#assign contentId = rsp.contentId> - <#else> - <#assign contentId = forumMessage.contentId> - -
    - ${uiLabelMap.CommonTitle}: ${forumMessage.contentName!} ${uiLabelMap.CommonBy}:${forumMessage.createdByUserLogin!} ${uiLabelMap.CommonAt}: ${(forumMessage.createdDate.toString().substring(0,16))!} - ${uiLabelMap.CommonView} -
    -
    - ${forumMessage.description!} -
    - - <#-- - <#assign result = dispatcher.runSync("getPublicForumMessage", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", contentId, "userLogin", userLogin))/> - <#if (result.resultData)??> -
    - ${uiLabelMap.CommonTitle}: ${result.resultData.content.description!} ${uiLabelMap.CommonBy}:${result.resultData.content.createdByUserLogin} ${uiLabelMap.CommonAt}: ${result.resultData.content.createdDate.toString().substring(0,16)} - ${uiLabelMap.PartyReply} -
    -
    - <#if result.resultData.electronicText??> - ${result.resultData.electronicText.textData} - -
    -
    - <#else> -
    ${result.errorMessage!}
    - - --> +
    +
    + <#else> +
    ${result.errorMessage!}
    + +--> diff --git a/ecommerce/template/forum/ShowForum.ftl b/ecommerce/template/forum/ShowForum.ftl index 45ded7372..dc40a94f4 100644 --- a/ecommerce/template/forum/ShowForum.ftl +++ b/ecommerce/template/forum/ShowForum.ftl @@ -18,5 +18,5 @@ under the License. --> <#list forumMessages! as forumMessage> - <#include "MessageDisplay.ftl"> + <#include "MessageDisplay.ftl"> diff --git a/ecommerce/template/forum/ShowForumResponse.ftl b/ecommerce/template/forum/ShowForumResponse.ftl index 4f258763a..c3a4e9ea5 100644 --- a/ecommerce/template/forum/ShowForumResponse.ftl +++ b/ecommerce/template/forum/ShowForumResponse.ftl @@ -18,143 +18,156 @@ under the License. --> <#import "BlogLib.ftl" as blog/> -
    -

    {${uiLabelMap.EcommerceFromSite}


    -
    -<@blog.renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 /> -<#-- Do this so that we don't have to find the content twice (again in renderSubContent) --> -<#assign lastNode = globalNodeTrail!?last/> -<#if lastNode?has_content> - <#assign subContent=lastNode.value/> -<#else> -<#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("contentId", subContentId), true)/> -<#assign dummy = globalNodeTrail.add(lastNode)/> - -
    -

    ${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!} - ${subContent.description!}:


    +
    +

    {${uiLabelMap.EcommerceFromSite}


    +
    + <@blog.renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 /> + <#-- Do this so that we don't have to find the content twice (again in renderSubContent) --> + <#assign lastNode = globalNodeTrail!?last/> + <#if lastNode?has_content> + <#assign subContent=lastNode.value/> + <#else> + <#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"] + .toMap("contentId", subContentId), true)/> + <#assign dummy = globalNodeTrail.add(lastNode)/> + +
    +

    ${uiLabelMap.EcommerceContentFor} [${subContentId}] ${subContent.contentName!} + - ${subContent.description!}:


    -<#assign thisContentId=subContentId!> -<#if !thisContentId?has_content> - <#assign thisContentId=contentId!> - - - - - - - -
      - <@renderSubContentCache subContentId=thisContentId /> - -<@checkPermission subContentId=subContentId targetOperation="HAS_USER_ROLE" contentPurposeList="RESPONSE" > -${uiLabelMap.EcommerceRespond} - -
    + <#assign thisContentId=subContentId!> + <#if !thisContentId?has_content> + <#assign thisContentId=contentId!> + + + + + + + +
      + <@renderSubContentCache subContentId=thisContentId /> + + <@checkPermission subContentId=subContentId targetOperation="HAS_USER_ROLE" contentPurposeList="RESPONSE" > + + ${uiLabelMap.EcommerceRespond} + + +
    +
    +
    + <#-- + <@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND" + contentPurposeList="RESPONSE" > + ${permissionErrorMsg!} + + --> -
    -
    -<#-- -<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND" contentPurposeList="RESPONSE" > - ${permissionErrorMsg!} - ---> - - - -

    ${uiLabelMap.EcommerceResponses}


    -<@loopSubContent contentAssocTypeId="RESPONSE" contentId=subContentId mapKey="" - pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\") && mapKey == null" - followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"> - <@traverseSubContentCache contentAssocTypeId="RESPONSE" - pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")" - followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")" - wrapTemplateId=""> - <#assign indentStr=indent?default("0")/> - <#assign indent=indentStr?number/> - <#if 1 < indent > - <#assign fillRange=1..indent/> - <#assign indentFill=""/> - <#list fillRange as i> +
    + +

    ${uiLabelMap.EcommerceResponses}


    + <@loopSubContent contentAssocTypeId="RESPONSE" contentId=subContentId mapKey="" + pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\") && mapKey == null" + followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"> + <@traverseSubContentCache contentAssocTypeId="RESPONSE" + pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")" + followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")" + wrapTemplateId=""> + <#assign indentStr=indent?default("0")/> + <#assign indent=indentStr?number/> + <#if 1 < indent > + <#assign fillRange=1..indent/> + <#assign indentFill=""/> + <#list fillRange as i> <#assign indentFill = indentFill + "    " /> - - <#assign thisContentId = ""/> - <#if nodeTrailCsv??> + + <#assign thisContentId = ""/> + <#if nodeTrailCsv??> <#assign idList = nodeTrailCsv?split(",")/> <#if 0 < idList?size > - <#assign thisContentId = idList?last> + <#assign thisContentId = idList?last> + + <#if content??> + + + + - <#if content??> - - - - - - - + + -<#-- -<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_NEXT_PREV" > - ---> + <#-- + <@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_NEXT_PREV" > + + --> -
    + ${indentFill} + + ${uiLabelMap.CommonView} + + ${content.contentId!}-${content.description!}
    +
    - ${indentFill} - ${uiLabelMap.CommonView} - ${content.contentId!}-${content.description!}
    -
    -
    + +
    <#-- not used, will be deleted --> <#macro getCurrentContent > - <#assign globalNodeTrail=globalNodeTrail/> - <#if globalNodeTrail??> - <#assign currentNode=globalNodeTrail?last/> - <#if currentNode??> - <#assign currentValue=currentNode.value/> - <#if currentValue??> - <@wrapSubContentCache subContentId=currentValue.contentId wrapTemplateId="WRAP_ARTICLE" > - <@traverseSubContentCache contentAssocTypeId="SUB_CONTENT" - pickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")" - returnAfterPickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")" - followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"_never_\")" - wrapTemplateId="" - > - <#assign description=currentValue.description?default("No description")/> -${uiLabelMap.CommonDescription}[${currentValue.contentId!}]:${description} -${uiLabelMap.CommonView} - - - - + <#assign globalNodeTrail=globalNodeTrail/> + <#if globalNodeTrail??> + <#assign currentNode=globalNodeTrail?last/> + <#if currentNode??> + <#assign currentValue=currentNode.value/> + <#if currentValue??> + <@wrapSubContentCache subContentId=currentValue.contentId wrapTemplateId="WRAP_ARTICLE" > + <@traverseSubContentCache contentAssocTypeId="SUB_CONTENT" + pickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")" + returnAfterPickWhen="mapKey != null && mapKey.equals(\"ARTICLE\")" + followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"_never_\")" + wrapTemplateId=""> + <#assign description=currentValue.description?default("No description")/> + ${uiLabelMap.CommonDescription}[${currentValue.contentId!}]:${description} + + ${uiLabelMap.CommonView} + + + + + <#macro renderSiteAncestryPath trail startIndex=0 > - <#assign indent = ""> - <#assign csv = ""> - <#assign counter = 0> - <#assign len = trail?size> - + <#assign indent = ""> + <#assign csv = ""> + <#assign counter = 0> + <#assign len = trail?size> +
    <#list trail as webSitePublishPoint> - <#if counter < len && startIndex <= counter > - - - - - <#assign counter = counter + 1> - <#if 20 < counter > <#break/> + <#if counter < len && startIndex <= counter > + + + + + <#assign counter = counter + 1> + <#if 20 < counter > <#break/> -
    - ${indent} - ${uiLabelMap.CommonBackTo}  ${webSitePublishPoint.templateTitle!} - <#assign indent = indent + "    "> - [${webSitePublishPoint.contentId!}]
    + ${indent} + ${uiLabelMap.CommonBackTo} +  ${webSitePublishPoint.templateTitle!} + <#assign indent = indent + "    "> + [${webSitePublishPoint.contentId!}] +
    + diff --git a/ecommerce/template/forum/ViewComboResponse.ftl b/ecommerce/template/forum/ViewComboResponse.ftl index bc81b12ce..e48e250d5 100644 --- a/ecommerce/template/forum/ViewComboResponse.ftl +++ b/ecommerce/template/forum/ViewComboResponse.ftl @@ -18,36 +18,40 @@ under the License. --> <#if requestAttributes._ERROR_MESSAGE_??> -
    ${requestAttributes._ERROR_MESSAGE_}

    +
    +
    ${requestAttributes._ERROR_MESSAGE_}

    <#else> - <#if trailList??> - <#assign indent = ""> - <#assign csv = ""> - <#assign counter = 1> - <#assign len = trailList?size> - <#list trailList as pair> - <#if 0 < csv?length > - <#assign csv = csv + ","/> - - <#assign csv = csv + pair[0]!/> - <#if counter < len> - ${indent} - ${pair[0]!} - ${pair[1]!} - ${uiLabelMap.CommonView}
    - <#assign indent = indent + "    "> - <#else> - - ${uiLabelMap.EcommerceAddResponseFor}${pair[0]!} - ${pair[1]!}:
    - - <#assign counter = counter + 1> - + <#if trailList??> + <#assign indent = ""> + <#assign csv = ""> + <#assign counter = 1> + <#assign len = trailList?size> + <#list trailList as pair> + <#if 0 < csv?length > + <#assign csv = csv + ","/> + + <#assign csv = csv + pair[0]!/> + <#if counter < len> + ${indent} + ${pair[0]!} - ${pair[1]!} + + ${uiLabelMap.CommonView} + +
    + <#assign indent = indent + "    "> + <#else> - <#if dataResourceId??> -
    - - -
    + ${uiLabelMap.EcommerceAddResponseFor}${pair[0]!} - ${pair[1]!}:
    + + <#assign counter = counter + 1> + + + <#if dataResourceId??> +
    + - ${singleWrapper.renderFormString()} -
    +
    + + ${singleWrapper.renderFormString()} +
    diff --git a/ecommerce/template/includes/Footer.ftl b/ecommerce/template/includes/Footer.ftl index 0935bf3f6..1e5fe1219 100644 --- a/ecommerce/template/includes/Footer.ftl +++ b/ecommerce/template/includes/Footer.ftl @@ -19,20 +19,25 @@ under the License. <#assign nowTimestamp = Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()> -
    - \ No newline at end of file +
    diff --git a/ecommerce/template/order/AnonymousCheckoutLinks.ftl b/ecommerce/template/order/AnonymousCheckoutLinks.ftl index 8f7772d3b..2d4132877 100644 --- a/ecommerce/template/order/AnonymousCheckoutLinks.ftl +++ b/ecommerce/template/order/AnonymousCheckoutLinks.ftl @@ -17,35 +17,53 @@ specific language governing permissions and limitations under the License. -->
    - onclick="javascript:submitForm(document.${parameters.formNameValue!});">Personal Info - <#if (enableShippingAddress)??> - onclick="javascript:submitForm(document.${parameters.formNameValue!});">Shipping Address - <#else> - Shipping Address - - <#if (enableShipmentMethod)??> - onclick="javascript:submitForm(document.${parameters.formNameValue!});">Shipping Options - <#else> - Shipping Options - - <#if (enablePaymentOptions)??> - onclick="javascript:submitForm(document.${parameters.formNameValue!});">Payment Options - <#else> - Payment Options - - <#if (enablePaymentInformation)??> - onclick="javascript:submitForm(document.${parameters.formNameValue!});">Payment Information - <#else> - Payment Information - - <#if (enableReviewOrder)??> - onclick="javascript:submitForm(document.${parameters.formNameValue!});">Review Order - <#else> - Review Order - + onclick="javascript:submitForm(document.${parameters.formNameValue!});"> + Personal Info + +<#if (enableShippingAddress)??> + onclick="javascript:submitForm(document.${parameters.formNameValue!});"> + Shipping Address + +<#else> + Shipping Address + +<#if (enableShipmentMethod)??> + onclick="javascript:submitForm(document.${parameters.formNameValue!});"> + Shipping Options + +<#else> + Shipping Options + +<#if (enablePaymentOptions)??> + onclick="javascript:submitForm(document.${parameters.formNameValue!});"> + Payment Options + +<#else> + Payment Options + +<#if (enablePaymentInformation)??> + onclick="javascript:submitForm(document.${parameters.formNameValue!});"> + Payment Information + +<#else> + Payment Information + +<#if (enableReviewOrder)??> + onclick="javascript:submitForm(document.${parameters.formNameValue!});"> + Review Order + +<#else> + Review Order +
    diff --git a/ecommerce/template/order/AnonymousTrail.ftl b/ecommerce/template/order/AnonymousTrail.ftl index 42d3179f7..317b253c3 100644 --- a/ecommerce/template/order/AnonymousTrail.ftl +++ b/ecommerce/template/order/AnonymousTrail.ftl @@ -17,4 +17,18 @@ specific language governing permissions and limitations under the License. --> -<#if shipAddr??>${uiLabelMap.EcommerceChangeShippingAddress}<#if shipOptions??>${uiLabelMap.EcommerceChangeShippingOptions}<#if billing??>${uiLabelMap.EcommerceChangePaymentInfo} +<#if shipAddr??> + + ${uiLabelMap.EcommerceChangeShippingAddress} + + <#if shipOptions??> + + ${uiLabelMap.EcommerceChangeShippingOptions} + + <#if billing??> + + ${uiLabelMap.EcommerceChangePaymentInfo} + + + + diff --git a/ecommerce/template/order/BillSettings.ftl b/ecommerce/template/order/BillSettings.ftl index dc36af448..69315e499 100644 --- a/ecommerce/template/order/BillSettings.ftl +++ b/ecommerce/template/order/BillSettings.ftl @@ -18,276 +18,357 @@ under the License. -->
    -
    - diff --git a/ecommerce/template/order/CcInfo.ftl b/ecommerce/template/order/CcInfo.ftl index c01ce3d67..91bd7c325 100644 --- a/ecommerce/template/order/CcInfo.ftl +++ b/ecommerce/template/order/CcInfo.ftl @@ -20,7 +20,11 @@ under the License. <#if !creditCard?has_content> <#assign creditCard = requestParameters> -
    + + +
    + + ${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")} diff --git a/ecommerce/template/order/CheckoutReview.ftl b/ecommerce/template/order/CheckoutReview.ftl index 4821f3d70..7dbcea31b 100644 --- a/ecommerce/template/order/CheckoutReview.ftl +++ b/ecommerce/template/order/CheckoutReview.ftl @@ -18,45 +18,50 @@ under the License. -->

    ${uiLabelMap.OrderFinalCheckoutReview}

    -<#if !isDemoStore?? && isDemoStore>

    ${uiLabelMap.OrderDemoFrontNote}.

    +<#if !isDemoStore?? && isDemoStore> +

    ${uiLabelMap.OrderDemoFrontNote}.

    + <#if cart?? && 0 < cart.size()> ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderheader")} -
    +
    ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")} - +
     
    <#if (requestParameters.checkoutpage)?has_content> - + <#if (requestAttributes.issuerId)?has_content> - + - +
    - <#-- doesn't work with Safari, seems to work with IE, Mozilla [${uiLabelMap.OrderSubmitOrder}]  --> + <#-- doesn't work with Safari, seems to work with IE, Mozilla + [${uiLabelMap.OrderSubmitOrder}]  -->
    diff --git a/ecommerce/template/order/CheckoutShippingOptions.ftl b/ecommerce/template/order/CheckoutShippingOptions.ftl index 8653a7b74..947929434 100644 --- a/ecommerce/template/order/CheckoutShippingOptions.ftl +++ b/ecommerce/template/order/CheckoutShippingOptions.ftl @@ -18,44 +18,44 @@ under the License. -->
    @@ -63,141 +63,187 @@ function submitForm(form, mode, value) {
    -
    -
    2) ${uiLabelMap.OrderHowShallWeShipIt}?
    -
    -
    - - <#list carrierShipmentMethodList as carrierShipmentMethod> - <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId> - - - - - - <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0> - - - - - - - - - - - - - - - - - - - - - - - - - - - + + <#if productStore.showCheckoutGiftOptions! != "N"> + + + + + + + + + + + + + + + + <#else> + + + + + + + + + + + +
    - checked="checked" /> - -
    - <#if shoppingCart.getShippingContactMechId()??> - <#assign shippingEst = shippingEstWpr.getShippingEstimate(carrierShipmentMethod)?default(-1)> - - <#if carrierShipmentMethod.partyId != "_NA_">${carrierShipmentMethod.partyId!} ${carrierShipmentMethod.description!} - <#if shippingEst?has_content> - <#if (shippingEst > -1)><@ofbizCurrency amount=shippingEst isoCode=shoppingCart.getCurrency()/><#else>${uiLabelMap.OrderCalculatedOffline} -
    -
    - - -
    ${uiLabelMap.OrderUseDefault}.
    -

    -

    ${uiLabelMap.OrderShipAllAtOnce}?

    -
    - checked="checked" name="may_split" value="false" /> - -
    ${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.
    -
    - checked="checked" type="radio" name="may_split" value="true" /> - -
    ${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.
    -

    -

    ${uiLabelMap.OrderSpecialInstructions}

    -
    - -

    -

    ${uiLabelMap.OrderPoNumber}

      - <#if shoppingCart.getPoNumber()?? && shoppingCart.getPoNumber() != "(none)"> - <#assign currentPoNumber = shoppingCart.getPoNumber()> +
    +
    2) ${uiLabelMap.OrderHowShallWeShipIt}?
    +
    +
    + + <#list carrierShipmentMethodList as carrierShipmentMethod> + <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId> + + + - - <#if productStore.showCheckoutGiftOptions! != "N"> - - - - - - - - - - - - <#else> - + + + + + + <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - -
    + checked="checked"/> + +
    + <#if shoppingCart.getShippingContactMechId()??> + <#assign shippingEst = shippingEstWpr.getShippingEstimate(carrierShipmentMethod)?default(-1)> + + <#if carrierShipmentMethod.partyId != "_NA_">${carrierShipmentMethod.partyId!} +  ${carrierShipmentMethod.description!} + <#if shippingEst?has_content> - + <#if (shippingEst > -1)> + <@ofbizCurrency amount=shippingEst isoCode=shoppingCart.getCurrency()/> + <#else> + ${uiLabelMap.OrderCalculatedOffline} - -

    -
    -

    ${uiLabelMap.OrderIsThisGift}

    - checked="checked" name="is_gift" value="true" />${uiLabelMap.CommonYes} - checked="checked" name="is_gift" value="false" />${uiLabelMap.CommonNo} -
    -

    -

    ${uiLabelMap.OrderGiftMessage}

    -
    - -
    + + +
    ${uiLabelMap.OrderUseDefault}.
    +
    +
    +
    +

    ${uiLabelMap.OrderShipAllAtOnce}?

    +
    + checked="checked" + name="may_split" value="false"/> + +
    ${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.
    +
    + checked="checked" type="radio" + name="may_split" value="true"/> + +
    ${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.
    +
    +
    +
    +

    ${uiLabelMap.OrderSpecialInstructions}

    +
    + +
    +
    +
    +

    ${uiLabelMap.OrderPoNumber}

      + <#if shoppingCart.getPoNumber()?? && shoppingCart.getPoNumber() != "(none)"> + <#assign currentPoNumber = shoppingCart.getPoNumber()> -

    -

    ${uiLabelMap.PartyEmailAddresses}

    -
    -
    ${uiLabelMap.OrderEmailSentToFollowingAddresses}:
    -
    - - <#list emailList as email> - ${email.infoString!}<#if email_has_next>, - - -
    -
    ${uiLabelMap.OrderUpdateEmailAddress} ${uiLabelMap.PartyProfile}.
    -
    -
    ${uiLabelMap.OrderCommaSeperatedEmailAddresses}:
    - -
    -
    + +
    +
    +
    +
    +

    ${uiLabelMap.OrderIsThisGift}

    + checked="checked" + name="is_gift" value="true"/>${uiLabelMap.CommonYes} + checked="checked" + name="is_gift" value="false"/>${uiLabelMap.CommonNo} +
    +
    +
    +
    +

    ${uiLabelMap.OrderGiftMessage}

    +
    + +
    +
    +
    +

    ${uiLabelMap.PartyEmailAddresses}

    +
    +
    ${uiLabelMap.OrderEmailSentToFollowingAddresses}:
    +
    + + <#list emailList as email> + ${email.infoString!}<#if email_has_next>, + + +
    +
    + ${uiLabelMap.OrderUpdateEmailAddress} + + ${uiLabelMap.PartyProfile} + . +
    +
    +
    ${uiLabelMap.OrderCommaSeperatedEmailAddresses}:
    + +
    +
    -
    -  ${uiLabelMap.OrderBacktoShoppingCart} +   + ${uiLabelMap.OrderBacktoShoppingCart} - ${uiLabelMap.CommonNext} + ${uiLabelMap.CommonNext}
    diff --git a/ecommerce/template/order/CustSettings.ftl b/ecommerce/template/order/CustSettings.ftl index a135576b2..9bdb5d951 100644 --- a/ecommerce/template/order/CustSettings.ftl +++ b/ecommerce/template/order/CustSettings.ftl @@ -19,13 +19,14 @@ under the License.

    ${uiLabelMap.EcommerceYourNamePhoneAndEmail}

    -
    +
    - - - <#if requestParameters.personalTitle?has_content > @@ -36,29 +37,30 @@ under the License. - - - + + + - * + * - + - + - + - * + * - + - +
    - - +
    ${uiLabelMap.PartyPhoneNumbers}
    + @@ -68,60 +70,68 @@ under the License. - - - - - - - - - - - - - - - - - -
    ${uiLabelMap.PartyPhoneNumbers}
    ${uiLabelMap.CommonCountry}${uiLabelMap.PartyAllowSolicitation}
    ${uiLabelMap.PartyHomePhone} - -
    ${uiLabelMap.PartyBusinessPhone} - -
    + ${uiLabelMap.PartyHomePhone} + + + + + + + + + + + ${uiLabelMap.PartyBusinessPhone} + + + + + + + + + +
    - - - - * - - + + + + * + + -
    -
    - -
    +
    +
    + +
    diff --git a/ecommerce/template/order/EftInfo.ftl b/ecommerce/template/order/EftInfo.ftl index 8af1ebd63..6ef5e73b0 100644 --- a/ecommerce/template/order/EftInfo.ftl +++ b/ecommerce/template/order/EftInfo.ftl @@ -19,28 +19,64 @@ under the License. <#-- eft fields --> <#if !eftAccount?has_content><#assign eftAccount = requestParameters> -
    - -
    ${uiLabelMap.AccountingEFTAccountInformation}
       -
    ${uiLabelMap.AccountingNameOnAccount}
    + +
    + + + + + +
    ${uiLabelMap.AccountingEFTAccountInformation}
    +   - * +   -
    ${uiLabelMap.AccountingCompanyNameOnAccount}
      - + +
    ${uiLabelMap.AccountingNameOnAccount}
    + +   + + * + -
    ${uiLabelMap.AccountingBankName}
    -  * + +
    ${uiLabelMap.AccountingCompanyNameOnAccount}
    + +   + + + -
    ${uiLabelMap.AccountingRoutingNumber}
    -  * + +
    ${uiLabelMap.AccountingBankName}
    + +   + + * + -
    ${uiLabelMap.AccountingAccountType}
      + +
    ${uiLabelMap.AccountingRoutingNumber}
    + +   + + * + + + + +
    ${uiLabelMap.AccountingAccountType}
    + +   * + +
    ${uiLabelMap.AccountingAccountNumber}
    + +   + + * + -
    ${uiLabelMap.CommonDescription}
    -   + +
    ${uiLabelMap.CommonDescription}
    + +   + + + diff --git a/ecommerce/template/order/GcInfo.ftl b/ecommerce/template/order/GcInfo.ftl index 5995eff67..9d550708f 100644 --- a/ecommerce/template/order/GcInfo.ftl +++ b/ecommerce/template/order/GcInfo.ftl @@ -18,45 +18,59 @@ under the License. --> <#-- gift card fields --> - - <#assign giftCard = giftCard!> - <#if paymentMethodTypeId! != "GIFT_CARD"> - -
    - - - -
    ${uiLabelMap.AccountingGiftCardInformation}
    -   -   - - -
    ${uiLabelMap.AccountingGiftCardNumber}
    -   - - - * - - -
    ${uiLabelMap.AccountingPINNumber}
    -   - - - * - - -
    ${uiLabelMap.CommonDescription}
    -   - - - - - <#if paymentMethodTypeId! != "GIFT_CARD"> - -
    ${uiLabelMap.AccountingAmountToUse}
    -   - - - * - - + +<#assign giftCard = giftCard!> +<#if paymentMethodTypeId! != "GIFT_CARD"> + + +
    + + + + + +
    ${uiLabelMap.AccountingGiftCardInformation}
    + +   +   + + + +
    ${uiLabelMap.AccountingGiftCardNumber}
    + +   + + + * + + + + +
    ${uiLabelMap.AccountingPINNumber}
    + +   + + + * + + + + +
    ${uiLabelMap.CommonDescription}
    + +   + + + + +<#if paymentMethodTypeId! != "GIFT_CARD"> + + +
    ${uiLabelMap.AccountingAmountToUse}
    + +   + + * + + + diff --git a/ecommerce/template/order/GenericAddress.ftl b/ecommerce/template/order/GenericAddress.ftl index 5b5707707..7e29ce8aa 100644 --- a/ecommerce/template/order/GenericAddress.ftl +++ b/ecommerce/template/order/GenericAddress.ftl @@ -29,42 +29,59 @@ under the License. -
    ${uiLabelMap.PartyToName}
    + +
    ${uiLabelMap.PartyToName}
    +   - disabled/> + disabled/> -
    ${uiLabelMap.PartyAttentionName}
    + +
    ${uiLabelMap.PartyAttentionName}
    +   - disabled/> + disabled/> -
    ${uiLabelMap.PartyAddressLine1}
    + +
    ${uiLabelMap.PartyAddressLine1}
    +   - disabled/> - * - - -
    ${uiLabelMap.PartyAddressLine2}
    -   - - disabled/> + disabled/>* -
    ${uiLabelMap.PartyCity}
    + +
    ${uiLabelMap.PartyAddressLine2}
    +   - disabled/> - * + disabled/> + -
    ${uiLabelMap.PartyState}
    + +
    ${uiLabelMap.PartyCity}
    + +   + + disabled/>* + + + + +
    ${uiLabelMap.PartyState}
    +   - * + * + -
    ${uiLabelMap.PartyZipCode}
    + +
    ${uiLabelMap.PartyZipCode}
    +   - disabled/> - * + disabled/>* + -
    ${uiLabelMap.CommonCountry}
    + +
    ${uiLabelMap.CommonCountry}
    +   - * + * + -
    ${uiLabelMap.PartyAllowSolicitation}?
    + +
    ${uiLabelMap.PartyAllowSolicitation}?
    +   - - - - - - - <#if userLogin??> - - - - <#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) /> - - <#else> - - -
    -
    - - - - - - - - -
    -
    - <#if shipToTelecomNumber?has_content> - - - - - - - - - - - - - - - - - - - - <#else> - - - - - - - - - - - - - - - - - - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - - - - -
    - -
    - ${uiLabelMap.EcommerceContinueToStep} 3 - -
    - + <#-- ========================================================================================================================== --> +
    +

    ${uiLabelMap.EcommerceStep} 2: ${uiLabelMap.FacilityShipping}

    + -<#-- ========================================================================================================================== --> -
    -

    ${uiLabelMap.EcommerceStep} 3: ${uiLabelMap.PageTitleShippingOptions}

    - - -<#-- ============================================================= --> -
    - + + <#-- ========================================================================================================================== --> +
    +

    ${uiLabelMap.EcommerceStep} 3: ${uiLabelMap.PageTitleShippingOptions}

    + + + <#-- ============================================================= --> + +
    + + <#-- ========================================================================================================================== --> +
    +

    ${uiLabelMap.EcommerceStep} 4: ${uiLabelMap.AccountingBilling}

    + + + <#-- ============================================================= --> + + +
    + + <#-- ========================================================================================================================== --> +
    +

    ${uiLabelMap.EcommerceStep} 5: ${uiLabelMap.OrderSubmitOrder}

    + +
    +
    + <#-- ========================================================================================================================== --> -
    style="display: none;"> -

    ${uiLabelMap.EcommerceStep} 1: ${uiLabelMap.PageTitleShoppingCart}

    - You currently have no items in your cart. Click here to view our products. -

    ${uiLabelMap.EcommerceStep} 2: ${uiLabelMap.FacilityShipping}

    -

    ${uiLabelMap.EcommerceStep} 3: ${uiLabelMap.PageTitleShippingOptions}

    -

    ${uiLabelMap.EcommerceStep} 4: ${uiLabelMap.AccountingBilling}

    -

    ${uiLabelMap.EcommerceStep} 5: ${uiLabelMap.OrderSubmitOrder}

    -
    +
    + style="display: none;"> +

    ${uiLabelMap.EcommerceStep} 1: ${uiLabelMap.PageTitleShoppingCart}

    + You currently have no items in your cart. Click + here to view our products. + +

    ${uiLabelMap.EcommerceStep} 2: ${uiLabelMap.FacilityShipping}

    +

    ${uiLabelMap.EcommerceStep} 3: ${uiLabelMap.PageTitleShippingOptions}

    +

    ${uiLabelMap.EcommerceStep} 4: ${uiLabelMap.AccountingBilling}

    +

    ${uiLabelMap.EcommerceStep} 5: ${uiLabelMap.OrderSubmitOrder}

    +
    diff --git a/ecommerce/template/order/OptionSettings.ftl b/ecommerce/template/order/OptionSettings.ftl index 430585ee4..9adac29f9 100644 --- a/ecommerce/template/order/OptionSettings.ftl +++ b/ecommerce/template/order/OptionSettings.ftl @@ -17,69 +17,84 @@ specific language governing permissions and limitations under the License. --> -

    ${uiLabelMap.OrderShippingInformation}

    -
    -
    ${uiLabelMap.OrderShippingInformation} - -
      - <#list carrierShipmentMethodList as carrierShipmentMethod> -
    • - <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId> - checked="checked"/> - -
    • - - <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0> -
      - - -
      - -
    -
    ${uiLabelMap.OrderShipAllAtOnce}? -
    - checked="checked" name="may_split" value="false"/> - -
    -
    - checked="checked" name="may_split" value="true"/> - -
    -
    -
    -
    - - -
    -
    - - -
    -
    - <#if productStore.showCheckoutGiftOptions! != "N"> -
    ${uiLabelMap.OrderIsThisGift} -
    - checked="checked" name="is_gift" value="true"/> - -
    -
    - checked="checked" name="is_gift" value="false"/> - -
    -
    - - -
    -
    +

    ${uiLabelMap.OrderShippingInformation}

    + +
    + ${uiLabelMap.OrderShippingInformation} + +
      + <#list carrierShipmentMethodList as carrierShipmentMethod> +
    • + <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId> + checked="checked"/> + +
    • + + <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0> +
      + + +
      -
      - +
    +
    + ${uiLabelMap.OrderShipAllAtOnce}? +
    + checked="checked" + name="may_split" value="false"/> +
    - +
    + checked="checked" + name="may_split" value="true"/> + +
    +
    +
    +
    + + +
    +
    + + +
    +
    + <#if productStore.showCheckoutGiftOptions! != "N"> +
    + ${uiLabelMap.OrderIsThisGift} +
    + checked="checked" + name="is_gift" value="true"/> + +
    +
    + checked="checked" + name="is_gift" value="false"/> + +
    +
    + + +
    +
    + +
    + +
    + diff --git a/ecommerce/template/order/OrderHeader.ftl b/ecommerce/template/order/OrderHeader.ftl index 73a23e421..de1bbb083 100644 --- a/ecommerce/template/order/OrderHeader.ftl +++ b/ecommerce/template/order/OrderHeader.ftl @@ -26,288 +26,304 @@ under the License.
    <#-- left side --> -
    -
    -

    - <#if maySelectItems?default("N") == "Y" && returnLink?default("N") == "Y" && (orderHeader.statusId)! == "ORDER_COMPLETED" && roleTypeId! == "PLACING_CUSTOMER"> - makeReturn?orderId=${orderHeader.orderId}" class="submenutextright">${uiLabelMap.OrderRequestReturn} - - ${uiLabelMap.OrderOrder} - <#if orderHeader?has_content> - ${uiLabelMap.CommonNbr}orderstatus?orderId=${orderHeader.orderId}" class="lightbuttontext">${orderHeader.orderId} - - ${uiLabelMap.CommonInformation} - <#if (orderHeader.orderId)??> - ${externalOrder!} [ order.pdf?orderId=${(orderHeader.orderId)!}" target="_BLANK" class="lightbuttontext">PDF ] - -

    - <#-- placing customer information --> -
      - <#if localOrderReadHelper?? && orderHeader?has_content> - <#assign displayParty = localOrderReadHelper.getPlacingParty()!/> - <#if displayParty?has_content> - <#assign displayPartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("partyId", displayParty.partyId, "compareDate", orderHeader.orderDate, "userLogin", userLogin))/> +
      +
      +

      + <#if maySelectItems?default("N") == "Y" && returnLink?default("N") == "Y" && (orderHeader.statusId)! == "ORDER_COMPLETED" && roleTypeId! == "PLACING_CUSTOMER"> + makeReturn?orderId=${orderHeader.orderId}" + class="submenutextright">${uiLabelMap.OrderRequestReturn} -
    • - ${uiLabelMap.PartyName} - ${(displayPartyNameResult.fullName)?default("[Name Not Found]")} -
    • - - <#-- order status information --> -
    • - ${uiLabelMap.CommonStatus} + ${uiLabelMap.OrderOrder} <#if orderHeader?has_content> - ${localOrderReadHelper.getStatusString(locale)} - <#else> - ${uiLabelMap.OrderNotYetOrdered} + ${uiLabelMap.CommonNbr} + orderstatus?orderId=${orderHeader.orderId}" + class="lightbuttontext">${orderHeader.orderId} -
    • - <#-- ordered date --> - <#if orderHeader?has_content> -
    • - ${uiLabelMap.CommonDate} - ${orderHeader.orderDate.toString()} -
    • - - <#if distributorId??> -
    • - ${uiLabelMap.OrderDistributor} - ${distributorId} -
    • - -

    -
    - -
    - <#if paymentMethods?has_content || paymentMethodType?has_content || billingAccount?has_content> - <#-- order payment info --> -

    ${uiLabelMap.AccountingPaymentInformation}

    - <#-- offline payment address infomation :: change this to use Company's address --> -
      - <#if !paymentMethod?has_content && paymentMethodType?has_content> -
    • - <#if paymentMethodType.paymentMethodTypeId == "EXT_OFFLINE"> - ${uiLabelMap.AccountingOfflinePayment} - <#if orderHeader?has_content && paymentAddress?has_content> - ${uiLabelMap.OrderSendPaymentTo}: - <#if paymentAddress.toName?has_content>${paymentAddress.toName} - <#if paymentAddress.attnName?has_content>${uiLabelMap.PartyAddrAttnName}: ${paymentAddress.attnName} - ${paymentAddress.address1} - <#if paymentAddress.address2?has_content>${paymentAddress.address2} - <#assign paymentStateGeo = (delegator.findOne("Geo", {"geoId", paymentAddress.stateProvinceGeoId!}, false))! /> - ${paymentAddress.city}<#if paymentStateGeo?has_content>, ${paymentStateGeo.geoName!} ${paymentAddress.postalCode!} - <#assign paymentCountryGeo = (delegator.findOne("Geo", {"geoId", paymentAddress.countryGeoId!}, false))! /> - <#if paymentCountryGeo?has_content>${paymentCountryGeo.geoName!} - ${uiLabelMap.EcommerceBeSureToIncludeYourOrderNb} - - <#else> - <#assign outputted = true> - ${uiLabelMap.AccountingPaymentVia} ${paymentMethodType.get("description",locale)} - -
    • - - <#if paymentMethods?has_content> - <#list paymentMethods as paymentMethod> - <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId> - <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)> - <#assign formattedCardNumber = Static["org.apache.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)> - <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId> - <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false)> - <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId> - <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)> - - <#-- credit card info --> - <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId && creditCard?has_content> - <#if outputted?default(false)> - - <#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress", false)!> -
    • -
        -
      • ${uiLabelMap.AccountingCreditCard} - <#if creditCard.companyNameOnCard?has_content>${creditCard.companyNameOnCard} - <#if creditCard.titleOnCard?has_content>${creditCard.titleOnCard} - ${creditCard.firstNameOnCard} - <#if creditCard.middleNameOnCard?has_content>${creditCard.middleNameOnCard} - ${creditCard.lastNameOnCard} - <#if creditCard.suffixOnCard?has_content>${creditCard.suffixOnCard} -
      • -
      • ${formattedCardNumber}
      • -
      -
    • - <#-- Gift Card info --> - <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId && giftCard?has_content> - <#if outputted?default(false)> - - <#if giftCard?has_content && giftCard.cardNumber?has_content> - <#assign pmBillingAddress = giftCard.getRelatedOne("PostalAddress", false)!> - <#assign giftCardNumber = ""> - <#assign pcardNumber = giftCard.cardNumber> - <#if pcardNumber?has_content> - <#assign psize = pcardNumber?length - 4> - <#if 0 < psize> - <#list 0 .. psize-1 as foo> - <#assign giftCardNumber = giftCardNumber + "*"> - - <#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3]> - <#else> - <#assign giftCardNumber = pcardNumber> - - - -
    • - ${uiLabelMap.AccountingGiftCard} - ${giftCardNumber} -
    • - <#-- EFT account info --> - <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId && eftAccount?has_content> - <#if outputted?default(false)> - - <#assign pmBillingAddress = eftAccount.getRelatedOne("PostalAddress", false)!> -
    • -
        -
      • - ${uiLabelMap.AccountingEFTAccount} - ${eftAccount.nameOnAccount!} -
      • -
      • - <#if eftAccount.companyNameOnAccount?has_content>${eftAccount.companyNameOnAccount} -
      • -
      • - ${uiLabelMap.AccountingBank}: ${eftAccount.bankName}, ${eftAccount.routingNumber} -
      • -
      • - ${uiLabelMap.AccountingAccount} #: ${eftAccount.accountNumber} -
      • -
      -
    • - - <#if pmBillingAddress?has_content> -
    • -
        -
      • - <#if pmBillingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${pmBillingAddress.toName} -
      • -
      • - <#if pmBillingAddress.attnName?has_content>${uiLabelMap.CommonAttn}: ${pmBillingAddress.attnName} -
      • -
      • - ${pmBillingAddress.address1} -
      • -
      • - <#if pmBillingAddress.address2?has_content>${pmBillingAddress.address2} -
      • -
      • - <#assign pmBillingStateGeo = (delegator.findOne("Geo", {"geoId", pmBillingAddress.stateProvinceGeoId!}, false))! /> - ${pmBillingAddress.city}<#if pmBillingStateGeo?has_content>, ${ pmBillingStateGeo.geoName!} ${pmBillingAddress.postalCode!} - <#assign pmBillingCountryGeo = (delegator.findOne("Geo", {"geoId", pmBillingAddress.countryGeoId!}, false))! /> - <#if pmBillingCountryGeo?has_content>${pmBillingCountryGeo.geoName!} -
      • -
      -
    • - - <#assign outputted = true> - - - <#-- billing account info --> - <#if billingAccount?has_content> - <#if outputted?default(false)> - - <#assign outputted = true> -
    • - ${uiLabelMap.AccountingBillingAccount} - #${billingAccount.billingAccountId!} - ${billingAccount.description!} -
    • - - <#if (customerPoNumberSet?has_content)> -
    • - ${uiLabelMap.OrderPurchaseOrderNumber} - <#list customerPoNumberSet as customerPoNumber> - ${customerPoNumber!} - -
    • - -
    - -
    -
    -<#-- right side --> -
    - <#if orderItemShipGroups?has_content> -

    ${uiLabelMap.OrderShippingInformation}

    - <#-- shipping address --> - <#assign groupIdx = 0> - <#list orderItemShipGroups as shipGroup> - <#if orderHeader?has_content> - <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress", false)!> - <#assign groupNumber = shipGroup.shipGroupSeqId!> - <#else> - <#assign shippingAddress = cart.getShippingAddress(groupIdx)!> - <#assign groupNumber = groupIdx + 1> + ${uiLabelMap.CommonInformation} + <#if (orderHeader.orderId)??> + ${externalOrder!} [ order.pdf?orderId=${(orderHeader.orderId)!}" + target="_BLANK" class="lightbuttontext">PDF ] + + <#-- placing customer information -->
      - <#if shippingAddress?has_content> + <#if localOrderReadHelper?? && orderHeader?has_content> + <#assign displayParty = localOrderReadHelper.getPlacingParty()!/> + <#if displayParty?has_content> + <#assign displayPartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("partyId", displayParty.partyId, "compareDate", orderHeader.orderDate, "userLogin", userLogin))/> + +
    • + ${uiLabelMap.PartyName} + ${(displayPartyNameResult.fullName)?default("[Name Not Found]")} +
    • + + <#-- order status information --> +
    • + ${uiLabelMap.CommonStatus} + <#if orderHeader?has_content> + ${localOrderReadHelper.getStatusString(locale)} + <#else> + ${uiLabelMap.OrderNotYetOrdered} + +
    • + <#-- ordered date --> + <#if orderHeader?has_content> +
    • + ${uiLabelMap.CommonDate} + ${orderHeader.orderDate.toString()} +
    • + + <#if distributorId??> +
    • + ${uiLabelMap.OrderDistributor} + ${distributorId} +
    • + +
    +
    + +
    + <#if paymentMethods?has_content || paymentMethodType?has_content || billingAccount?has_content> + <#-- order payment info --> +

    ${uiLabelMap.AccountingPaymentInformation}

    + <#-- offline payment address infomation :: change this to use Company's address --> +
      + <#if !paymentMethod?has_content && paymentMethodType?has_content> +
    • + <#if paymentMethodType.paymentMethodTypeId == "EXT_OFFLINE"> + ${uiLabelMap.AccountingOfflinePayment} + <#if orderHeader?has_content && paymentAddress?has_content> + ${uiLabelMap.OrderSendPaymentTo}: + <#if paymentAddress.toName?has_content>${paymentAddress.toName} + <#if paymentAddress.attnName?has_content> + ${uiLabelMap.PartyAddrAttnName} : ${paymentAddress.attnName} + + ${paymentAddress.address1} + <#if paymentAddress.address2?has_content>${paymentAddress.address2} + <#assign paymentStateGeo = (delegator.findOne("Geo", {"geoId", paymentAddress.stateProvinceGeoId!}, false))! /> + ${paymentAddress.city} + <#if paymentStateGeo?has_content>, ${paymentStateGeo.geoName!} + ${paymentAddress.postalCode!} + <#assign paymentCountryGeo = (delegator.findOne("Geo", {"geoId", paymentAddress.countryGeoId!}, false))! /> + <#if paymentCountryGeo?has_content>${paymentCountryGeo.geoName!} + ${uiLabelMap.EcommerceBeSureToIncludeYourOrderNb} + + <#else> + <#assign outputted = true> + ${uiLabelMap.AccountingPaymentVia} ${paymentMethodType.get("description",locale)} + +
    • + + <#if paymentMethods?has_content> + <#list paymentMethods as paymentMethod> + <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId> + <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)> + <#assign formattedCardNumber = Static["org.apache.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)> + <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId> + <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false)> + <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId> + <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)> + + <#-- credit card info --> + <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId && creditCard?has_content> + <#if outputted?default(false)> + <#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress", false)!> +
    • +
        +
      • ${uiLabelMap.AccountingCreditCard} + <#if creditCard.companyNameOnCard?has_content>${creditCard.companyNameOnCard} + <#if creditCard.titleOnCard?has_content>${creditCard.titleOnCard} + ${creditCard.firstNameOnCard} + <#if creditCard.middleNameOnCard?has_content>${creditCard.middleNameOnCard} + ${creditCard.lastNameOnCard} + <#if creditCard.suffixOnCard?has_content>${creditCard.suffixOnCard} +
      • +
      • ${formattedCardNumber}
      • +
      +
    • + <#-- Gift Card info --> + <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId && giftCard?has_content> + <#if outputted?default(false)> + <#if giftCard?has_content && giftCard.cardNumber?has_content> + <#assign pmBillingAddress = giftCard.getRelatedOne("PostalAddress", false)!> + <#assign giftCardNumber = ""> + <#assign pcardNumber = giftCard.cardNumber> + <#if pcardNumber?has_content> + <#assign psize = pcardNumber?length - 4> + <#if 0 < psize> + <#list 0 .. psize-1 as foo> + <#assign giftCardNumber = giftCardNumber + "*"> + + <#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3]> + <#else> + <#assign giftCardNumber = pcardNumber> + + + +
    • + ${uiLabelMap.AccountingGiftCard} + ${giftCardNumber} +
    • + <#-- EFT account info --> + <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId && eftAccount?has_content> + <#if outputted?default(false)> + <#assign pmBillingAddress = eftAccount.getRelatedOne("PostalAddress", false)!> +
    • +
        +
      • + ${uiLabelMap.AccountingEFTAccount} + ${eftAccount.nameOnAccount!} +
      • +
      • + <#if eftAccount.companyNameOnAccount?has_content>${eftAccount.companyNameOnAccount} +
      • +
      • + ${uiLabelMap.AccountingBank}: ${eftAccount.bankName}, ${eftAccount.routingNumber} +
      • +
      • + ${uiLabelMap.AccountingAccount} #: ${eftAccount.accountNumber} +
      • +
      +
    • + + <#if pmBillingAddress?has_content> +
    • +
        +
      • + <#if pmBillingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${pmBillingAddress.toName} +
      • +
      • + <#if pmBillingAddress.attnName?has_content> + ${uiLabelMap.CommonAttn} : ${pmBillingAddress.attnName} + +
      • +
      • + ${pmBillingAddress.address1} +
      • +
      • + <#if pmBillingAddress.address2?has_content>${pmBillingAddress.address2} +
      • +
      • + <#assign pmBillingStateGeo = (delegator.findOne("Geo", {"geoId", pmBillingAddress.stateProvinceGeoId!}, false))! /> + ${pmBillingAddress.city} + <#if pmBillingStateGeo?has_content> , ${ pmBillingStateGeo.geoName!} + ${pmBillingAddress.postalCode!} + <#assign pmBillingCountryGeo = (delegator.findOne("Geo", {"geoId", pmBillingAddress.countryGeoId!}, false))! /> + <#if pmBillingCountryGeo?has_content>${pmBillingCountryGeo.geoName!} +
      • +
      +
    • + + <#assign outputted = true> + + + <#-- billing account info --> + <#if billingAccount?has_content> + <#if outputted?default(false)> + <#assign outputted = true> +
    • + ${uiLabelMap.AccountingBillingAccount} + #${billingAccount.billingAccountId!} - ${billingAccount.description!} +
    • + + <#if (customerPoNumberSet?has_content)> +
    • + ${uiLabelMap.OrderPurchaseOrderNumber} + <#list customerPoNumberSet as customerPoNumber> + ${customerPoNumber!} + +
    • + +
    + +
    +
    + <#-- right side --> +
    + <#if orderItemShipGroups?has_content> +

    ${uiLabelMap.OrderShippingInformation}

    + <#-- shipping address --> + <#assign groupIdx = 0> + <#list orderItemShipGroups as shipGroup> + <#if orderHeader?has_content> + <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress", false)!> + <#assign groupNumber = shipGroup.shipGroupSeqId!> + <#else> + <#assign shippingAddress = cart.getShippingAddress(groupIdx)!> + <#assign groupNumber = groupIdx + 1> + +
      + <#if shippingAddress?has_content> +
    • +
        +
      • + ${uiLabelMap.OrderDestination} [${groupNumber}] + <#if shippingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${shippingAddress.toName} +
      • +
      • + <#if shippingAddress.attnName?has_content> + ${uiLabelMap.PartyAddrAttnName} : ${shippingAddress.attnName} + +
      • +
      • + ${shippingAddress.address1} +
      • +
      • + <#if shippingAddress.address2?has_content>${shippingAddress.address2} +
      • +
      • + <#assign shippingStateGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.stateProvinceGeoId!}, false))! /> + ${shippingAddress.city} + <#if shippingStateGeo?has_content>, ${shippingStateGeo.geoName!} + ${shippingAddress.postalCode!} +
      • +
      • + <#assign shippingCountryGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.countryGeoId!}, false))! /> + <#if shippingCountryGeo?has_content>${shippingCountryGeo.geoName!} +
      • +
      +
    • +
      • - ${uiLabelMap.OrderDestination} [${groupNumber}] - <#if shippingAddress.toName?has_content>${uiLabelMap.CommonTo}: ${shippingAddress.toName} + ${uiLabelMap.OrderMethod}: + <#if orderHeader?has_content> + <#assign shipmentMethodType = shipGroup.getRelatedOne("ShipmentMethodType", false)!> + <#assign carrierPartyId = shipGroup.carrierPartyId!> + <#else> + <#assign shipmentMethodType = cart.getShipmentMethodType(groupIdx)!> + <#assign carrierPartyId = cart.getCarrierPartyId(groupIdx)!> + + <#if carrierPartyId?? && carrierPartyId != "_NA_">${carrierPartyId!} + ${(shipmentMethodType.description)?default("N/A")}
      • - <#if shippingAddress.attnName?has_content>${uiLabelMap.PartyAddrAttnName}: ${shippingAddress.attnName} -
      • -
      • - ${shippingAddress.address1} -
      • -
      • - <#if shippingAddress.address2?has_content>${shippingAddress.address2} -
      • -
      • - <#assign shippingStateGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.stateProvinceGeoId!}, false))! /> - ${shippingAddress.city}<#if shippingStateGeo?has_content>, ${shippingStateGeo.geoName!} ${shippingAddress.postalCode!} -
      • -
      • - <#assign shippingCountryGeo = (delegator.findOne("Geo", {"geoId", shippingAddress.countryGeoId!}, false))! /> - <#if shippingCountryGeo?has_content>${shippingCountryGeo.geoName!} + <#if shippingAccount??>${uiLabelMap.AccountingUseAccount}: ${shippingAccount}
    • - -
    • -
        + <#-- tracking number --> + <#if trackingNumber?has_content || orderShipmentInfoSummaryList?has_content>
      • - ${uiLabelMap.OrderMethod}: - <#if orderHeader?has_content> - <#assign shipmentMethodType = shipGroup.getRelatedOne("ShipmentMethodType", false)!> - <#assign carrierPartyId = shipGroup.carrierPartyId!> - <#else> - <#assign shipmentMethodType = cart.getShipmentMethodType(groupIdx)!> - <#assign carrierPartyId = cart.getCarrierPartyId(groupIdx)!> + ${uiLabelMap.OrderTrackingNumber} + <#-- TODO: add links to UPS/FEDEX/etc based on carrier partyId --> + <#if shipGroup.trackingNumber?has_content> + ${shipGroup.trackingNumber} + + <#if orderShipmentInfoSummaryList?has_content> + <#list orderShipmentInfoSummaryList as orderShipmentInfoSummary> + <#if (orderShipmentInfoSummaryList?size > 1)>${orderShipmentInfoSummary.shipmentPackageSeqId}: + Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")} + <#if orderShipmentInfoSummary.boxNumber?has_content> + ${uiLabelMap.OrderBoxNumber}${orderShipmentInfoSummary.boxNumber} + + <#if orderShipmentInfoSummary.carrierPartyId?has_content> + (${uiLabelMap.ProductCarrier}: ${orderShipmentInfoSummary.carrierPartyId}) + + - <#if carrierPartyId?? && carrierPartyId != "_NA_">${carrierPartyId!} - ${(shipmentMethodType.description)?default("N/A")}
      • -
      • - <#if shippingAccount??>${uiLabelMap.AccountingUseAccount}: ${shippingAccount} -
      • -
      -
    • - <#-- tracking number --> - <#if trackingNumber?has_content || orderShipmentInfoSummaryList?has_content> -
    • - ${uiLabelMap.OrderTrackingNumber} - <#-- TODO: add links to UPS/FEDEX/etc based on carrier partyId --> - <#if shipGroup.trackingNumber?has_content> - ${shipGroup.trackingNumber} - - <#if orderShipmentInfoSummaryList?has_content> - <#list orderShipmentInfoSummaryList as orderShipmentInfoSummary> - <#if (orderShipmentInfoSummaryList?size > 1)>${orderShipmentInfoSummary.shipmentPackageSeqId}: - Code: ${orderShipmentInfoSummary.trackingCode?default("[Not Yet Known]")} - <#if orderShipmentInfoSummary.boxNumber?has_content>${uiLabelMap.OrderBoxNumber}${orderShipmentInfoSummary.boxNumber} - <#if orderShipmentInfoSummary.carrierPartyId?has_content>(${uiLabelMap.ProductCarrier}: ${orderShipmentInfoSummary.carrierPartyId}) - - -
    • <#-- splitting preference --> <#if orderHeader?has_content> @@ -328,8 +344,7 @@ under the License. <#if shippingInstructions?has_content>
    • - ${uiLabelMap.OrderInstructions} - ${shippingInstructions} + ${uiLabelMap.OrderInstructions} ${shippingInstructions}
    • <#-- gift settings --> @@ -341,25 +356,23 @@ under the License. <#assign giftMessage = cart.getGiftMessage(groupIdx)!> <#if productStore.showCheckoutGiftOptions! != "N"> -
    • - ${uiLabelMap.OrderGift}? - <#if isGift?default("N") == "N">${uiLabelMap.OrderThisIsNotGift}. - <#if isGift?default("N") == "Y">${uiLabelMap.OrderThisIsGift}. -
    • - <#if giftMessage?has_content>
    • - ${uiLabelMap.OrderGiftMessage} - ${giftMessage} + ${uiLabelMap.OrderGift}? + <#if isGift?default("N") == "N">${uiLabelMap.OrderThisIsNotGift}. + <#if isGift?default("N") == "Y">${uiLabelMap.OrderThisIsGift}.
    • + <#if giftMessage?has_content> +
    • + ${uiLabelMap.OrderGiftMessage} ${giftMessage} +
    • + - - <#if shipGroup_has_next> - -
    - <#assign groupIdx = groupIdx + 1> - <#-- end list of orderItemShipGroups --> - -
    + <#if shipGroup_has_next> + + <#assign groupIdx = groupIdx + 1> + <#-- end list of orderItemShipGroups --> + + -
    +
    diff --git a/ecommerce/template/order/OrderHistory.ftl b/ecommerce/template/order/OrderHistory.ftl index e01ccce18..fd89d3fe9 100644 --- a/ecommerce/template/order/OrderHistory.ftl +++ b/ecommerce/template/order/OrderHistory.ftl @@ -46,13 +46,19 @@ under the License. <#if distinctInvoiceIds?has_content> <#list distinctInvoiceIds as invoiceId> - (${invoiceId} PDF) + + (${invoiceId} PDF) + <#else> - ${uiLabelMap.CommonView} + + + ${uiLabelMap.CommonView} + + <#else> @@ -82,7 +88,12 @@ under the License. ${porderHeader.orderId} <@ofbizCurrency amount=porderHeader.grandTotal isoCode=porderHeader.currencyUom /> ${pstatus.get("description",locale)} - ${uiLabelMap.CommonView} + + + ${uiLabelMap.CommonView} + + <#else> diff --git a/ecommerce/template/order/OrderItems.ftl b/ecommerce/template/order/OrderItems.ftl index 4bff3c73c..b0bc8769e 100644 --- a/ecommerce/template/order/OrderItems.ftl +++ b/ecommerce/template/order/OrderItems.ftl @@ -22,280 +22,319 @@ under the License. <#if baseEcommerceSecureUrl??><#assign urlPrefix = baseEcommerceSecureUrl/>

    - <#assign numColumns = 8> - <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> - <#assign numColumns = 11> - ${uiLabelMap.OrderAddAllToCart}${uiLabelMap.OrderAddCheckedToCart}createShoppingListFromOrder?orderId=${orderHeader.orderId}&frequency=6&intervalNumber=1&shoppingListTypeId=SLT_AUTO_REODR" class="submenutextright">${uiLabelMap.OrderSendMeThisEveryMonth} - - ${uiLabelMap.OrderOrderItems} + <#assign numColumns = 8> + <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> + <#assign numColumns = 11> + ${uiLabelMap.OrderAddAllToCart} + ${uiLabelMap.OrderAddCheckedToCart} + createShoppingListFromOrder?orderId=${orderHeader.orderId}&frequency=6&intervalNumber=1&shoppingListTypeId=SLT_AUTO_REODR" + class="submenutextright">${uiLabelMap.OrderSendMeThisEveryMonth} + + ${uiLabelMap.OrderOrderItems}

    - - - <#if maySelectItems?default("N") == "Y"> - - - - - <#else> - - - - - - - - - <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> - - - + + + <#if maySelectItems?default("N") == "Y"> + + + + + <#else> + + + + + + + + + <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> + + + - - - - <#if maySelectItems?default("N") == "Y"> - - <#list headerAdjustmentsToShow as orderHeaderAdjustment> - - - <#if maySelectItems?default("N") == "Y"> - - - - - - <#if maySelectItems?default("N") == "Y"> - - - - - <#if maySelectItems?default("N") == "Y"> - - - - <#if maySelectItems?default("N") == "Y"> - - - <#else> - - - - - - - <#if maySelectItems?default("N") == "Y"> - - - - <#list orderItems as orderItem> - <#-- get info from workeffort and calculate rental quantity, if it was a rental item --> - <#assign rentalQuantity = 1> <#-- no change if no rental item --> - <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM" && workEfforts??> - <#list workEfforts as workEffort> - <#if workEffort.workEffortId == orderItem.orderItemSeqId> - <#assign rentalQuantity = localOrderReadHelper.getWorkEffortRentalQuantity(workEffort)> - <#assign workEffortSave = workEffort> - <#break> - - - <#else> - <#assign WorkOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment", null, null, false)!> - <#if WorkOrderItemFulfillments?has_content> - <#list WorkOrderItemFulfillments as WorkOrderItemFulfillment> - <#assign workEffortSave = WorkOrderItemFulfillment.getRelatedOne("WorkEffort", true)!> - <#break> - + + + <#if maySelectItems?default("N") == "Y"> + - - - - <#if !orderItem.productId?? || orderItem.productId == "_?_"> - - <#else> - <#assign product = orderItem.getRelatedOne("Product", true)!/> <#-- should always exist because of FK constraint, but just in case --> - - <#if !(maySelectItems?default("N") == "Y")> - - - - - + + <#list headerAdjustmentsToShow as orderHeaderAdjustment> + + + <#if maySelectItems?default("N") == "Y"> - - - + - - - - <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> - - - - - - - <#-- now cancel reason and comment field --> - <#if maySelectItems?default("N") == "Y" && (orderHeader.statusId != "ORDER_SENT" && orderItem.statusId != "ITEM_COMPLETED" && orderItem.statusId != "ITEM_CANCELLED" && pickedQty == 0)> - - - - - - <#-- show info from workeffort if it was a rental item --> - <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM"> - <#if workEffortSave??> - - - - <#-- now show adjustment details per line item --> - <#assign itemAdjustments = localOrderReadHelper.getOrderItemAdjustments(orderItem)> - <#list itemAdjustments as orderItemAdjustment> - - - - - - <#if maySelectItems?default("N") == "Y"> - <#-- show the order item ship group info --> - <#assign orderItemShipGroupAssocs = orderItem.getRelated("OrderItemShipGroupAssoc", null, null, false)!> - <#if orderItemShipGroupAssocs?has_content> - <#list orderItemShipGroupAssocs as shipGroupAssoc> - <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup", false)!> - <#assign shipGroupAddress = (shipGroup.getRelatedOne("PostalAddress", false))!> + + + + <#if maySelectItems?default("N") == "Y"> + + + + + + + <#if maySelectItems?default("N") == "Y"> + + + + + + <#if maySelectItems?default("N") == "Y"> + + + <#else> + + + + + + + <#if maySelectItems?default("N") == "Y"> + + + + + + <#list orderItems as orderItem> + <#-- get info from workeffort and calculate rental quantity, if it was a rental item --> + <#assign rentalQuantity = 1> <#-- no change if no rental item --> + <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM" && workEfforts??> + <#list workEfforts as workEffort> + <#if workEffort.workEffortId == orderItem.orderItemSeqId> + <#assign rentalQuantity = localOrderReadHelper.getWorkEffortRentalQuantity(workEffort)> + <#assign workEffortSave = workEffort> + <#break> + + + <#else> + <#assign WorkOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment", null, null, false)!> + <#if WorkOrderItemFulfillments?has_content> + <#list WorkOrderItemFulfillments as WorkOrderItemFulfillment> + <#assign workEffortSave = WorkOrderItemFulfillment.getRelatedOne("WorkEffort", true)!> + <#break> + + + + + + + + <#if !orderItem.productId?? || orderItem.productId == "_?_"> + + <#else> + <#assign product = orderItem.getRelatedOne("Product", true)!/> <#-- should always exist because of FK constraint, but just in case --> + + <#if !(maySelectItems?default("N") == "Y")> + + + + + + <#if maySelectItems?default("N") == "Y"> + + + + + + + + <#if maySelectItems?default("N") == "Y" && roleTypeId! == "PLACING_CUSTOMER"> + + + + + + + <#-- now cancel reason and comment field --> + <#if maySelectItems?default("N") == "Y" && (orderHeader.statusId != "ORDER_SENT" && orderItem.statusId != "ITEM_COMPLETED" && orderItem.statusId != "ITEM_CANCELLED" && pickedQty == 0)> + + + + + + <#-- show info from workeffort if it was a rental item --> + <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM"> + <#if workEffortSave??> + + + + + + + <#-- now show adjustment details per line item --> + <#assign itemAdjustments = localOrderReadHelper.getOrderItemAdjustments(orderItem)> + <#list itemAdjustments as orderItemAdjustment> + - + + <#if maySelectItems?default("N") == "Y"> + + + <#-- show the order item ship group info --> + <#assign orderItemShipGroupAssocs = orderItem.getRelated("OrderItemShipGroupAssoc", null, null, false)!> + <#if orderItemShipGroupAssocs?has_content> + <#list orderItemShipGroupAssocs as shipGroupAssoc> + <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup", false)!> + <#assign shipGroupAddress = (shipGroup.getRelatedOne("PostalAddress", false))!> + + + + + + + + + <#if orderItems?size == 0 || !orderItems?has_content> + + + - - <#if orderItems?size == 0 || !orderItems?has_content> - - - + + +
    ${uiLabelMap.OrderProduct}${uiLabelMap.OrderQtyOrdered}${uiLabelMap.OrderQtyPicked}${uiLabelMap.OrderQtyShipped}${uiLabelMap.OrderQtyCanceled}${uiLabelMap.OrderQtyOrdered}${uiLabelMap.EcommerceUnitPrice}${uiLabelMap.OrderAdjustments}${uiLabelMap.CommonSubtotal}
    ${uiLabelMap.OrderProduct}${uiLabelMap.OrderQtyOrdered}${uiLabelMap.OrderQtyPicked}${uiLabelMap.OrderQtyShipped}${uiLabelMap.OrderQtyCanceled}${uiLabelMap.OrderQtyOrdered}${uiLabelMap.EcommerceUnitPrice}${uiLabelMap.OrderAdjustments}${uiLabelMap.CommonSubtotal}
    ${uiLabelMap.CommonSubtotal}<@ofbizCurrency amount=orderSubTotal isoCode=currencyUomId/>
    ${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}<@ofbizCurrency amount=localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment) isoCode=currencyUomId/>
    ${uiLabelMap.OrderShippingAndHandling}<@ofbizCurrency amount=orderShippingTotal isoCode=currencyUomId/>
    ${uiLabelMap.OrderSalesTax}<@ofbizCurrency amount=orderTaxTotal isoCode=currencyUomId/>
    ${uiLabelMap.OrderGrandTotal} - <@ofbizCurrency amount=orderGrandTotal isoCode=currencyUomId/> -
    ${uiLabelMap.CommonSubtotal}<@ofbizCurrency amount=orderSubTotal isoCode=currencyUomId/>
    - ${orderItem.itemDescription?default("")} - - " class="linktext">${orderItem.productId} - ${orderItem.itemDescription?default("")} - <#assign orderItemAttributes = orderItem.getRelated("OrderItemAttribute", null, null, false)/> - <#if orderItemAttributes?has_content> -
      - <#list orderItemAttributes as orderItemAttribute> -
    • - ${orderItemAttribute.attrName} : ${orderItemAttribute.attrValue} -
    • - -
    - - <#if product?has_content> - <#if product.piecesIncluded?? && product.piecesIncluded?long != 0> - [${uiLabelMap.OrderPieces}: ${product.piecesIncluded}] - - <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content> - <#assign quantityUom = product.getRelatedOne("QuantityUom", true)!/> - [${uiLabelMap.CommonQuantity}: ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!}] - - <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content> - <#assign weightUom = product.getRelatedOne("WeightUom", true)!/> - [${uiLabelMap.CommonWeight}: ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!}] - - <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content> - <#assign heightUom = product.getRelatedOne("HeightUom", true)!/> - [${uiLabelMap.CommonHeight}: ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!}] - - <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content> - <#assign widthUom = product.getRelatedOne("WidthUom", true)!/> - [${uiLabelMap.CommonWidth}: ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!}] - - <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content> - <#assign depthUom = product.getRelatedOne("DepthUom", true)!/> - [${uiLabelMap.CommonDepth}: ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!}] - - - <#if maySelectItems?default("N") == "Y"> - <#assign returns = orderItem.getRelated("ReturnItem", null, null, false)!> - <#if returns?has_content> - <#list returns as return> - <#assign returnHeader = return.getRelatedOne("ReturnHeader", false)> - <#if returnHeader.statusId != "RETURN_CANCELLED"> - <#if returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "RETURN_APPROVED"> - <#assign displayState = "Return Pending"> - <#else> - <#assign displayState = "Returned"> - - ${displayState} (#${return.returnId}) - - - - -
    - ${orderItem.quantity?string.number} -
    ${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}<@ofbizCurrency amount=localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment) isoCode=currencyUomId/> - <#assign pickedQty = localOrderReadHelper.getItemPickedQuantityBd(orderItem)> - <#if pickedQty gt 0 && orderHeader.statusId == "ORDER_APPROVED">${pickedQty?default(0)?string.number}<#else>${pickedQty?default(0)?string.number} - - <#assign shippedQty = localOrderReadHelper.getItemShippedQuantity(orderItem)> - ${shippedQty?default(0)?string.number} - - <#assign canceledQty = localOrderReadHelper.getItemCanceledQuantity(orderItem)> - ${canceledQty?default(0)?string.number} - - <@ofbizCurrency amount=orderItem.unitPrice isoCode=currencyUomId/> - - <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentsTotal(orderItem) isoCode=currencyUomId/> - - <#if workEfforts??> - <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem)*rentalQuantity isoCode=currencyUomId/> - <#else> - <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem) isoCode=currencyUomId/> - - - -
    ${uiLabelMap.OrderReturnReason} - - ${uiLabelMap.CommonComments} - - ${uiLabelMap.CommonCancel} - -
    ${uiLabelMap.CommonFrom}: ${workEffortSave.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonUntil} ${workEffortSave.estimatedCompletionDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonFor} ${workEffortSave.reservPersons} ${uiLabelMap.CommonPerson}(s)
    - ${uiLabelMap.EcommerceAdjustment}: ${StringUtil.wrapString(localOrderReadHelper.getAdjustmentType(orderItemAdjustment))} - <#if orderItemAdjustment.description?has_content>: ${StringUtil.wrapString(orderItemAdjustment.description)} - <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX"> - <#if orderItemAdjustment.primaryGeoId?has_content> - <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/> - <#if primaryGeo.geoName?has_content> - ${uiLabelMap.OrderJurisdiction}: ${primaryGeo.geoName} [${primaryGeo.abbreviation!}] - - <#if orderItemAdjustment.secondaryGeoId?has_content> - <#assign secondaryGeo = orderItemAdjustment.getRelatedOne("SecondaryGeo", true)/> - (${uiLabelMap.CommonIn}: ${secondaryGeo.geoName} [${secondaryGeo.abbreviation!}]) - - - <#if orderItemAdjustment.sourcePercentage??>${uiLabelMap.EcommerceRate}: ${orderItemAdjustment.sourcePercentage} - <#if orderItemAdjustment.customerReferenceId?has_content>${uiLabelMap.OrderCustomerTaxId}: ${orderItemAdjustment.customerReferenceId} - <#if orderItemAdjustment.exemptAmount??>${uiLabelMap.EcommerceExemptAmount}: ${orderItemAdjustment.exemptAmount} - - - <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentTotal(orderItem, orderItemAdjustment) isoCode=currencyUomId/> -
    ${uiLabelMap.OrderShippingAndHandling}<@ofbizCurrency amount=orderShippingTotal isoCode=currencyUomId/>
    ${uiLabelMap.OrderSalesTax}<@ofbizCurrency amount=orderTaxTotal isoCode=currencyUomId/>
    ${uiLabelMap.OrderGrandTotal} + <@ofbizCurrency amount=orderGrandTotal isoCode=currencyUomId/> +
    ${orderItem.itemDescription?default("")} + " + class="linktext">${orderItem.productId} - ${orderItem.itemDescription?default("")} + <#assign orderItemAttributes = orderItem.getRelated("OrderItemAttribute", null, null, false)/> + <#if orderItemAttributes?has_content> +
      + <#list orderItemAttributes as orderItemAttribute> +
    • ${orderItemAttribute.attrName} : ${orderItemAttribute.attrValue}
    • + +
    + + <#if product?has_content> + <#if product.piecesIncluded?? && product.piecesIncluded?long != 0> + [${uiLabelMap.OrderPieces}: ${product.piecesIncluded}] + + <#if (product.quantityIncluded?? && product.quantityIncluded != 0) || product.quantityUomId?has_content> + <#assign quantityUom = product.getRelatedOne("QuantityUom", true)!/> + [${uiLabelMap.CommonQuantity} + : ${product.quantityIncluded!} ${((quantityUom.abbreviation)?default(product.quantityUomId))!}] + + <#if (product.productWeight?? && product.productWeight != 0) || product.weightUomId?has_content> + <#assign weightUom = product.getRelatedOne("WeightUom", true)!/> + [${uiLabelMap.CommonWeight} + : ${product.productWeight!} ${((weightUom.abbreviation)?default(product.weightUomId))!}] + + <#if (product.productHeight?? && product.productHeight != 0) || product.heightUomId?has_content> + <#assign heightUom = product.getRelatedOne("HeightUom", true)!/> + [${uiLabelMap.CommonHeight} + : ${product.productHeight!} ${((heightUom.abbreviation)?default(product.heightUomId))!}] + + <#if (product.productWidth?? && product.productWidth != 0) || product.widthUomId?has_content> + <#assign widthUom = product.getRelatedOne("WidthUom", true)!/> + [${uiLabelMap.CommonWidth} + : ${product.productWidth!} ${((widthUom.abbreviation)?default(product.widthUomId))!}] + + <#if (product.productDepth?? && product.productDepth != 0) || product.depthUomId?has_content> + <#assign depthUom = product.getRelatedOne("DepthUom", true)!/> + [${uiLabelMap.CommonDepth} + : ${product.productDepth!} ${((depthUom.abbreviation)?default(product.depthUomId))!}] + + + <#if maySelectItems?default("N") == "Y"> + <#assign returns = orderItem.getRelated("ReturnItem", null, null, false)!> + <#if returns?has_content> + <#list returns as return> + <#assign returnHeader = return.getRelatedOne("ReturnHeader", false)> + <#if returnHeader.statusId != "RETURN_CANCELLED"> + <#if returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "RETURN_APPROVED"> + <#assign displayState = "Return Pending"> + <#else> + <#assign displayState = "Returned"> + + ${displayState} (#${return.returnId}) + + + + +
    + ${orderItem.quantity?string.number} + + <#assign pickedQty = localOrderReadHelper.getItemPickedQuantityBd(orderItem)> + <#if pickedQty gt 0 && orderHeader.statusId == "ORDER_APPROVED">${pickedQty?default(0)?string.number}<#else>${pickedQty?default(0)?string.number} + + <#assign shippedQty = localOrderReadHelper.getItemShippedQuantity(orderItem)> + ${shippedQty?default(0)?string.number} + + <#assign canceledQty = localOrderReadHelper.getItemCanceledQuantity(orderItem)> + ${canceledQty?default(0)?string.number} + + <@ofbizCurrency amount=orderItem.unitPrice isoCode=currencyUomId/> + + <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentsTotal(orderItem) isoCode=currencyUomId/> + + <#if workEfforts??> + <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem)*rentalQuantity isoCode=currencyUomId/> + <#else> + <@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem) isoCode=currencyUomId/> + + + +
    ${uiLabelMap.OrderReturnReason} + + ${uiLabelMap.CommonComments} + + ${uiLabelMap.CommonCancel} + +
    ${uiLabelMap.CommonFrom} + : ${workEffortSave.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonUntil} + ${workEffortSave.estimatedCompletionDate?string("yyyy-MM-dd")} + ${uiLabelMap.CommonFor} ${workEffortSave.reservPersons} ${uiLabelMap.CommonPerson}(s) +
    - ${uiLabelMap.OrderShipGroup}: [${shipGroup.shipGroupSeqId}] ${shipGroupAddress.address1?default("N/A")} + ${uiLabelMap.EcommerceAdjustment} + : ${StringUtil.wrapString(localOrderReadHelper.getAdjustmentType(orderItemAdjustment))} + <#if orderItemAdjustment.description?has_content> + : ${StringUtil.wrapString(orderItemAdjustment.description)} + <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX"> + <#if orderItemAdjustment.primaryGeoId?has_content> + <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/> + <#if primaryGeo.geoName?has_content> + ${uiLabelMap.OrderJurisdiction}: ${primaryGeo.geoName} [${primaryGeo.abbreviation!}] + + <#if orderItemAdjustment.secondaryGeoId?has_content> + <#assign secondaryGeo = orderItemAdjustment.getRelatedOne("SecondaryGeo", true)/> + (${uiLabelMap.CommonIn}: ${secondaryGeo.geoName} [${secondaryGeo.abbreviation!}]) + + + <#if orderItemAdjustment.sourcePercentage??>${uiLabelMap.EcommerceRate} + : ${orderItemAdjustment.sourcePercentage} + <#if orderItemAdjustment.customerReferenceId?has_content>${uiLabelMap.OrderCustomerTaxId} + : ${orderItemAdjustment.customerReferenceId} + <#if orderItemAdjustment.exemptAmount??>${uiLabelMap.EcommerceExemptAmount} + : ${orderItemAdjustment.exemptAmount} + - ${shipGroupAssoc.quantity?string.number} + <@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentTotal(orderItem, orderItemAdjustment) isoCode=currencyUomId/>
    + ${uiLabelMap.OrderShipGroup}: [${shipGroup.shipGroupSeqId}] ${shipGroupAddress.address1?default("N/A")} + + ${shipGroupAssoc.quantity?string.number} +
    ${uiLabelMap.OrderSalesOrderLookupFailed}
    ${uiLabelMap.OrderSalesOrderLookupFailed}
    diff --git a/ecommerce/template/order/OrderStatus.ftl b/ecommerce/template/order/OrderStatus.ftl index 9cdc3d89a..2a025766c 100644 --- a/ecommerce/template/order/OrderStatus.ftl +++ b/ecommerce/template/order/OrderStatus.ftl @@ -24,7 +24,6 @@ under the License.
    ${screens.render("component://ecommerce/widget/OrderScreens.xml#orderitems")} - <#else>

    ${uiLabelMap.OrderSpecifiedNotFound}.