diff --git a/ecommerce/template/cart/PromoUseDetailsInline.ftl b/ecommerce/template/cart/PromoUseDetailsInline.ftl index 9968f3fed..9181f6a0f 100644 --- a/ecommerce/template/cart/PromoUseDetailsInline.ftl +++ b/ecommerce/template/cart/PromoUseDetailsInline.ftl @@ -9,6 +9,86 @@ with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +

${uiLabelMap.OrderPromotionInformation}:

+
+
+

${uiLabelMap.OrderPromotionsApplied}:

+ +
+ +
+

${uiLabelMap.OrderCartItemUseinPromotions}:

+ +
+
+<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY diff --git a/ecommerce/template/cart/ShowCart.ftl b/ecommerce/template/cart/ShowCart.ftl index 022eb3bb7..a313f2fc2 100644 --- a/ecommerce/template/cart/ShowCart.ftl +++ b/ecommerce/template/cart/ShowCart.ftl @@ -222,10 +222,10 @@ under the License. <#else> ${uiLabelMap.CommonQuantity} - ${uiLabelMap.EcommerceUnitPrice} - ${uiLabelMap.EcommerceAdjustments} - ${uiLabelMap.EcommerceItemTotal} - + ${uiLabelMap.EcommerceUnitPrice} + ${uiLabelMap.EcommerceAdjustments} + ${uiLabelMap.EcommerceItemTotal} + @@ -458,9 +458,9 @@ under the License. - <@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency()/> - <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency()/> - <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/> + <@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency()/> + <@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency()/> + <@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/> <#if !cartLine.getIsPromo()> @@ -471,26 +471,23 @@ under the License. - - - - - - - + + + + <#if shoppingCart.getAdjustments()?has_content> - - + <#if (shoppingCart.getDisplayTaxIncluded() > 0.0)> - - + @@ -498,7 +495,7 @@ under the License. <#list shoppingCart.getAdjustments() as cartAdjustment> <#assign adjustmentType = cartAdjustment.getRelatedOne("OrderAdjustmentType", true) /> - - - - + <#if itemsFromList> - + <#if promoItems> - + <#if !itemsFromList && !promoItems> - + - - - -
- Summary: -
+ Summary: +
${uiLabelMap.CommonSubTotal}: + ${uiLabelMap.CommonSubTotal}: <@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/>
${uiLabelMap.OrderSalesTaxIncluded}: + ${uiLabelMap.OrderSalesTaxIncluded}: <@ofbizCurrency amount=shoppingCart.getDisplayTaxIncluded() isoCode=shoppingCart.getCurrency()/>
+ ${uiLabelMap.EcommerceAdjustment} - ${adjustmentType.get("description",locale)!} <#if cartAdjustment.productPromoId?has_content> @@ -506,7 +503,7 @@ under the License. : + <@ofbizCurrency amount=Static["org.apache.ofbiz.order.order.OrderReadHelper"] .calcOrderAdjustment(cartAdjustment, shoppingCart.getSubTotal()) isoCode=shoppingCart.getCurrency()/> @@ -515,28 +512,28 @@ under the License.
${uiLabelMap.EcommerceCartTotal}: + ${uiLabelMap.EcommerceCartTotal}: <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/>
L - ${uiLabelMap.EcommerceItemsfromShopingList}.L - ${uiLabelMap.EcommerceItemsfromShopingList}.
P - ${uiLabelMap.EcommercePromotionalItems}.P - ${uiLabelMap.EcommercePromotionalItems}.
  
+ <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
+ <#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">    @@ -579,7 +576,7 @@ under the License.
+
+ + <#else>

${uiLabelMap.EcommerceYourShoppingCartEmpty}.

diff --git a/ecommerce/webapp/ecommerce/css/custom.css b/ecommerce/webapp/ecommerce/css/custom.css index acfcbf614..7e43ee1b8 100644 --- a/ecommerce/webapp/ecommerce/css/custom.css +++ b/ecommerce/webapp/ecommerce/css/custom.css @@ -71,4 +71,8 @@ label.required:after { /*TODO: We will remove this when we eliminate ecommain.css.*/ .card .card-body dl.row > dd { margin-left: 0; +} + +.amount { + text-align:right; } \ No newline at end of file