Add Merchant/Custom Fields to Digital Fulfilment Email
Posted: Wed Sep 14, 2011 2:17 am
Hi all,
I have digital goods being able to be purchased from our shop.
The digital goods represent a unique code used to access an online course, and can be purchased for multiple students. In the product page, merchant/custom fields are completed as a product template to identify each student (eg name, contact details etc). Each student/product is entered as a separate item to the shopping cart, and a unique digital good serial key is issued per student. There are then unique emails sent out as fulfillment emails, for each student. This section of the procedure is all good - all works as required.
What I would like to do is to edit the Fulfillment Email Template so that it will put the merchant/custom fields from each student on the email, and the quantity (don't need the ID, price or total).
There is obviously something a bit wrong with my code however, because all i can bring up is the actual name of the course/product issued for the code, and quantity (as required - all OK this part), but the other custom fields won't appear????!!
Please help. Able 7.0.3
TIA. Wendy
I have digital goods being able to be purchased from our shop.
The digital goods represent a unique code used to access an online course, and can be purchased for multiple students. In the product page, merchant/custom fields are completed as a product template to identify each student (eg name, contact details etc). Each student/product is entered as a separate item to the shopping cart, and a unique digital good serial key is issued per student. There are then unique emails sent out as fulfillment emails, for each student. This section of the procedure is all good - all works as required.
What I would like to do is to edit the Fulfillment Email Template so that it will put the merchant/custom fields from each student on the email, and the quantity (don't need the ID, price or total).
There is obviously something a bit wrong with my code however, because all i can bring up is the actual name of the course/product issued for the code, and quantity (as required - all OK this part), but the other custom fields won't appear????!!
Please help. Able 7.0.3
TIA. Wendy
Code: Select all
<table class="Email">
<tr>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Name</strong></td>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Quantity</strong></td>
</tr>
<tr>
<td class="Email">$orderItem.Name
#if ($orderItem.VariantName.Length > 0)
($orderItem.VariantName)
#end
#foreach($orderItemInput in $orderItem.Inputs)
#if (!$orderItemInput.IsMerchantField)
<br /><b>$orderItemInput.Name:</b> $orderItem.Input.InputValue
#end
#end
</td>
<td class="Email" style="text-align: center;">$orderItem.Quantity</td>
</tr>
</table>