svn commit: r680664 - /ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r680664 - /ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl

mor-2
Author: mor
Date: Tue Jul 29 03:36:33 2008
New Revision: 680664

URL: http://svn.apache.org/viewvc?rev=680664&view=rev
Log:
All credit card types are now supported on One Page Checkout. Patch from Rishi Solanki

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl

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=680664&r1=680663&r2=680664&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl Tue Jul 29 03:36:33 2008
@@ -486,7 +486,6 @@
                 <input type="hidden" id="billingPartyId" name="partyId" value="${parameters.partyId?if_exists}"/>
                 <input type="hidden" name="userLogin" value="${parameters.userLogin?if_exists}"/>
                 <input type="hidden" name="expireDate" value="${parameters.expireDate?if_exists}"/>
-                <input type="hidden" id="cardType" name="cardType" value="Visa"/>
                 <div id="billingFormServerError" class="errorMessage"></div>
                   <table>
                     <tr><td valign="top">
@@ -508,6 +507,19 @@
                         </div>
                         <div class="form-row">
                           <div class="field-label">
+                            <label for="cardType">${uiLabelMap.AccountingCardType}<span>*</span><span id="advice-required-cardType" style="display: none;" class="errorMessage"> (required)</span></label>
+                          </div>
+                          <div class="field-widget">
+                            <select name="cardType" id="cardType">
+                              <#if parameters.cardType?has_content>
+                                <option label="${parameters.cardType?if_exists}" value="${parameters.cardType?if_exists}">${parameters.cardType?if_exists}</option>
+                              </#if>
+                              ${screens.render("component://common/widget/CommonScreens.xml#cctypes")}
+                            </select>
+                          </div>
+                        </div>
+                        <div class="form-row">
+                          <div class="field-label">
                             <label for="cardNumber">${uiLabelMap.AccountingCardNumber}<span>*</span><span id="advice-required-cardNumber" style="display: none;" class="errorMessage"> (required)</span></label>
                           </div>
                           <div class="field-widget">