Name / Value Pair Example Format
This article provides information about Name / Value Pair Example Format
Subject
<template> Order: #{order.id} - #{order.customer.fullName} </template>
Content
<template> [ Order ] Reference/ID: #{order.id} Created: #{order.created.date} #{order.created.time} Status: #{order.status} Updated: #{order.statusChange.date} #{order.statusChange.time} Currency: #{order.currency} Site: #{order.siteName} SubTotal: #{order.subTotal.value} Tax: #{order.tax.value} Total: #{order.total.value} Referrer: #{order.originReferrer} <repeat value="#{order.baseItems}" var="baseItem"> [ Product ] Name: #{baseItem.productName} <if test="#{baseItem.productDisplay ne baseItem.productName}"> Title: #{baseItem.productDisplay} </if> Price: #{baseItem.priceTotal.value} Quantity: #{baseItem.quantity} <if has="#{baseItem.offerDisplay}"> Offer: #{baseItem.offerDisplay} </if> [ Fulfillment ] <repeat value="#{baseItem.visibleFulfillment}" var="fulfillment"> #{fulfillment.serviceType} #{fulfillment.reference} </repeat> <if has="#{baseItem.allItems}"> [ Contents ] <repeat value="#{baseItem.allItems}" var="item"> Name: #{item.productName} <if test="#{item.productDisplay ne item.productName}"> Title: #{item.productDisplay} </if> Price: #{item.priceTotal.value} Quantity: #{item.quantity} </repeat> </if> </repeat> <if test="#{order.hasSurveyFields}"> [ Survey ] <repeat value="#{order.surveyFields}" var="field"> #{field.display} = #{field.value} </repeat> </if> [ Customer ] Salutation: #{order.customer.salutation} Last Name: #{order.customer.lastName} First Name: #{order.customer.firstName} Company: #{order.customer.companyName} Email: #{order.customer.email} Phone: #{order.customer.phone} [ Address ] Recipient: #{order.customer.fullName} Email: #{order.customer.email} Phone: #{order.customer.phone} Address 1: #{order.address.address1} Address 2: #{order.address.address2} City: #{order.address.city} Postal Code: #{order.address.postalCode} Region: #{order.address.regionDisplay} Region Code: #{order.address.region} Country: #{order.address.countryDisplay} Country Code: #{order.address.country} [ Payment ] <repeat value="#{order.payments}" var="payment"> #{payment.type} </repeat> </template>
Have any questions about FastSpring? We’re here to help!