From 5246ea7fa826a0b951a3ada2c742e49b64e4da59 Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Wed, 29 Nov 2006 23:05:25 +0000 Subject: [PATCH] Applied patch from Ashish Vijaywargiya also in Jira #OFBIZ-498; this is mostly cleanups of the checkout stuff, and adds the form submit feature too; reading over it everything looks fine and it was okay in a brief test, but it would be good for more people to test it now git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@480761 13f79535-47bb-0310-9956-ffa450edef68 --- .../ecommerce/customer/CustomerEvents.xml | 118 ------------------ .../actions/order/anonymousCheckoutLinks.bsh | 6 +- .../WEB-INF/actions/order/custsettings.bsh | 1 + .../WEB-INF/actions/order/optionsettings.bsh | 1 + .../actions/order/paymentinformation.bsh | 3 + .../WEB-INF/actions/order/paymentoptions.bsh | 1 + .../WEB-INF/actions/order/shipsettings.bsh | 5 +- .../order/anonymousCheckoutLinks.ftl | 18 +-- .../webapp/ecommerce/order/checkoutreview.ftl | 8 +- .../webapp/ecommerce/order/custsettings.ftl | 2 +- .../webapp/ecommerce/order/genericaddress.ftl | 3 +- .../webapp/ecommerce/order/optionsettings.ftl | 2 +- .../ecommerce/order/paymentinformation.ftl | 14 +-- .../webapp/ecommerce/order/paymentoptions.ftl | 2 +- .../webapp/ecommerce/order/shipsettings.ftl | 2 +- .../ecommerce/widget/OrderScreens.xml | 6 + 16 files changed, 45 insertions(+), 147 deletions(-) diff --git a/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml b/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml index 3c830822b0..c3ff2418d0 100644 --- a/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml +++ b/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml @@ -430,73 +430,6 @@ under the License. - - - - - - - - - - - - - - - - - - - - @@ -512,7 +445,6 @@ under the License. - @@ -850,56 +782,6 @@ under the License. - - - - - - +
- Personal Info + onclick="javascript:submitForm(document.${parameters.formNameValue?if_exists});">Personal Info <#if (enableShippingAddress)?exists> - Shipping Address + onclick="javascript:submitForm(document.${parameters.formNameValue?if_exists});">Shipping Address <#else> Shipping Address <#if (enableShipmentMethod)?exists> - Shipping Options + onclick="javascript:submitForm(document.${parameters.formNameValue?if_exists});">Shipping Options <#else> Shipping Options <#if (enablePaymentOptions)?exists> - Payment Options + onclick="javascript:submitForm(document.${parameters.formNameValue?if_exists});">Payment Options <#else> Payment Options <#if (enablePaymentInformation)?exists> - Payment Information + onclick="javascript:submitForm(document.${parameters.formNameValue?if_exists});">Payment Information <#else> Payment Information <#if (enableReviewOrder)?exists> - Review Order + onclick="javascript:submitForm(document.${parameters.formNameValue?if_exists});">Review Order <#else> Review Order diff --git a/applications/ecommerce/webapp/ecommerce/order/checkoutreview.ftl b/applications/ecommerce/webapp/ecommerce/order/checkoutreview.ftl index 51bd34ed35..49db509a57 100644 --- a/applications/ecommerce/webapp/ecommerce/order/checkoutreview.ftl +++ b/applications/ecommerce/webapp/ecommerce/order/checkoutreview.ftl @@ -22,9 +22,9 @@ under the License. if (clicked == 0) { clicked++; //window.location.replace("<@ofbizUrl>processorder"); - document.processForm.processButton.value="${uiLabelMap.OrderSubmittingOrder}"; - document.processForm.processButton.disabled=true; - document.processForm.submit(); + document.${parameters.formNameValue}.processButton.value="${uiLabelMap.OrderSubmittingOrder}"; + document.${parameters.formNameValue}.processButton.disabled=true; + document.${parameters.formNameValue}.submit(); } else { alert("You order is being processed, this may take a moment."); } @@ -45,7 +45,7 @@ under the License.   -
+ <#if (requestParameters.checkoutpage)?has_content> diff --git a/applications/ecommerce/webapp/ecommerce/order/custsettings.ftl b/applications/ecommerce/webapp/ecommerce/order/custsettings.ftl index 4388f1e1f6..32bc76ea66 100644 --- a/applications/ecommerce/webapp/ecommerce/order/custsettings.ftl +++ b/applications/ecommerce/webapp/ecommerce/order/custsettings.ftl @@ -19,7 +19,7 @@ under the License.
 ${uiLabelMap.PartyBasicInformation}
