You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mo...@apache.org on 2008/07/16 07:19:58 UTC
svn commit: r677159 - in
/ofbiz/trunk/applications/ecommerce/webapp/ecommerce:
images/checkoutProcess.js order/OnePageCheckoutProcess.ftl
Author: mor
Date: Tue Jul 15 22:19:57 2008
New Revision: 677159
URL: http://svn.apache.org/viewvc?rev=677159&view=rev
Log:
Improvement in displaying summary of selected shipping method on One Page Checkout. Patch from Brajesh Patel
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=677159&r1=677158&r2=677159&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js Tue Jul 15 22:19:57 2008
@@ -322,7 +322,14 @@
}
function setDataInShippingOptionCompleted() {
- $('selectedShipmentOption').update($('shipMethod').value);
+ var shipMethodSelected = [];
+ var shipOptions = $A($('shipMethod').options);
+ shipOptions.each( function(shipOption) {
+ if (shipOption.selected) {
+ shipMethodSelected = shipOption.text.split('-');
+ }
+ });
+ $('selectedShipmentOption').update(shipMethodSelected[0]);
}
// Billing
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=677159&r1=677158&r2=677159&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl Tue Jul 15 22:19:57 2008
@@ -412,7 +412,7 @@
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
- <td valign="top">Shipment Option:</td>
+ <td valign="top">${uiLabelMap.CommonMethod}: </td>
<td valign="top">
<div id="selectedShipmentOption"></div>
</td>