From 1cb367e0c2cfeb2e15dee0ead00add44306e62cc Mon Sep 17 00:00:00 2001 From: Anil Patel Date: Thu, 25 Jun 2009 14:54:10 +0000 Subject: [PATCH] Html markup cleanup. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788372 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/ecommerce/cart/minipromotext.ftl | 6 +- .../webapp/ecommerce/cart/showcart.ftl | 269 ++++++++---------- 2 files changed, 129 insertions(+), 146 deletions(-) diff --git a/specialpurpose/ecommerce/webapp/ecommerce/cart/minipromotext.ftl b/specialpurpose/ecommerce/webapp/ecommerce/cart/minipromotext.ftl index 362e5646d8..3cd4f1cffd 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/cart/minipromotext.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/cart/minipromotext.ftl @@ -18,9 +18,9 @@ under the License. --> <#if showPromoText> -
+

${uiLabelMap.OrderSpecialOffers}

-
+
<#-- show promotions text -->
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/cart/showcart.ftl b/specialpurpose/ecommerce/webapp/ecommerce/cart/showcart.ftl index d61908b5b7..be45ee2ed4 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/cart/showcart.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/cart/showcart.ftl @@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - - <#assign fixedAssetExist = shoppingCart.containAnyWorkEffortCartItems()/> <#-- change display format when rental items exist in the shoppingcart --> - -
-
- -
 ${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?exists && product.getString("productTypeId") == "ASSET_USAGE"> @@ -124,19 +122,20 @@ function setAlternateGwp(field) { ${uiLabelMap.CommonQuantity}: - <#-- [${uiLabelMap.OrderAddToCart}] --> + <#-- [${uiLabelMap.OrderAddToCart}] --> +
- -
-
-