- + diff --git a/applications/ecommerce/webapp/ecommerce/order/genericaddress.ftl b/applications/ecommerce/webapp/ecommerce/order/genericaddress.ftl index db226e943c..16924e9db0 100644 --- a/applications/ecommerce/webapp/ecommerce/order/genericaddress.ftl +++ b/applications/ecommerce/webapp/ecommerce/order/genericaddress.ftl @@ -66,8 +66,7 @@ under the License.
<#list carrierShipmentMethodList as carrierShipmentMethod> diff --git a/applications/ecommerce/webapp/ecommerce/order/paymentinformation.ftl b/applications/ecommerce/webapp/ecommerce/order/paymentinformation.ftl index 92a4646c26..a5a0583008 100644 --- a/applications/ecommerce/webapp/ecommerce/order/paymentinformation.ftl +++ b/applications/ecommerce/webapp/ecommerce/order/paymentinformation.ftl @@ -39,28 +39,28 @@ function shipBillAddr() { <#-- after initial screen; show detailed screens for selected type --> <#if paymentMethodTypeId?if_exists == "CREDIT_CARD"> <#if creditCard?has_content && postalAddress?has_content && !requestParameters.useShipAddr?exists> - + <#elseif requestParameters.useShipAddr?exists> - + <#else> - + <#if paymentMethodTypeId?if_exists == "EFT_ACCOUNT"> <#if eftAccount?has_content && postalAddress?has_content> - + <#elseif requestParameters.useShipAddr?exists> - + <#else> - + <#if paymentMethodTypeId?if_exists == "GIFT_CARD"> <#--Don't know much how this is handled --> - + <#if requestParameters.singleUsePayment?default("N") == "Y"> diff --git a/applications/ecommerce/webapp/ecommerce/order/paymentoptions.ftl b/applications/ecommerce/webapp/ecommerce/order/paymentoptions.ftl index 239dfc748f..f1a5f1aa7d 100644 --- a/applications/ecommerce/webapp/ecommerce/order/paymentoptions.ftl +++ b/applications/ecommerce/webapp/ecommerce/order/paymentoptions.ftl @@ -22,7 +22,7 @@ under the License.
<#-- initial screen show a list of options --> - +
<#if productStorePaymentMethodTypeIdMap.GIFT_CARD?exists> diff --git a/applications/ecommerce/webapp/ecommerce/order/shipsettings.ftl b/applications/ecommerce/webapp/ecommerce/order/shipsettings.ftl index fa15c29aa6..cd31699def 100644 --- a/applications/ecommerce/webapp/ecommerce/order/shipsettings.ftl +++ b/applications/ecommerce/webapp/ecommerce/order/shipsettings.ftl @@ -19,7 +19,7 @@ under the License.
 ${uiLabelMap.OrderShippingInformation}
- + diff --git a/applications/ecommerce/widget/OrderScreens.xml b/applications/ecommerce/widget/OrderScreens.xml index 8cdf1e5b88..89f68fe12b 100644 --- a/applications/ecommerce/widget/OrderScreens.xml +++ b/applications/ecommerce/widget/OrderScreens.xml @@ -91,6 +91,7 @@ under the License. +