An example of the Order Confirmation email is below.
Sample Order Confirmation HTML Version
Sample Order Confirmation Text Version
The following email tokens can be used in the Order Confirmation email template:
${curorder.shipping_address.STORE_NAME}
${curorder.shipping_address.ADDRESS_LINE_1}
${curorder.shipping_address.ADDRESS_LINE_2}
${curorder.shipping_address.APARTMENT}
${curorder.shipping_address.CITY}
${curorder.shipping_address.STATE}
${curorder.shipping_address.ZIP_CODE}
${curorder.shipping_address.PHONE}
${curorder.shipping_address.STORE_HOURS}
${item.item_store_pickup_inventory_message}
${item.item_discount_quantity}
${curorder.order_gift_wrap_non_discount_total}
${curorder.order_gift_wrap_discount_total}
${curorder.order_shipment_total}
${curorder.shipping_address.FIRST_NAME}
${curorder.shipping_address.LAST_NAME}
${curorder.shipping_address.ADDRESS_LINE_1}
${curorder.shipping_address.ADDRESS_LINE_2}
${curorder.shipping_address.APARTMENT}
${curorder.shipping_address.CITY}
${curorder.shipping_address.STATE}
${curorder.shipping_address.ZIP_CODE}
${curorder.shipping_address.PHONE}
${curorder.ship_from_store_order}
${order.grand_gift_wrap_non_discount_total}
${order.grand_gift_wrap_discount_total}
${order.grand_orders_shipping_discount}
${order.grand_orders_discount_total}
An example of the HTML Body Contents for the Order Confirmation email template is below.
Name: Order Confirmation
Subject: Thank You for your Order
From: Note: If a From address is not defined here, the system uses the from address defined in the custserv.email site parameter.
HTML Body Contents:
#set($orderCollectionContainsElectronicCertificateOnlyOrder = "false")
#set($orderCollectionOnlyContainsElectronicCertificateOnlyOrder = "")
#set($orderCollectionContainsInStorePickupOrder = "false")
#set($orderCount = 0)
#foreach ($curorder in ${order.orders})
#if (${curorder.my_key} == "GC_ORDER")
#set($orderCollectionContainsElectronicCertificateOnlyOrder = "true")
#if (${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "")
#set($orderCollectionOnlyContainsElectronicCertificateOnlyOrder = "true")
#end
#else
#set($orderCollectionOnlyContainsElectronicCertificateOnlyOrder = "false")
#end
#if (${curorder.instore_pickup_order} == "Y")
#set($orderCollectionContainsInStorePickupOrder = "true")
#end
#set($orderCount = $orderCount + 1)
#end
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Order Confirmation</title>
<style>
body {
background-color: #FFFFFF; padding: 0; margin: 0;
}
</style>
</head>
<body style="background-color: #FFFFFF; padding: 0; margin: 0;">
<table border="0" cellpadding="0" cellspacing="10" height="100%" bgcolor="#FFFFFF" width="100%" style="max-width: 650px;" id="bodyTable">
<tr>
<td align="center" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="emailContainer" style="font-family:Arial; color: #333333;">
<!-- Logo -->
<tr>
<td align="left" valign="top" colspan="2" style="border-bottom: 1px solid #CCCCCC; padding-bottom: 10px;">
<img alt="${site-name}" border="0" src="${site-url-secure}/assets/images/common/demo/logo.png" title="${sitename}" class="sitelogo" width="60%" style="max-width:250px;" />
</td>
</tr>
<!-- Title -->
<tr>
<td align="left" valign="top" colspan="2" style="border-bottom: 1px solid #CCCCCC; padding: 20px 0 10px 0;">
<span style="font-size: 18px; font-weight: normal;">ORDER CONFIRMATION</span>
</td>
</tr>
<!-- Text -->
<tr>
<td align="left" valign="top" colspan="2" style="padding: 10px 0 0 0;">
<span style="font-size: 12px;"><span style="font-weight: bold;">Order Date:</span> ${order.date}</span><br />
<span style="font-size: 12px;"><span style="font-weight: bold;">Order #:</span> ${order.number} (Online)
#if(${xstore-order-number})
, ${xstore-order-number} Store #if (${store-name} and ${store-name} != "") - ${store-name}#end #if (${store-number} and ${store-number} != "") - ${store-number}#end
#end
</span>
<br /><br />
</td>
</tr>
<!-- Messages -->
<tr>
<td align="left" valign="top" colspan="2">
<span style="padding-bottom: 10px; font-size: 12px; line-height: 1.2; color: #333333;">
#if (${order.order_status_code} == "NEW")
<span style="font-weight: bold;">Thank you for shopping at the ${site-url}!</span><br />Your order is being processed and we will email you a shipping confirmation once it has shipped.<br /><br />
#else
We have modified your order per your request and are now processing your updated transaction. Please verify the changes below and contact customer service if you have any questions.
#end
</span>
</td>
</tr>
<!-- Store Pickup -->
<!-- BEGIN - In Store Pickup order -->
#if (${orderCollectionContainsInStorePickupOrder} == "true")
#foreach ($curorder in ${order.orders})
#if (${curorder.instore_pickup_order} == "Y")
<tr class="storePickup">
<td align="left" valign="top" colspan="2" style="padding:10px 0 5px 0; border-bottom: 3px solid #F4725E;">
<span style="font-size: 16px; font-weight: bold;">STORE PICKUP</span><br />
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="2" cellpadding="0" style="padding-top: 10px;">
<!-- Shipping To -->
<span style="font-size: 12px; font-weight: normal;">
You will receive an email when your items are ready for pickup. Bring this email receipt with you to the store. Your items will be held at the store for 7 days.
<br /><br />
<span style="font-weight: bold;">Pickup Location:</span><br />
${curorder.shipping_address.STORE_NAME}<br />
${curorder.shipping_address.ADDRESS_LINE_1}<br />
#if (${curorder.shipping_address.ADDRESS_LINE_2} and ${curorder.shipping_address.ADDRESS_LINE_2} != "")
${curorder.shipping_address.ADDRESS_LINE_2}<br />
#end
#if (${curorder.shipping_address.APARTMENT} and ${curorder.shipping_address.APARTMENT} != "")
${curorder.shipping_address.APARTMENT}<br />
#end
${curorder.shipping_address.CITY}, ${curorder.shipping_address.STATE} ${curorder.shipping_address.ZIP_CODE}
#if (${curorder.shipping_address.PHONE} and ${curorder.shipping_address.PHONE} != "")
Store Phone: ${curorder.shipping_address.PHONE}<br />
#end
#if (${curorder.shipping_address.STORE_HOURS} and ${curorder.shipping_address.STORE_HOURS} != "")
Store Hours: ${curorder.shipping_address.STORE_HOURS}<br />
#end
#if (${curorder.gift_message} and ${curorder.gift_message} != "")
<span style="font-weight: bold;">Gift Message:</span> ${curorder.gift_message}<br />
#end
<br />
</span>
</td>
</tr>
<!-- Store Pickup Items-->
<tr>
<td align="left" valign="top" colspan="2" style="padding: 10px 0 10px 0; border-bottom: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC;">
<span style="font-size: 14px; font-weight: bold;">ITEMS</span><br />
</td>
</tr>
<!-- Store Pickup Item-->
#foreach ($item in ${curorder.items})
<tr>
<td align="center" valign="top" width="25%" colspan="1" style="padding-top: 20px;">
<img src="${item.image_src}&wid=300" width="100%" align="left" alt="product image" />
</td>
<td align="left" valign="top" width="75%" colspan="1" style="color: #333333; padding: 15px 0 0 20px;">
<span style="font-size: 12px; line-height: 1.5">
<!-- iterate order items -->
<span style="font-weight: bold;">${item.name}</span><br />
#if (${item.color_name} and ${item.color_name} != "")
#if (${item.size_name} and ${item.size_name} != "")
Color: ${item.color_name} | Size: ${item.size_name}<br />
#else
Color: ${item.color_name}<br />
#end
#else
#if (${item.size_name} and ${item.size_name} != "")
Size: ${item.size_name}<br />
#end
#end
#if (${item.item_store_pickup_inventory_message})
Status: ${item.item_store_pickup_inventory_message}<br />
#end
#if (${item.gift_wrap} == "true")
Gift Wrap: Yes<br />
#end
#if (${item.item_discount_total} == "$0.00")
Item Price: ${item.item_list_price}<br />
#else
Item Price: ${item.item_list_price}<br />
#end
Qty: #${item.item_quantity}<br />
Total: ${item.item_total}<br />
<!-- Display promotional/discount information if applicable -->
#if (${item.item_discount_total} != "$0.00")
#if (${item.item_discount_total} == ${item.item_list_price})
<span style="color: red;">Discount: ${item.item_discount_quantity} FREE</span><br />
#else
<span style="color: red;">Discount: ${item.item_discount_quantity} for ${item.item_total}</span><br />
#end
#end
</span>
</td>
</tr>
#end
<!-- Store Pickup Item end -->
<tr>
<td>
</td>
</tr>
<!-- Store Pickup Totals-->
#if ($orderCount > 1)
<tr class="storePickupTotals">
<td align="right" valign="top" colspan="1" width="40%" style="padding: 10px 5px 0 0; background: #F4F4F4;">
<span style="font-size: 12px;">Merchandise:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 10px 0 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">${curorder.order_items_total}</span>
</td>
</tr>
#if (${curorder.order_gift_wrap_non_discount_total} and ${curorder.order_gift_non_discount_cost_total} != "$0.00")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">Gift Wrap:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">${curorder.order_gift_wrap_non_discount_total}</span>
</td>
</tr>
#end
#if (${curorder.order_gift_wrap_discount_total} and ${curorder.order_gift_wrap_discount_total} != "$0.00")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px; color: red;">Gift Wrap Discount:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px; color: red;">-${curorder.order_gift_wrap_discount_total}</span>
</td>
</tr>
#end
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">Shipping:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">
#if (${curorder.order_shipping} == "$0.00")
FREE2
#else
${curorder.order_shipping}
#end
</span>
</td>
</tr>
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">Sales Tax:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">${curorder.order_tax}</span>
</td>
</tr>
<tr class="storePickupShipmentTotal">
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px 10px 5px; background: #F4F4F4;">
<span style="font-size: 12px; font-weight: bold;">Shipment Total:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px 10px 5px; background: #F4F4F4;">
<span style="font-size: 12px; font-weight: bold;">${curorder.order_shipment_total}</span>
</td>
</tr>
#end
#end
<tr>
<td>
</td>
</tr>
#end
#end
<!-- END - In Store Pickup order -->
<!-- BEGIN - Regular orders -->
#set($regularShipmentCount = 0)
#foreach ($curorder in ${order.orders})
#if (${curorder.my_key} != "GC_ORDER" and ${curorder.instore_pickup_order} != "Y")
#set($regularShipmentCount = $regularShipmentCount + 1)
#if ($order.orders.size() > 1)
<tr>
<td align="left" valign="top" colspan="2" style="padding:10px 0 5px 0; border-bottom: 3px solid #F4725E;">
<span style="font-size: 16px; font-weight: bold;">SHIPMENT ${regularShipmentCount}</span><br />
</td>
</tr>
#end
<tr>
<td align="left" valign="top" colspan="2" cellpadding="0" style="padding-top: 10px;">
<!-- Shipping To -->
<span style="font-size: 12px; font-weight: normal;">
<span style="font-weight: bold;">Shipping To:</span><br />
${curorder.shipping_address.FIRST_NAME} ${curorder.shipping_address.LAST_NAME}<br />
${curorder.shipping_address.ADDRESS_LINE_1}<br />
#if (${curorder.shipping_address.ADDRESS_LINE_2} and ${curorder.shipping_address.ADDRESS_LINE_2} != "")
${curorder.shipping_address.ADDRESS_LINE_2}<br />
#end
#if (${curorder.shipping_address.APARTMENT} and ${curorder.shipping_address.APARTMENT} != "")
${curorder.shipping_address.APARTMENT}<br />
#end
${curorder.shipping_address.CITY}, ${curorder.shipping_address.STATE} ${curorder.shipping_address.ZIP_CODE}<br />
#if (${curorder.shipping_address.PHONE} and ${curorder.shipping_address.PHONE} != "")
${curorder.shipping_address.PHONE}<br />
#end
#if (${curorder.carrier_code} == "E")
<br /><span style="font-weight: bold;">Shipping Via:</span><br />
Overnight Delivery<br />
#else
<br /><span style="font-weight: bold;">Shipping Via:</span><br />
Standard Shipping<br />
#end
#if (${curorder.ship_from_store_order} == "Y")
<br /><span style="font-weight: bold;">Shipping from:</span><br />
Store<br />
#else
<br /><span style="font-weight: bold;">Shipping from:</span><br />
Warehouse<br />
#end
#if (${curorder.gift_message} and ${curorder.gift_message} != "")
<br /><span style="font-weight: bold;">Gift Message:</span><br />
${curorder.gift_message}<br />
#end
</span>
<br />
</td>
</tr>
<!-- Items -->
<tr>
<td align="left" valign="top" colspan="2" style="padding: 10px 0 10px 0; border-bottom: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC;">
<span style="font-size: 14px; font-weight: bold;">ITEMS</span><br />
</td>
</tr>
<!-- Item -->
#foreach ($item in ${curorder.items})
<tr>
<td align="center" valign="top" width="25%" colspan="1" style="padding-top: 20px;">
<img src="${item.image_src}&wid=300" width="100%" align="left" alt="product image" />
</td>
<td align="left" valign="top" width="75%" colspan="1" style="color: #333333; padding: 15px 0 0 20px;">
<span style="font-size: 12px; line-height: 1.5;">
<!-- iterate order items -->
<span style="font-weight: bold;">${item.name}</span><br />
#if (${item.color_name} and ${item.color_name} != "")
#if (${item.size_name} and ${item.size_name} != "")
Color: ${item.color_name} | Size: ${item.size_name}<br />
#else
Color: ${item.color_name}<br />
#end
#else
#if (${item.size_name} and ${item.size_name} != "")
Size: ${item.size_name}<br />
#end
#end
#if (${item.item_buy_online_inventory_message})
Status: ${item.item_buy_online_inventory_message}<br />
#end
#if (${item.gc_type} and ${item.gc_type} == "GC_TYPE_GC")
#if (${item.gc_message} and ${item.gc_message} != "")
Message: ${item.gc_message}<br />
#end
#end
#if (${item.gift_wrap} == "true")
Gift Wrap: Yes<br />
#end
#if (${item.item_discount_total} == "$0.00")
Item Price: ${item.item_list_price}<br />
#else
Item Price: ${item.item_list_price}<br />
#end
Qty: #${item.item_quantity}<br />
Total: ${item.item_total}<br />
<!-- Display promotional/discount information if applicable -->
#if (${item.item_discount_total} != "$0.00")
#if (${item.item_discount_total} == ${item.item_list_price})
<span style="color:red">Discount: ${item.item_discount_quantity} FREE</span><br />
#else
<span style="color:red">Discount: ${item.item_discount_quantity} for ${item.item_total}</span><br />
#end
#end
</span>
</td>
</tr>
#end
<!-- Item end -->
<tr>
<td>
</td>
</tr>
<!-- Order total -->
#if ($orderCount > 1)
<tr class="regularOrderTotal">
<td align="right" valign="top" colspan="1" width="40%" style="padding: 10px 5px 0 0; background: #F4F4F4;">
<span style="font-size: 12px;">Merchandise:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 10px 0 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">${curorder.order_items_total}</span>
</td>
</tr>
#if (${curorder.order_gift_wrap_non_discount_total} and ${curorder.order_gift_wrap_non_discount_total} != "$0.00")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">Gift Wrap:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">${curorder.order_gift_wrap_non_discount_total}</span>
</td>
</tr>
#end
#if (${curorder.order_gift_wrap_discount_total} and ${curorder.order_gift_wrap_discount_total} != "$0.00")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px; color: red;">Gift Wrap Discount:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px; color: red;">-${curorder.order_gift_wrap_discount_total}</span>
</td>
</tr>
#end
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">Shipping:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">
#if (${curorder.order_shipping} == "$0.00")
FREE1
#else
${curorder.order_shipping}
#end
</span>
</td>
</tr>
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">Sales Tax:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">${curorder.order_tax}</span>
</td>
</tr>
<tr class="regularOrderShipmentTotals">
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px 10px 5px; background: #F4F4F4;">
<span style="font-size: 12px; font-weight: bold;">Shipment Total:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px 10px 5px; background: #F4F4F4;">
<span style="font-size: 12px; font-weight: bold;">${curorder.order_shipment_total}</span>
</td>
</tr>
#end
#end
#end
<!-- END - Regular orders -->
<!-- Begin Electronic Certificate order -->
#if (${orderCollectionContainsElectronicCertificateOnlyOrder} == "true")
#foreach ($curorder in ${order.orders})
#if (${curorder.my_key} == "GC_ORDER")
<tr>
<td align="left" valign="top" colspan="2" style="padding:10px 0 5px 0; border-bottom: 3px solid #F4725E;">
<span style="font-size: 16px; font-weight: bold;">DIGITAL DELIVERY</span><br />
</td>
</tr>
<!-- iterate order items -->
#foreach ($item in ${curorder.items})
<tr>
<td align="center" valign="top" width="25%" colspan="1" style="padding-top: 20px;">
<img src="${item.image_src}&wid=300" width="100%" align="left" alt="product image" />
</td>
<td align="left" valign="top" width="75%" colspan="1" style="color: #333333; padding: 15px 0 0 20px;">
<span style="font-size: 12px;">
<span style="font-weight: bold;"> ${item.name}</span><br />
#if (${item.color_name} and ${item.color_name} != "")
#if (${item.size_name} and ${item.size_name} != "")
Color: ${item.color_name} | Size: ${item.size_name}<br />
#else
Color: ${item.color_name}<br />
#end
#else
#if (${item.size_name} and ${item.size_name} != "")
Size: ${item.size_name}<br />
#end
#end
Recipient: ${item.gc_recipient_name} (${item.gc_recipient_email})<br />
#if (${item.gc_message} and ${item.gc_message} != "")
Message: ${item.gc_message}<br />
#end
#if (${item.item_discount_total} == "$0.00")
Item Price: ${item.item_list_price}<br />
#else
Item Price: ${item.item_list_price}<br />
#end
Qty: #${item.item_quantity}<br />
Total: ${item.item_total}<br />
<!-- Display promotional/discount information if applicable -->
#if (${item.item_discount_total} != "$0.00")
#if (${item.item_discount_total} == ${item.item_list_price})
Discount: ${item.item_discount_quantity} FREE<br />
#else
Discount: ${item.item_discount_quantity} for ${item.item_total}<br />
#end
#end
</span>
</td>
</tr>
#end
<!-- iterate order items end -->
<tr>
<td>
</td>
</tr>
<!-- Order total -->
#if ($orderCount > 1)
<tr class="electronicTotals">
<td align="right" valign="top" colspan="1" width="40%" style="padding: 10px 5px 0 0; background: #F4F4F4;">
<span style="font-size: 12px;">Merchandise:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 10px 0 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">${curorder.order_items_total}</span>
</td>
</tr>
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding: 10px 5px 0 0; background: #F4F4F4;">
<span style="font-size: 12px;">Sales Tax:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding: 10px 0 0 5px; background: #F4F4F4;">
<span style="font-size: 12px;">${curorder.order_tax}</span>
</td>
</tr>
<tr class="electronicOrderShipmentTotals">
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px 10px 5px; background: #F4F4F4;">
<span style="font-size: 12px; font-weight: bold;">Shipment Total:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px 10px 5px; background: #F4F4F4;">
<span style="font-size: 12px; font-weight: bold;">${curorder.order_shipment_total}</span>
</td>
</tr>
#end
#end
#end
#end
<!-- End Electronic Certificate order -->
<!-- Order Totals-->
<tr>
<td align="left" valign="top" colspan="2" width="40%" style="padding:25px 5px 5px 5px; border-bottom: 3px solid #F4725E;">
<span style="font-size: 16px; font-weight: bold;">ORDER TOTALS</span>
</td>
</tr>
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:10px 0 5px 5px;">
<span style="font-size: 12px;">Merchandise:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:10px 0 5px 5px;">
<span style="font-size: 12px;">${order.grand_items_total}</span>
</td>
</tr>
#if (${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "false")
#if (${order.grand_gift_wrap_non_discount_total} and ${order.grand_gift_wrap_non_discount_total} != "$0.00" and ${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "false")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px;">
<span style="font-size: 12px;">Gift Wrap:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px;">
<span style="font-size: 12px;">${order.grand_gift_wrap_non_discount_total}</span>
</td>
</tr>
#end
#if (${order.grand_gift_wrap_discount_total} and ${order.grand_gift_wrap_discount_total} != "$0.00" and ${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "false")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">Gift Wrap Discount:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">-${order.grand_gift_wrap_discount_total}</span>
</td>
</tr>
#end
#end
#if (${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "false")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px;">
<span style="font-size: 12px;">Shipping:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px;">
<span style="font-size: 12px;">
#if (${order.grand_shipping} == "$0.00")
FREE
#else
${order.grand_shipping_rate}
#end
</span>
</td>
</tr>
#end
#if (${order.grand_shipping} != "$0.00" and ${order.grand_orders_shipping_discount} != "$0.00")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">Shipping Discount:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">-${order.grand_orders_shipping_discount}</span>
</td>
</tr>
#end
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px;">
<span style="font-size: 12px;">Sales Tax:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px;">
<span style="font-size: 12px;">${order.grand_tax}</span>
</td>
</tr>
#if (${order.grand_orders_discount_total} and ${order.grand_orders_discount_total} != "$0.00")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">Order Discount:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">-${order.grand_orders_discount_total}</span>
</td>
</tr>
#end
#if (${order.gc_total} and ${order.gc_total} != "$0.00")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">Gift Card/Certificate:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">-${order.gc_total}</span>
</td>
</tr>
#end
#if (${order.relate_rewards} and ${order.relate_rewards}!= "$0.00")
<tr>
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">Gift Card/Certificate:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px;">
<span style="font-size: 12px; color: red;">-${order.relate_rewards}</span>
</td>
</tr>
#end
<tr cellpadding="0px">
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px 5px 5px;">
<span style="font-size: 12px; font-weight: bold;">ORDER TOTAL:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px 5px 5px;">
<span style="font-size: 12px; font-weight: bold;">${order.cc_total}</span>
</td>
</tr>
<tr cellpadding="0px">
<td align="right" valign="top" colspan="1" width="40%" style="padding:5px 5px 10px 5px;">
<span style="font-size: 12px; font-weight: bold;">Payment Method:</span>
</td>
<td align="left" valign="top" colspan="1" width="60%" style="padding:5px 5px 10px 5px;">
<span style="font-size: 12px; font-weight: bold;">
#if (${order.cc_total} == "$0.00")
No Payment Needed
#elseif (${order.credit_card_type} == "PP")
PayPal
#else
Credit Card
#end
</span>
</td>
</tr>
<!-- Footer Message -->
<tr>
<td align="left" valign="top" colspan="2" style="background-color: #f4f4f4; padding: 15px 30px 15px 15px;">
<span style="padding-bottom: 15px; font-size: 12px; line-height: 1.5; color: #666666;">
<span style="font-weight: bold; color: #000000;">Have a question?</span><br />
If you have any questions about your order, please contact a ${site-name} Customer Service Representative or call us toll free at ${site-toll-free-number}. Please do not reply to this email as it does not accommodate replies.
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
An example of the Text Body Contents for the Order Confirmation email template is below.
Name: Order Confirmation
Subject: Thank You for your Order
From: Note: If a From address is not defined here, the system uses the from address defined in the custserv.email site parameter.
Text Body Contents:
#set($orderCollectionContainsElectronicCertificateOnlyOrder = "false")
#set($orderCollectionOnlyContainsElectronicCertificateOnlyOrder = "")
#set($orderCollectionContainsInStorePickupOrder = "false")
#set($orderCount = 0)
#foreach ($curorder in ${order.orders})
#if (${curorder.my_key} == "GC_ORDER")
#set($orderCollectionContainsElectronicCertificateOnlyOrder = "true")
#if (${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "")
#set($orderCollectionOnlyContainsElectronicCertificateOnlyOrder = "true")
#end
#else
#set($orderCollectionOnlyContainsElectronicCertificateOnlyOrder = "false")
#end
#if (${curorder.instore_pickup_order} == "Y")
#set($orderCollectionContainsInStorePickupOrder = "true")
#end
#set($orderCount = $orderCount + 1)
#end
#set($orderToDisplayCount = 0)
Order Confirmation
Order Date: ${order.date}
Order #: ${order.number} (Online)
#if (${xstore-order-number})
, ${xstore-order-number} Store #if (${store-name} and ${store-name} != "") - ${store-name}#end #if (${store-number} and ${store-number} != "") - ${store-number}#end
#end
#if (${order.order_status_code} == "NEW")
Thank you for shopping at the ${site-url}! Your order is being processed and we will email you a shipping confirmation once it has shipped.
#else
We have modified your order per your request and are now processing your updated transaction. Please verify the changes below and contact customer service if you have any questions.
#end
## BEGIN - In Store Pickup order.
#if (${orderCollectionContainsInStorePickupOrder} == "true")
#foreach ($curorder in ${order.orders})
#if (${curorder.instore_pickup_order} == "Y")
#set($orderToDisplayCount = $orderToDisplayCount + 1)
STORE PICKUP
You will receive an email when your items are ready for pickup. Bring this email receipt with you to the store. Your items will be held at the store for 7 days.
Pickup Location:
${curorder.shipping_address.STORE_NAME}
${curorder.shipping_address.ADDRESS_LINE_1}
#if (${curorder.shipping_address.ADDRESS_LINE_2} and ${curorder.shipping_address.ADDRESS_LINE_2} != "")
${curorder.shipping_address.ADDRESS_LINE_2}
#end
#if (${curorder.shipping_address.APARTMENT} and ${curorder.shipping_address.APARTMENT} != "")
${curorder.shipping_address.APARTMENT}
#end
${curorder.shipping_address.CITY}, ${curorder.shipping_address.STATE} ${curorder.shipping_address.ZIP_CODE}
#if (${curorder.shipping_address.PHONE} and ${curorder.shipping_address.PHONE} != "")
${curorder.shipping_address.PHONE}
#end
#if (${curorder.shipping_address.STORE_HOURS} and ${curorder.shipping_address.STORE_HOURS} != "")
${curorder.shipping_address.STORE_HOURS}
#end
#if (${curorder.gift_message} and ${curorder.gift_message} != "")
Gift Message:
${curorder.gift_message}
#end
Items:
#foreach ($item in ${curorder.items})
${item.name}
#if (${item.color_name} and ${item.color_name} != "")
#if (${item.size_name} and ${item.size_name} != "")
${item.color_name}/${item.size_name}
#else
${item.color_name}
#end
#else
#if (${item.size_name} and ${item.size_name} != "")
${item.size_name}
#end
#end
#if (${item.item_store_pickup_inventory_message})
Status: ${item.item_store_pickup_inventory_message}
#end
#if(${item.gift_wrap} == "true")
Gift Wrap: Yes
#end
Item Price: ${item.item_list_price}
Qty: ${item.item_quantity}
Total: ${item.item_total}
#if (${item.item_discount_total} != "$0.00")
#if (${item.item_discount_total} == ${item.item_list_price})
Discount ${item.item_discount_quantity} FREE
#else
Discount ${item.item_discount_quantity} for ${item.item_total}
#end
#end
#end
#if ($orderCount > 1)
Merchandise: ${curorder.order_items_total}
#if (${curorder.order_gift_wrap_non_discount_total} and ${curorder.order_gift_wrap_non_discount_total} != "$0.00")
Gift Wrap: ${curorder.order_gift_wrap_non_discount_total}
#end
#if (${curorder.order_gift_wrap_discount_total} and ${curorder.order_gift_wrap_discount_total} != "$0.00")
Gift Wrap Discount: -${curorder.order_gift_wrap_discount_total}
#end
#if (${curorder.order_shipping} == "$0.00")
Shipping: FREE
#else
Shipping: ${curorder.order_shipping}
#end
Sales Tax: ${curorder.order_tax}
Shipment Total: ${curorder.order_shipment_total}
#end
#end
#end
#end
## END - In Store Pickup order.
## BEGIN - Regular orders.
#set($regularShipmentCount = 0)
#foreach ($curorder in ${order.orders})
#if (${curorder.my_key} != "GC_ORDER" and ${curorder.instore_pickup_order} != "Y")
#set($regularShipmentCount = $regularShipmentCount + 1)
#set($orderToDisplayCount = $orderToDisplayCount + 1)
#if ($orderToDisplayCount > 1)
-------------------------------
#end
#if ($order.orders.size() > 1)
SHIPMENT ${regularShipmentCount}
#end
Shipping To:
${curorder.shipping_address.FIRST_NAME} ${curorder.shipping_address.LAST_NAME}
${curorder.shipping_address.ADDRESS_LINE_1}
#if (${curorder.shipping_address.ADDRESS_LINE_2} and ${curorder.shipping_address.ADDRESS_LINE_2} != "")
${curorder.shipping_address.ADDRESS_LINE_2}
#end
#if (${curorder.shipping_address.APARTMENT} and ${curorder.shipping_address.APARTMENT} != "")
${curorder.shipping_address.APARTMENT}
#end
${curorder.shipping_address.CITY}, ${curorder.shipping_address.STATE} ${curorder.shipping_address.ZIP_CODE}
#if (${curorder.shipping_address.PHONE} and ${curorder.shipping_address.PHONE} != "")
${curorder.shipping_address.PHONE}
#end
Shipping Via:
#if (${curorder.carrier_code} == "E")
Overnight Delivery
#else
Standard Shipping
#end
#if (${curorder.ship_from_store_order} == "Y")
Shipping from store
#else
Shipping from warehouse
#end
#if (${curorder.gift_message} and ${curorder.gift_message} != "")
Gift Message:
${curorder.gift_message}
#end
Items:
#foreach ($item in ${curorder.items})
${item.name}
#if (${item.color_name} and ${item.color_name} != "")
#if (${item.size_name} and ${item.size_name} != "")
${item.color_name}/${item.size_name}
#else
${item.color_name}
#end
#else
#if (${item.size_name} and ${item.size_name} != "")
${item.size_name}
#end
#end
#if (${item.item_buy_online_inventory_message})
Status: ${item.item_buy_online_inventory_message}
#end
#if (${item.gc_type} and ${item.gc_type} == "GC_TYPE_GC")
#if (${item.gc_message} and ${item.gc_message} != "")
Messsage: ${item.gc_message}
#end
#end
#if(${item.gift_wrap} == "true")
Gift Wrap: Yes
#end
Item Price: ${item.item_list_price}
Qty: ${item.item_quantity}
Total: ${item.item_total}
#if (${item.item_discount_total} != "$0.00")
#if (${item.item_discount_total} == ${item.item_list_price})
Discount ${item.item_discount_quantity} FREE
#else
Discount ${item.item_discount_quantity} for ${item.item_total}
#end
#end
#end
#if ($orderCount > 1)
Merchandise: ${curorder.order_items_total}
#if (${curorder.order_gift_wrap_non_discount_total} and ${curorder.order_gift_wrap_non_discount_total} != "$0.00")
Gift Wrap: ${curorder.order_gift_wrap_non_discount_total}
#end
#if (${curorder.order_gift_wrap_discount_total} and ${curorder.order_gift_wrap_discount_total} != "$0.00")
Gift Wrap Discount: -${curorder.order_gift_wrap_discount_total}
#end
#if (${curorder.order_shipping} == "$0.00")
Shipping: FREE
#else
Shipping: ${curorder.order_shipping}
#end
Sales Tax: ${curorder.order_tax}
Shipment Total: ${curorder.order_shipment_total}
#end
#end
#end
## END - Regular orders.
## BEGIN - Electronic Certificate order.
#if (${orderCollectionContainsElectronicCertificateOnlyOrder} == "true")
#foreach ($curorder in ${order.orders})
#if (${curorder.my_key} == "GC_ORDER")
#set($orderToDisplayCount = $orderToDisplayCount + 1)
#if ($orderToDisplayCount > 1)
-------------------------------
#end
DIGITAL DELIVERY
Items:
#foreach ($item in ${curorder.items})
${item.name}
#if (${item.color_name} and ${item.color_name} != "")
#if (${item.size_name} and ${item.size_name} != "")
${item.color_name}/${item.size_name}
#else
${item.color_name}
#end
#else
#if (${item.size_name} and ${item.size_name} != "")
${item.size_name}
#end
#end
Recipient: ${item.gc_recipient_name} (${item.gc_recipient_email})
#if (${item.gc_message} and ${item.gc_message} != "")
Message: ${item.gc_message}
#end
Item Price: ${item.item_list_price}
Qty: ${item.item_quantity}
Total: ${item.item_total}
#if (${item.item_discount_total} != "$0.00")
#if (${item.item_discount_total} == ${item.item_list_price})
Discount ${item.item_discount_quantity} FREE
#else
Discount ${item.item_discount_quantity} for ${item.item_total}
#end
#end
#end
#if ($orderCount > 1)
Merchandise: ${curorder.order_items_total}
Sales Tax: ${curorder.order_tax}
Shipment Total: ${curorder.order_shipment_total}
#end
#end
#end
#end
## END - Electronic Certificate order.
## BEGIN - Order Summary:
#if ($orderCount > 1)
-------------------------------
#end
Merchandise: ${order.grand_items_total}
#if (${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "false")
#if (${order.grand_gift_wrap_non_discount_total} and ${order.grand_gift_wrap_non_discount_total} != "$0.00" and ${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "false")
Gift Wrap: ${order.grand_gift_wrap_non_discount_total}
#end
#if (${order.grand_gift_wrap_discount_total} and ${order.grand_gift_wrap_discount_total} != "$0.00" and ${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "false")
Gift Wrap Discount: -${order.grand_gift_wrap_discount_total}
#end
#end
#if (${orderCollectionOnlyContainsElectronicCertificateOnlyOrder} == "false")
#if (${order.grand_shipping} == "$0.00")
Shipping: FREE
#else
Shipping: ${order.grand_shipping_rate}
#end
#if (${order.grand_shipping} != "$0.00" and ${order.grand_orders_shipping_discount} != "$0.00")
Shipping Discount: -${order.grand_orders_shipping_discount}
#end
#end
Sales Tax: ${order.grand_tax}
#if ( ${order.grand_orders_discount_total} != "$0.00")
Order Discount: -${order.grand_orders_discount_total}
#end
#if ( ${order.gc_total} != "$0.00")
Gift Certificate: -${order.gc_total}
#end
#if (${order.relate_rewards} and ${order.relate_rewards}!= "$0.00")
Rewards: -${order.relate_rewards}
#end
Order Total: ${order.cc_total}
Payment Method: #if (${order.cc_total} == "$0.00")
No Payment Needed
#elseif (${order.credit_card_type} == "PP")
PayPal
#else
Credit Card
#end
## END - Order Summary:
If you have any questions about your order, please contact a ${site-name} Customer Service Representative or call us toll free at ${site-toll-free-number}. Please do not reply to this email as it does not accommodate replies.
Contact Us Auto-Response Email Template
Forgot Your Password Email Template
Gift Certificate - Purchaser Email Template
Gift Certificate - Recipient Email Template
Loyalty - Welcome New Members Email Template
Order Cancellation Email Template
Order Confirmation Email Template