Skip to main content
Reference

review.vm

info

Transcluded from Screen Interface Intro.

$form variables for template review.vm

NameTypeFormal SyntaxForm Data?Required on Post?Comments/Sample Usage
address1string$form.address1
address2string$form.address2
addressBook[Addresses[ ]](../storefront-object-model/address-sfo.md)$form.addressBook
amazonMerchantIdstring$form.amazonMerchantId
amazonOrderReferenceIdstring$form.amazonOrderReferenceId
amazonWidgetUrlstring$form.amazonWidgetUrl
billingInfostring[ ]$form.billingInfo
buysafeBondChangestring$form.buysafeBondChange
buysafeBondCost[BigDecimal](../storefront-object-model/bigdecimal-sfo.md)$form.buysafeBondCost
buysafeBondingSignalstring$form.buysafeBondingSignal
buysafeCartDisplayTextstring$form.buysafeCartDisplayText
buysafeCartDisplayUrlstring$form.buysafeCartDisplayUrl
buysafeRolloverScriptUrlstring$form.buysafeRolloverScriptUrl
ccEmailstring$form.ccEmail
checkNumberstring$form.checkNumber
checkoutTermsstring$form.checkoutTerms
checkoutTermsAgreement[Agreement](../storefront-object-model/agreement-sfo.md)$form.checkoutTermsAgreement
citystring$form.city
companystring$form.company
countriesstring[ ]$form.countries
countrystring$form.country
creditCardExpMonthstring$form.creditCardExpMonth
creditCardExpMonths[Option](../storefront-object-model/option-sfo.md)[ ] $form.creditCardExpMonths
creditCardExpYearstring$form.creditCardExpYear
creditCardExpYears[Option](../storefront-object-model/option-sfo.md) [ ]$form.creditCardExpYears
creditCardNumberstring$form.creditCardNumber
creditCardTokenstring$form.creditCardToken
creditCardTypestring$form.creditCardType
creditCardTypes[Option](../storefront-object-model/option-sfo.md) [ ]$form.creditCardTypes
creditCardVerificationNumberstring$form.creditCardVerificationNumber
customField2string$form.customField2
dayPhonestring$form.dayPhone
deliveryDatestring$form.deliveryDate
echeckAccountNumberstring$form.echeckAccountNumber
echeckAccountTypestring$form.echeckAccountType
echeckBankNamestring$form.echeckBankName
echeckConfirmAccountNumberstring$form.echeckConfirmAccountNumber
echeckCustomerTaxIdstring$form.echeckCustomerTaxId
echeckDriversLicenseDOBstring$form.echeckDriversLicenseDOB
echeckDriversLicenseNumberstring$form.echeckDriversLicenseNumber
echeckDriversLicenseStatestring$form.echeckDriversLicenseState
echeckDriversLicenseStatesstring[ ]$form.echeckDriversLicenseStates
echeckOwnerTypestring$form.echeckOwnerType
echeckRoutingNumberstring$form.echeckRoutingNumber
emailstring$form.email
errors[Error[ ]](../storefront-object-model/error-sfo.md)$form.errors
eveningPhonestring$form.eveningPhone
firstNamestring$form.firstName
formattedBuysafeBondCoststring$form.formattedBuysafeBondCost
gatewayTokenizationScriptsstring$form.gatewayTokenizationScripts
giftMessagestring$form.giftMessage
infoMessagesstring[ ]$form.infoMessages
itemsItemObject[ ] (see below)$form.items
lastNamestring$form.lastName
liftGatestring$form.liftGate
merchantIdstring$form.merchantId
paymentPreferencestring$form.paymentPreference
purchaseOrderNumberstring$form.purchaseOrderNumber
returnPolicystring$form.returnPolicy
returnPolicyAgreement[Agreement](../storefront-object-model/agreement-sfo.md)$form.returnPolicyAgreement  Null if no return policy is configured.
returnPolicyDescriptionstring$form.returnPolicyDescription
screenBrandingThemeCodestring$form.screenBrandingThemeCode
shipOnDatestring$form.shipOnDate
shipping3rdPartyAccountNumberstring$form.shipping3rdPartyAccountNumber
shippingInfostring[ ]$form.shippingInfo
shippingMethodstring$form.shippingMethod
showAddressstring$form.showAddress
specialInstructionsstring$form.specialInstructions
statestring$form.state
stateOptionalCountriesJsonstring$form.stateOptionalCountriesJson
storedCreditCardMaskstring$form.storedCreditCardMask
summaryLineItemsSummaryLineItem[ ] (see below)$form.summaryLineItems
thirdPartyUrlstring$form.thirdPartyUrl
titlestring$form.title
totalstring$form.total
zipstring$form.zip

$form methods for template review.vm

MethodSignatureComments/Sample
getItemIdsAsJsonstring $form.getItemIdsAsJson()returns a json array of item ids. very useful if you need the cart item ids in a javascript array.

Template Specific Value Objects

ItemObject
FieldTypeComment/Sample
amountstring
autoOrderFrequencystring
descriptionstring
discountstring
itemIdstring
options[ValueObject](../storefront-object-model/valueobject-sfo.md)``[ ] (name, value)
quantitystring
SummaryLineItem
FieldTypeComment/Sample
amountstringFormatted amount
discountbooleantrue if this line item is a discount
namestringlabel or description of the line item
rawAmount[BigDecimal](../storefront-object-model/bigdecimal-sfo.md)This raw amount is for advanced use only. It contains no formatting.
currencyCodeThe cart currency code (useful for manipulating rawAmount)
baseCurrencyCodeThe merchant base currency code (useful for manipulating rawAmount)
exchangeRate[BigDecimal](../storefront-object-model/bigdecimal-sfo.md)The cart exchange rate (useful for manipulating rawAmount)

Flow

flow_review.vm.png

Was this page helpful?