<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#assign shipping = !shoppingCart.containAllWorkEffortCartItems()> <#-- contains items which need shipping? -->
<#if shipping == true>
1) ${uiLabelMap.OrderWhereShallWeShipIt}?
<#else>
1) ${uiLabelMap.OrderInformationAboutYou}
<#if (shoppingCart.getTotalQuantity() > 1) && !shoppingCart.containAllWorkEffortCartItems()> <#-- no splitting when only rental items --> <#if shippingContactMechList?has_content> <#list shippingContactMechList as shippingContactMech> <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress", false)> <#if shippingContactMech_has_next>
${uiLabelMap.OrderShipToParty}:
${uiLabelMap.CommonAdd}: ${uiLabelMap.PartyAddNewAddress}

${uiLabelMap.OrderSplitIntoMultipleShipments} <#if (shoppingCart.getShipGroupSize() > 1)>
${uiLabelMap.OrderNOTEMultipleShipmentsExist}.


  
<#if shipping == true>
2) ${uiLabelMap.OrderHowShallWeShipIt}?
<#else>
2) ${uiLabelMap.OrderOptions}?
<#if shipping == true> <#list carrierShipmentMethodList as carrierShipmentMethod> <#assign shippingMethod = carrierShipmentMethod.shipmentMethodTypeId + "@" + carrierShipmentMethod.partyId> <#if !carrierShipmentMethodList?? || carrierShipmentMethodList?size == 0> <#else> <#if shipping == true> <#if productStore.showCheckoutGiftOptions! != "N" && giftEnable! != "N"> <#else>

${uiLabelMap.OrderShipAllAtOnce}?


${uiLabelMap.OrderSpecialInstructions}


${uiLabelMap.OrderIsThisGift}

${uiLabelMap.OrderGiftMessage}


${uiLabelMap.PartyEmailAddresses}

${uiLabelMap.OrderEmailSentToFollowingAddresses}:
<#list emailList as email> ${email.infoString!}<#if email_has_next>,

${uiLabelMap.OrderCommaSeperatedEmailAddresses}:
   <#-- Payment Method Selection -->
3)${uiLabelMap.OrderHowShallYouPay}?
<#if productStorePaymentMethodTypeIdMap.EXT_OFFLINE??> <#if productStorePaymentMethodTypeIdMap.EXT_COD??> <#if productStorePaymentMethodTypeIdMap.EXT_WORLDPAY??> <#if productStorePaymentMethodTypeIdMap.EXT_PAYPAL??> <#-- financial accounts --> <#list finAccounts as finAccount> <#if !paymentMethodList?has_content> <#if (!finAccounts?has_content)> <#else> <#list paymentMethodList as paymentMethod> <#if paymentMethod.paymentMethodTypeId == "CREDIT_CARD"> <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD??> <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)> <#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT"> <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT??> <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)> <#elseif paymentMethod.paymentMethodTypeId == "GIFT_CARD"> <#if productStorePaymentMethodTypeIdMap.GIFT_CARD??> <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false)> <#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 + "*"> <#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3]> <#else> <#assign giftCardNumber = pcardNumber> <#-- special billing account functionality to allow use w/ a payment method --> <#if productStorePaymentMethodTypeIdMap.EXT_BILLACT??> <#if billingAccountList?has_content> <#-- end of special billing account functionality --> <#if productStorePaymentMethodTypeIdMap.GIFT_CARD??> <#if shoppingCart.isPinRequiredForGC(delegator)>
${uiLabelMap.CommonAdd}: <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD??> ${uiLabelMap.AccountingCreditCard} <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT??> ${uiLabelMap.AccountingEFTAccount}

${uiLabelMap.AccountingSplitPayment}


${uiLabelMap.AccountingNoPaymentMethods}
${uiLabelMap.CommonUpdate} <#if paymentMethod.description?has_content>
(${paymentMethod.description})  ${uiLabelMap.OrderCardSecurityCode} 
${uiLabelMap.CommonUpdate} <#if paymentMethod.description?has_content>
(${paymentMethod.description})
[${uiLabelMap.CommonUpdate}] <#if paymentMethod.description?has_content>
(${paymentMethod.description})

${uiLabelMap.FormFieldTitle_billingAccountId}
${uiLabelMap.OrderBillUpTo}

${uiLabelMap.AccountingNumber}
${uiLabelMap.AccountingPIN}
${uiLabelMap.AccountingAmount}
<#-- End Payment Method Selection -->
 ${uiLabelMap.OrderBacktoShoppingCart} ${uiLabelMap.OrderContinueToFinalOrderReview}