#set ( $orderNumber = $order.orderNumber ) #set ( $customer = $order.customer ) #set($searcherManager = $store.getSearcherManager())

Order #$orderNumber

$order.dateOrdered

#if( $canmanageorders )
#else $order.getOrderStatus() #end #if( $canmanageorders)

Send email receipt

#end #if ( $customer.billingAddress && $customer.billingAddress.address1 ) #set ( $customerAddress = $customer.billingAddress ) #else #set ( $customerAddress = $customer.shippingAddress ) #end

Customer:
$!customer.getFirstName() $!customer.getLastName() #if( $user.hasPermission("oe.cart.admin" ) ) ( $!customer.userName ) #end

$!customerAddress.address1
#if ( $customerAddress.address2 && $customerAddress.address2 != "" ) $customerAddress.address2
#end $!customerAddress.city #if ($customerAddress.state || $customerAddress.zipCode || $customerAddress.country),#end $!customerAddress.state $!customerAddress.zipCode $!customerAddress.country
#if ($customer.phone1)Phone: $customer.phone1
#end #if ($customer.email)Email: $customer.email
#end #if( $customer.fax ) Fax: $!customer.fax
#end #if( $customer.userfield2 ) UserField 2: $!customer.userfield2 #end

#if ( $customer.shippingAddress && $customer.shippingAddress.address1 && $customer.billingAddress && $customer.billingAddress.address1 )

Ship to:
$customer.shippingAddress.address1
#if ( $customer.shippingAddress.address2 && $customer.shippingAddress.address2 != "" ) $customer.shippingAddress.address2
#end $customer.shippingAddress.city, $customer.shippingAddress.state $customer.shippingAddress.zipCode $!customer.shippingAddress.country

#end #if ($content.isPropertyTrue("showprice")) #end #foreach ($detail in $store.fieldArchive.getDataProperties("item","orderdetails",$user)) #end #foreach ($detail in $store.fieldArchive.getDataProperties("product","orderdetails",$user)) #end #set( $types = $searcherManager.getList($catalogid ,"itemstatus") ) #foreach ( $item in $order.items ) #set($path ="$apphome/products/${store.getProductPathFinder().idToPath($item.getProduct().getId())}.html") #if ($content.isPropertyTrue("showprice")) #end #foreach ( $detail in $store.fieldArchive.getDataProperties("item","orderdetails",$user) ) #end #foreach ( $detail in $store.fieldArchive.getDataProperties("product","orderdetails",$user) ) #end #foreach ( $option in $item.getOptions() ) #end #end #if ($content.isPropertyTrue("showprice")) #if ( ($order.shippingMethod.description && $order.shippingMethod.description != "") || $order.shippingCost != "0.00" ) #end #end
Product ID Item SKU QuantityUnit Price$!detail.text$!detail.text
$item.product.id $item.sku $item.quantity$item.yourPrice $!item.getProperties().get($detail.id) $!item.getProduct().get($detail.id) #if($canmanageorders) #else ## $!types.getById($item.status) #end
  $option.name: $!option.value
#if( $canmanageorders ) #end

#if( $canmanageorders )
#foreach ( $item in $order.items ) #end
#foreach ( $item in $order.items ) #end
#end

Subtotal: $order.subTotal
Tax: $order.tax
Ship by $order.shippingMethod.description: $order.shippingCost
Grand Total: $order.totalPrice

#if ( $order.paymentMethod.cardNumber && $order.paymentMethod.cardNumber != "" ) #if( $order.getOrderState().getId() == "authorized" ) Authorized $order.totalPrice to $order.paymentMethod.creditCardType
#elseif( $order.getOrderState().getId() == "captured" ) Captured $order.totalPrice to $order.paymentMethod.creditCardType
#else Accepted $order.totalPrice on $order.paymentMethod.creditCardType
#end #if( $canmanageorders ) Card number: $order.paymentMethod.cardNumber
CVC: $!order.paymentMethod.cardVerificationCode
#end Expiration date: $order.paymentMethod.expirationDateString
#if( $canmanageorders ) #if( $order.getOrderState().getId() == "authorized" )

Once the product is shipped then charges can be applied:
#end #end #end #if ( $order.paymentMethod.poNumber ) Purchase Order: $order.paymentMethod.poNumber
#end #if ( $order.paymentMethod.billMeLater ) Bill Me Later
#end #if ( $order.paymentMethod.note ) Notes: $order.paymentMethod.note #end

Download