Author: mor
Date: Wed Jul 9 06:40:06 2008
New Revision: 675171
URL:
http://svn.apache.org/viewvc?rev=675171&view=revLog:
Added functionality to process order through One Page Checkout.
Created Order successfully on Firefox, IE7 - found no issues.
Patch from Rishi Solanki.
Couple of UI fixes are coming in short while ......
Modified:
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js
ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl
Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js?rev=675171&r1=675170&r2=675171&view=diff==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js Wed Jul 9 06:40:06 2008
@@ -96,6 +96,8 @@
// Initiate Observing Edit Cart Events
initCartProcessObservers();
+
+ Event.observe('processOrderButton', 'click', processOrder);
});
// Cart
@@ -182,6 +184,8 @@
Effect.Appear('shippingSummaryPanel', {duration: 0.5});
Effect.Appear('shippingOptionSummaryPanel', {duration: 0.5});
Effect.Appear('billingSummaryPanel', {duration: 0.5});
+ Effect.Fade('processingOrderButton', {duration: 0.5});
+ Effect.Appear('processOrderButton', {duration: 0.5});
}
setDataInBillingCompleted();
}
@@ -411,4 +415,11 @@
},
parameters: formValues
});
+}
+
+function processOrder() {
+ $('processOrderButton').disabled = true ;
+ Effect.Fade('processOrderButton', {duration: 0.1});
+ Effect.Appear('processingOrderButton', {duration: 0.1});
+ $('orderSubmitForm').submit();
}
\ No newline at end of file
Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl?rev=675171&r1=675170&r2=675171&view=diff==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl Wed Jul 9 06:40:06 2008
@@ -623,7 +623,10 @@
<div class="screenlet-header"><div class="boxhead" align="left">Step 5: Submit Order</div></div>
<div id="orderSubmitPanel" style="display: none;">
<form name="orderSubmitForm" id="orderSubmitForm" action="<@ofbizUrl>onePageProcessOrder</@ofbizUrl>" method="post">
- <div align="right"><input type="button" name="processButton" value="${uiLabelMap.OrderSubmitOrder}" class="mediumSubmit"></div>
+ <div align="right">
+ <input type="button" id="processOrderButton" name="processOrderButton" value="${uiLabelMap.OrderSubmitOrder}" class="mediumSubmit">
+ <input type="button" id="processingOrderButton" name="processingOrderButton" value="${uiLabelMap.OrderSubmittingOrder}" class="mediumSubmit">
+ </div>
</form>
</div>
</div>