|
These instructions are intended for a customer who needs step-by-step detail of each change. The itemization of each code modification is shown in the sections below. The heading of each section is the name of the email template. To begin, login to your merchant menu and go to Configure > Email > Templates. Find the name of the email template you wish to modify and click the EDIT icon.
Since we have used line numbers as a guide to the location of each change, you may wish to copy the entire text into an editor that provides line numbering. After making changes, just copy and paste the entire text back into the email template text field and save.
Make sure to remove any extraneous line breaks that may result from copying from this document.
Customer Order Notification
On, or near line 57, find:
<td class="Email" width="500"><p>$order.OrderId</p></td>
Replace line above with:
<td class="Email" width="500"><p>$order.OrderNumber</p></td>
On, or near line 73, find:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=$order.OrderId">View Online</a></td>
Replace line above with:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId">View Online</a></td>
Vendor Notification
On, or near line 45, find:
<strong>Order Number</strong>: $order.OrderId<br>
Replace line above with:
<strong>Order Number</strong>: $order.OrderNumber<br>
Gift Certificate Validated
On, or near line 62, find:
<td class="Email" width="500"><p>$order.OrderId</p></td>
Replace line above with:
<td class="Email" width="500"><p>$order.OrderNumber</p></td>
On, or near line 78, find:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=$order.OrderId">View Online</a></td>
Replace line above with:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId">View Online</a></td>
Order Shipped Partial
On, or near line 59, find:
<td class="Email" width="500"><p>$order.OrderId</p></td>
Replace line above with:
<td class="Email" width="500"><p>$order.OrderNumber</p></td>
On, or near line 74, find:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=$order.OrderId">View Online</a></td>
Replace line above with:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId">View Online</a></td>
Order Shipped
On, or near line 61, find:
<td class="Email" width="500"><p>$order.OrderId</p></td>
Replace line above with:
<td class="Email" width="500"><p>$order.OrderNumber</p></td>
On, or near line 74, find:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=$order.OrderId">View Online</a></td>
Replace line above with:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId">View Online</a></td>
ESD file is activated
On, or near line 40, find:
<p><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=$order.OrderId"> View your Order Online</a>
Replace line above with:
<p><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId"> View your Order Online</a>
On, or near line 63, find:
<td class="Email" width="500"><p>$order.OrderId</p></td>
Replace line above with:
<td class="Email" width="500"><p>$order.OrderNumber</p></td>
On, or near line 79, find:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=$order.OrderId">View Online</a></td>
Replace line above with:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId">View Online</a></td>
License key is fulfilled
On, or near line 40, find:
<p><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=$order.OrderId"> View your Order Online</a>
Replace line above with:
<p><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId"> View your Order Online</a>
On, or near line 67, find:
<td class="Email" width="500"><p>$order.OrderId</p></td>
Replace line above with:
<td class="Email" width="500"><p>$order.OrderNumber</p></td>
On, or near line 83, find:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=$order.OrderId">View Online</a></td>
Replace line above with:
<td class="Email"><a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId">View Online</a></td>
Note added by customer
On, or near line 29, find:
<p><strong>On ${note.CreatedDate}, a new message was added to <a href="${store.StoreUrl}Admin/Orders/OrderHistory.aspx?OrderId=$order.OrderId">Order Number $order.OrderId</a></strong></p>
Replace line above with:
<p><strong>On ${note.CreatedDate}, a new message was added to <a href="${store.StoreUrl}Admin/Orders/OrderHistory.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId">Order Number $order.OrderNumber</a></strong></p>
Note added by merchant
On, or near line 29, find:
<p>A message has been added to your Order Number $order.orderId. </p>
Replace the line above with:
<p>A message has been added to your Order Number $order.orderNumber. </p>
On, or near line 32, find:
<p><strong>To respond to this message, you will need to login and <a href="${store.StoreUrl}Members/MyOrder.aspx?OrderId=${order.OrderId}">view Order $order.OrderId.</a></strong></p>
Replace the line above with:
<p><strong>To respond to this message, you will need to login and <a href="${store.StoreUrl}Members/MyOrder.aspx?OrderNumber=$order.OrderNumber&OrderId=$order.OrderId">view Order $order.OrderNumber.</a></strong></p>
Modifications to show Coupons (optional)
The following changes are optional. If applied, they will show coupons itemized in the invoice display and also summarized in the order sub-total.
The three changes below are applicable to 3 email templates so line number may vary. The templates are:
On, or near line 148, find:
#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "GiftWrap") )
Replace line above with:
#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap") )
On, or near line 154, find the following lines of code:
#elseif (($orderItem.OrderItemType == "Discount"))
DISCOUNT
ADD the following lines of code after DISCOUNT:
#elseif (($orderItem.OrderItemType == "Coupon"))
COUPON
On, or near line 267, ADD the following lines of code after the ending </tr> for Discounts and before the beginning <tr> for Total:
<tr>
<td width="40%" style="background:#cccccc; color:#00000; text-align: right;">
<strong>Coupons:</strong>
</td>
<td width="15%" class="Email" style="text-align: right;">
$order.Items.TotalPriceById(5).ToString("C")
</td>
</tr>
|