Email Templates for AbleCommerce 7.0.2Title: Email Template Modifications for Upgrade Version: AbleCommerce 7.0.2 Asp.Net Applies to: Upgrading from version 7.0.1 to 7.0.2 Date: 02/10/2009 Download: AC7.0.2_email_templates.zip
|
|
DETAILS |
|
Email Template Modifications for UpgradeAfter upgrading from AbleCommerce 7.0.1 to 7.0.2, you may want to update your email templates to show some new enhancements. In the list below, we have shown which templates have been modified.
You can either make line-by-line changes as shown in the detailed instructions below. Or, you can download all new 7.0.2 templates using the link above and follow the instructions below. RE-INSTALLING AN EMAIL TEMPLATE:If you choose to re-install the already modified AbleCommerce 7.0.2 email templates.
|
|
|
DETAILED INSTRUCTIONS: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 - show additional details for Gift Certificates, Coupons, and Discounts. 1) On, or near line 206, find: #if (($orderItem.OrderItemType == "Product")) Replace line above with: #if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount")) 2) On, or near line 208, find: <td class="Email" style="text-align: center;">$orderItem.Sku</td> Replace line above and add these additional lines: <td class="Email" style="text-align: center;"> #if (($orderItem.OrderItemType == "Product")) $orderItem.Sku #elseif (($orderItem.OrderItemType == "Discount")) DISCOUNT #elseif (($orderItem.OrderItemType == "Coupon")) COUPON #end </td> 3) Around line 227, find: #end <table class="Email"> Add the following lines immediately after #end and before the <table> on line 228: #foreach ($gc in $order.GiftCertificates) #beforeall <table class="Email"> <tr> <th class="Email" >Gift Certificates</th> </tr> </table> <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>Status</strong></td> </tr> #each <tr class="Email"> <td class="Email" style="text-align: left;" > <a href="${store.StoreUrl}Members/MyGiftCertificate.aspx?GiftCertificateId=$gc.GiftCertificateId">$gc.Name</a> </td> <td class="Email" style="text-align: left;" > #if($gc.Transactions.Count > 0) #set ($lastIndex = $gc.Transactions.Count - 1) #set ($transaction = $gc.Transactions.get_item(${lastIndex})) $transaction.Description.ToString() #end </td> </tr> #afterall </table> #end Lost Password - show the username for the registered account On, or near lines 41 and 42, find: <p>If you did not request to have your password reset, you can safely ignore this email. We assure you that your customer account is safe. </p> <p><strong>Click the link below to reset your password:</strong></p> Between the two lines above, add the following line: <p>The user name associated with your email address is <strong>$customer.UserName</strong></p> Gift Certificate Validated - show additional details for Coupons and Discounts 1) On, or near line 153, 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") ) 2) Around line 159, find: DISCOUNT Add the following lines immediately after DISCOUNT and before the #elseif on Line 160: #elseif (($orderItem.OrderItemType == "Coupon")) COUPON 3) On, or near line 205, find: #if (($orderItem.OrderItemType == "Product")) Replace line above with: #if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount")) 4) On, or near line 207, find: <td class="Email" style="text-align: center;">$orderItem.Sku</td> Replace line above and add these additional lines: <td class="Email" style="text-align: center;"> #if (($orderItem.OrderItemType == "Product")) $orderItem.Sku #elseif (($orderItem.OrderItemType == "Discount")) DISCOUNT #elseif (($orderItem.OrderItemType == "Coupon")) COUPON #end </td> 5) On, or around line 266, find: </tr> Add the following lines immediately after </tr> and before the <tr> on line 267: <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("ulc") </td> </tr> Order Shipped - show additional details for Gift Certificates, Coupons, and Discounts. 1) On, or near line 213, find: #if (($orderItem.OrderItemType == "Product")) Replace line above with: #if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount")) 2) On, or near line 215, find: <td class="Email" style="text-align: center;">$orderItem.Sku</td> Replace line above and add these additional lines: <td class="Email" style="text-align: center;"> #if (($orderItem.OrderItemType == "Product")) $orderItem.Sku #elseif (($orderItem.OrderItemType == "Discount")) DISCOUNT #elseif (($orderItem.OrderItemType == "Coupon")) COUPON #end </td>
|