Email Templates for AbleCommerce 7.0.3

Title: Email Template Modifications for Upgrade

Version: AbleCommerce 7.0.3 Asp.Net

Applies to: Upgrading from version 7.0.2 to 7.0.3

Date:  06/01/2009

 

DETAILS

IMPORTANT UPDATE

Beginning at version 7.0.3, the AbleCommerce store email templates are now accessible as standard html files.  After upgrading, you can find all of your existing email templates copied to the \App_Data\EmailTemplates\1\ folder of your installation.  

e.g.  c:\inetpub\wwwroot\app_data\emailtemplates\1\*.html

By moving the content portion of your email templates to a standard html file, you should find it easier to merge any changes, customize, and make future updates.

If you go to the \Install\EmailTemplates\ folder, you will find a copy of all 15 email templates in their original form.  If you have customized your email templates, we recommend that you use a file compare and merge utility such as WinMerge.  WinMerge information is available at http://winmerge.org

If you have minimal changes to your existing templates, you may want to make the line-by-line changes as shown in the detailed instructions below.  

Additionally, you may continue to update your email templates from the merchant menu.  Any changes you make here will automatically update the html files located on the server.


Email Template Modifications for Upgrade

After upgrading from AbleCommerce 7.0.2 to 7.0.3, you may want to update your email templates to correct an issue where hidden components were being displayed in the email invoices.  In the list below, we have shown which templates have been modified.

  • Customer Order Notification

  • Gift Certificate Validated

  • License Key Fulfilled

  • Order Shipped

  • Order Shipped Partial

 

 

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.  Or, you can download and edit the files manually using any standard text/html editor.

Make sure to remove any extraneous line breaks that may result from copying from this document.

Customer Order Notification -  exclude hidden kit components

1) On, or near line 148, find:

#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap") )

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if ((($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap")) && !$orderItem.IsHidden)

2) On, or near line 206, find:

#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount"))

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if ((($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount")) && !$orderItem.IsHidden)

 

Gift Certificate Validated -  exclude hidden kit components

1) On, or near line 153, find:

#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap") )

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if ((($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap")) && !$orderItem.IsHidden)

2) On, or near line 207, find:

#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount"))

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if ((($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount")) && !$orderItem.IsHidden)

 

License Key Fulfilled -  exclude hidden kit components

1) On, or near line 121, find:

#if (($orderItem.OrderItemType == "Product"))

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if (($orderItem.OrderItemType == "Product") && !$orderItem.IsHidden)

 

Order Shipped - exclude hidden kit components

1) On, or near line 159, find:

#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap") )

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if ((($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap")) && !$orderItem.IsHidden)

2) On, or near line 213, find:

#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount"))

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if ((($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount")) && !$orderItem.IsHidden)

 

Order Shipped Partial - exclude hidden kit components

1) On, or near line 158, find:

#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap") )

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if ((($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Discount") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "GiftWrap")) && !$orderItem.IsHidden)

2) On, or near line 213, find:

#if (($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount"))

Add && !$orderItem.IsHidden) to the end of the line so it looks like this:

#if ((($orderItem.OrderItemType == "Product") || ($orderItem.OrderItemType == "Coupon") || ($orderItem.OrderItemType == "Discount")) && !$orderItem.IsHidden)