📄 checkoutpayment.ftl
字号:
<td width="1%" nowrap> <input type="checkbox" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if cart.isPaymentSelected(paymentMethod.paymentMethodId)>checked</#if>> </td> <td width="1%" nowrap> <span class="tabletext">${uiLabelMap.AccountingGift}: ${giftCardNumber} <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> </span> <span class="tabletext" align="right"> <a href="javascript:submitForm(document.checkoutInfoForm, 'EG', '${paymentMethod.paymentMethodId}');" class="buttontext">${uiLabelMap.CommonUpdate}</a> </span> </td> <td> <span class="tabletext"> <b>${uiLabelMap.OrderBillUpTo}:</b> <input type="text" size="5" class="inputBox" name="amount_${paymentMethod.paymentMethodId}" value="<#if (cart.getPaymentAmount(paymentMethod.paymentMethodId)?default(0) > 0)>${cart.getPaymentAmount(paymentMethod.paymentMethodId)?double?string("##0.00")}</#if>"> </span> </td> </tr> </#if> <#elseif paymentMethod.paymentMethodTypeId == "CREDIT_CARD"> <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD?exists> <#assign creditCard = paymentMethod.getRelatedOne("CreditCard")> <tr> <td width="1%" nowrap> <input type="checkbox" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if cart.isPaymentSelected(paymentMethod.paymentMethodId)>checked</#if>> </td> <td width="1%" nowrap> <span class="tabletext">CC: ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)} <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> </span> <span class="tabletext" align="right"> <a href="javascript:submitForm(document.checkoutInfoForm, 'EC', '${paymentMethod.paymentMethodId}');" class="buttontext">${uiLabelMap.CommonUpdate}</a> </span> </td> <td> <span class="tabletext"> <b>${uiLabelMap.OrderBillUpTo}:</b> <input type="text" size="5" class="inputBox" name="amount_${paymentMethod.paymentMethodId}" value="<#if (cart.getPaymentAmount(paymentMethod.paymentMethodId)?default(0) > 0)>${cart.getPaymentAmount(paymentMethod.paymentMethodId)?double?string("##0.00")}</#if>"> </span> </td> </tr> </#if> <#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT"> <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT?exists> <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount")> <tr> <td width="1%" nowrap> <input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if paymentMethod.paymentMethodId == checkOutPaymentId>checked</#if>> </td> <td width="1%" nowrap> <span class="tabletext">EFT: ${eftAccount.bankName?if_exists}: ${eftAccount.accountNumber?if_exists} <#if paymentMethod.description?has_content>(${paymentMethod.description})</#if> </span> <a href="javascript:submitForm(document.checkoutInfoForm, 'EE', '${paymentMethod.paymentMethodId}');" class="buttontext">${uiLabelMap.CommonUpdate}</a> </td> <td> </td> </tr> <tr><td colspan="3"><hr class="sepbar"/></td></tr> </#if> </#if> </#list> </#if> <#-- special billing account functionality to allow use w/ a payment method --> <#if productStorePaymentMethodTypeIdMap.EXT_BILLACT?exists> <#if billingAccountList?has_content> <tr><td colspan="3"><hr class="sepbar"/></td></tr> <tr> <td width="1%" nowrap> <input type="radio" name="checkOutPaymentId" value="EXT_BILLACT" <#if "EXT_BILLACT" == checkOutPaymentId>checked</#if>></hr> </td> <td width="50%" nowrap> <span class="tabletext">${uiLabelMap.AccountingPayOnlyWithBillingAccount}</span> </td> <td> </td> </tr> <tr><td colspan="3"><hr class="sepbar"/></td></tr> <#list billingAccountList as billingAccount> <#assign availableAmount = billingAccount.accountLimit?double - billingAccount.accountBalance?double> <tr> <td align="left" valign="top" width="1%" nowrap> <input type="radio" onClick="javascript:toggleBillingAccount(this);" name="billingAccountId" value="${billingAccount.billingAccountId}" <#if (billingAccount.billingAccountId == selectedBillingAccountId?default(""))>checked</#if>> </td> <td align="left" valign="top" width="99%" nowrap> <div class="tabletext"> ${billingAccount.description?default("Bill Account")} [${uiLabelMap.OrderNbr}<b>${billingAccount.billingAccountId}</b>] (<@ofbizCurrency amount=availableAmount isoCode=billingAccount.accountCurrencyUomId?default(cart.getCurrency())/>)<br/> <b>${uiLabelMap.OrderBillUpTo}:</b> <input type="text" size="8" class="inputBox" name="amount_${billingAccount.billingAccountId}" value="${availableAmount?double?string("##0.00")}" <#if !(billingAccount.billingAccountId == selectedBillingAccountId?default(""))>disabled</#if>> </div> </td> <td> </td> </tr> </#list> <tr> <td align="left" valign="top" width="1%" nowrap> <input type="radio" onClick="javascript:toggleBillingAccount(this);" name="billingAccountId" value="_NA_" <#if (selectedBillingAccountId?default("") == "N")>checked</#if>> <input type="hidden" name="_NA_amount" value="0.00"> </td> <td align="left" valign="top" width="99%" nowrap> <div class="tabletext">${uiLabelMap.AccountingNoBillingAccount}</div> </td> <td> </td> </tr> </#if> </#if> <#-- end of special billing account functionality --> <#if productStorePaymentMethodTypeIdMap.GIFT_CARD?exists> <tr><td colspan="3"><hr class="sepbar"/></td></tr> <tr> <td width="1%" nowrap> <input type="checkbox" name="addGiftCard" value="Y"> <input type="hidden" name="singleUseGiftCard" value="Y"> </td> <td colspan="2"nowrap> <span class="tabletext">${uiLabelMap.AccountingUseGiftCardNotOnFile}</span> </td> </tr> <tr> <td> </td> <td width="1%" nowrap> <div class="tabletext">${uiLabelMap.AccountingNumber}</div> </td> <td width="50%" nowrap> <input type="text" size="15" class="inputBox" name="giftCardNumber" value="${(requestParameters.giftCardNumber)?if_exists}" onFocus="document.checkoutInfoForm.addGiftCard.checked=true;"> </td> </tr> <#if cart.isPinRequiredForGC(delegator)> <tr> <td> </td> <td width="1%" nowrap> <div class="tabletext">${uiLabelMap.AccountingPIN}</div> </td> <td width="50%" nowrap> <input type="text" size="10" class="inputBox" name="giftCardPin" value="${(requestParameters.giftCardPin)?if_exists}" onFocus="document.checkoutInfoForm.addGiftCard.checked=true;"> </td> </tr> </#if> <tr> <td> </td> <td width="1%" nowrap> <div class="tabletext">${uiLabelMap.AccountingAmount}</div> </td> <td width="50%" nowrap> <input type="text" size="6" class="inputBox" name="giftCardAmount" value="${(requestParameters.giftCardAmount)?if_exists}" onFocus="document.checkoutInfoForm.addGiftCard.checked=true;"> </td> </tr> </#if> <tr><td colspan="3"><hr class="sepbar"/></td></tr> <tr> <td colspan="3"> <div class='tabletext' valign='middle'> <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD?exists><a href="<@ofbizUrl>setBilling?paymentMethodType=CC&singleUsePayment=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.AccountingSingleUseCreditCard}</a> </#if> <#if productStorePaymentMethodTypeIdMap.GIFT_CARD?exists><a href="<@ofbizUrl>setBilling?paymentMethodType=GC&singleUsePayment=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.AccountingSingleUseGiftCard}</a> </#if> <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT?exists><a href="<@ofbizUrl>setBilling?paymentMethodType=EFT&singleUsePayment=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.AccountingSingleUseEFTAccount}</a> </#if> </div> </td> </tr> </table> <#-- End Payment Method Selection --> </div> </div></form><table width="100%"> <tr valign="top"> <td align="left"> <a href="javascript:submitForm(document.checkoutInfoForm, 'CS', '');" class="buttontextbig">${uiLabelMap.OrderBacktoShoppingCart}</a> </td> <td align="right"> <a href="javascript:submitForm(document.checkoutInfoForm, 'DN', '');" class="buttontextbig">${uiLabelMap.OrderContinueToFinalOrderReview}</a> </td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -