Collapse Menu
Classic Docs
Digital Products and Fulfillments
Order Page Config, Design and Page Flow
Advanced Features
Subscriptions and Saasy
Your Account
Contact Support

Name / Value Pair Example Format

Overview

This article provides information about 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>

Try FastSpring

Get a free account and see why FastSpring is the ecommerce partner of choice for software providers around the world. Try our full-service ecommerce solution today to unlock revenue growth for your online company.

Important Notice

This documentation library is intended for FastSpring's Classic Platform users. If you use the url springboard.fastspring.com to log in to your FastSpring Store, you are a Classic Platform user.

Please visit fastspring.com/docs to access our latest documentation.

Continue to Classic documentation

Hide Notice for 30 Days