📄 checkoutoptions.ftl
字号:
<#if productStorePaymentMethodTypeIdMap.EXT_PAYPAL?exists> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="EXT_PAYPAL" <#if "EXT_PAYPAL" == checkOutPaymentId>checked="checked"</#if>/> </td> <td width="50%"> <span class="tabletext">${uiLabelMap.AccountingPayWithPayPal}</span> </td> </tr> </#if> <tr><td colspan="2"><hr class="sepbar"/></td></tr> <#if !paymentMethodList?has_content> <tr> <td colspan="2"> <div class="tabletext"><b>${uiLabelMap.AccountingNoPaymentMethodsOnFile}.</b></div> </td> </tr> <#else> <#list paymentMethodList as paymentMethod> <#if paymentMethod.paymentMethodTypeId == "CREDIT_CARD"> <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD?exists> <#assign creditCard = paymentMethod.getRelatedOne("CreditCard")> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if shoppingCart.isPaymentSelected(paymentMethod.paymentMethodId)>checked="checked"</#if>/> </td> <td width="50%"> <span class="tabletext">CC: ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}</span> <a href="javascript:submitForm(document.checkoutInfoForm, 'EC', '${paymentMethod.paymentMethodId}');" class="buttontext">${uiLabelMap.CommonUpdate}</a> <#if paymentMethod.description?has_content><br/><span class="tabletext">(${paymentMethod.description})</span></#if> </td> </tr> </#if> <#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT"> <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT?exists> <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount")> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if shoppingCart.isPaymentSelected(paymentMethod.paymentMethodId)>checked="checked"</#if>/> </td> <td width="50%"> <span class="tabletext">EFT: ${eftAccount.bankName?if_exists}: ${eftAccount.accountNumber?if_exists}</span> <a href="javascript:submitForm(document.checkoutInfoForm, 'EE', '${paymentMethod.paymentMethodId}');" class="buttontext">${uiLabelMap.CommonUpdate}</a> <#if paymentMethod.description?has_content><br/><span class="tabletext">(${paymentMethod.description})</span></#if> </td> </tr> </#if> <#elseif paymentMethod.paymentMethodTypeId == "GIFT_CARD"> <#if productStorePaymentMethodTypeIdMap.GIFT_CARD?exists> <#assign giftCard = paymentMethod.getRelatedOne("GiftCard")> <#if giftCard?has_content && giftCard.cardNumber?has_content> <#assign giftCardNumber = ""> <#assign pcardNumber = giftCard.cardNumber> <#if pcardNumber?has_content> <#assign psize = pcardNumber?length - 4> <#if 0 < psize> <#list 0 .. psize-1 as foo> <#assign giftCardNumber = giftCardNumber + "*"> </#list> <#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3]> <#else> <#assign giftCardNumber = pcardNumber> </#if> </#if> </#if> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="${paymentMethod.paymentMethodId}" <#if shoppingCart.isPaymentSelected(paymentMethod.paymentMethodId)>checked="checked"</#if>/> </td> <td width="50%"> <span class="tabletext">${uiLabelMap.AccountingGift}: ${giftCardNumber}</span> <a href="javascript:submitForm(document.checkoutInfoForm, 'EG', '${paymentMethod.paymentMethodId}');" class="buttontext">[${uiLabelMap.CommonUpdate}]</a> <#if paymentMethod.description?has_content><br/><span class="tabletext">(${paymentMethod.description})</span></#if> </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="2"><hr class="sepbar"/></td></tr> <tr> <td width="1%"> <input type="radio" name="checkOutPaymentId" value="EXT_BILLACT" <#if "EXT_BILLACT" == checkOutPaymentId>checked="checked"</#if>/></hr> </td> <td width="50%"> <span class="tabletext">${uiLabelMap.AccountingPayOnlyWithBillingAccount}</span> </td> </tr> <tr><td colspan="2"><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%"> <input type="radio" onClick="javascript:toggleBillingAccount(this);" name="billingAccountId" value="${billingAccount.billingAccountId}" <#if (billingAccount.billingAccountId == selectedBillingAccountId?default(""))>checked="checked"</#if>/> </td> <td align="left" valign="top" width="99%"> <div class="tabletext"> ${billingAccount.description?default("Bill Account")} [${uiLabelMap.OrderNbr}<b>${billingAccount.billingAccountId}</b>] (<@ofbizCurrency amount=availableAmount isoCode=billingAccount.accountCurrencyUomId?default(shoppingCart.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> </tr> </#list> <tr> <td align="left" valign="top" width="1%"> <input type="radio" onClick="javascript:toggleBillingAccount(this);" name="billingAccountId" value="_NA_" <#if (selectedBillingAccountId?default("") == "N")>checked="checked"</#if>/> <input type="hidden" name="_NA_amount" value="0.00"/> </td> <td align="left" valign="top" width="99%"> <div class="tabletext">${uiLabelMap.AccountingNoBillingAccount}</div> </td> </tr> </#if> </#if> <#-- end of special billing account functionality --> <#if productStorePaymentMethodTypeIdMap.GIFT_CARD?exists> <tr><td colspan="2"><hr class="sepbar"/></td></tr> <tr> <td width="1%"> <input type="checkbox" name="addGiftCard" value="Y"/> </td> <td width="50%"> <span class="tabletext">${uiLabelMap.AccountingUseGiftCardNotOnFile}</span> </td> </tr> <tr> <td width="1%"> <div class="tabletext">${uiLabelMap.AccountingNumber}</div> </td> <td width="50%"> <input type="text" size="15" class="inputBox" name="giftCardNumber" value="${(requestParameters.giftCardNumber)?if_exists}" onFocus="document.checkoutInfoForm.addGiftCard.checked=true;"/> </td> </tr> <#if shoppingCart.isPinRequiredForGC(delegator)> <tr> <td width="1%"> <div class="tabletext">${uiLabelMap.AccountingPIN}</div> </td> <td width="50%"> <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 width="1%"> <div class="tabletext">${uiLabelMap.AccountingAmount}</div> </td> <td width="50%"> <input type="text" size="6" class="inputBox" name="giftCardAmount" value="${(requestParameters.giftCardAmount)?if_exists}" onFocus="document.checkoutInfoForm.addGiftCard.checked=true;"/> </td> </tr> </#if> </table> </div> </div> <#-- End Payment Method Selection --> </td> </tr> </table></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 + -