Order Cancellation Email Template

An example of the Order Cancellation email is below.

Sample Order Cancellation HTML Version

Sample Order Cancellation Text Version

Supported Email Tokens

The following email tokens can be used in the Order Cancellation email template:

${order.number}

${order.order_date}

${order.billing_address.FIRST_NAME}

${order.billing_address.LAST_NAME}

${order.cancel_reason}

${item.name}

${item.gc_type}

${item.size_name}

${item.color_name}

${item.item_status}

${item.gc_message}

${item.gift_wrap}

${item.item_list_price}

${item.item_quantity_canceled}

${item.item_canceled_total}

${sitename}

${site-toll-free-number}

Sample Order Cancellation HTML Version

Order Cancellation HTML Body Contents

An example of the HTML Body Contents for the Order Cancellation email template is below.

Name: Order Cancellation

Subject: Order Cancelation Notification

From: Note: If a From address is not defined here, the system uses the from address defined in the custserv.email site parameter.

HTML Body Contents:

<html>

    <head>

        <title>Order Cancellation</title>

        <!-- define styles  here just so that if any email client takes only body content. -->

        <link href="${site-url}/css/main_stylesheet.css" rel="stylesheet"/>

        <style type="text/css">

            body {background-color: #FFFFFF; color: #666666; font-family:Arial,Helvetica,sans-serif; font-size: 11px; text-decoration:none;}

                .fontMedium{font-family: arial; font-size: 13px; text-decoration: none; line-height: 16px;}

                td { font-family: arial; font-size: 11px; text-decoration: none; line-height: 15px; color:#666666;}

                .header {font-family: arial; font-size:20px;}

                .nowrap { white-space: nowrap; }

        </style>

    </head>

    <body>

        <!-- main table block -->

        <table border="0" style="border:1px solid #EFEFEF;" cellspacing="5" cellpadding="0" width="730"><tr><td>

            <table border="0" cellspacing="0" cellpadding="0" width="100%">

                <tr>

                    <td> <div style="height: 8px;"></div></td>

                </tr>

                <!-- Header message block -->

                <tr>

                    <td>

                        <table border="0" >

                            <tr>

                                <td valign="top" align="left" width="99%">

                                    <div style="width: 4px;"></div>

                                    <img src="${site-url}/assets/images/text/english/logo.jpg" width="246" height="47" border="0" align="absmiddle"/>

                                </td>

                                <td><div style="width: 10px;"></div></td>

                                <td valign="top">

                                    <div class="nowrap">

                                        <div style="display: table-cell; vertical-align: top;"><b>Order #:&nbsp;</b></div>

                                        <div style="display: table-cell; vertical-align: top;">${order.number} (Online)

                                            #if(${locate-order-number})

                                                <br/>${locate-order-number} (Locate)

                                            #end

                                            #if(${xstore-order-number})

                                                <br/>${xstore-order-number} (XStore)

                                            #end

                                        </div>

                                    </div>

                                    <div class="nowrap">

                                        <div style="display: table-cell; vertical-align: top;">

                                            <b>Order Date:&nbsp;</b>${order.order_date}

                                        </div>

                                    </div>

                                    <div class="nowrap">

                                        <div style="display: table-cell; vertical-align: top;">

                                            <b>Cancel Reason:&nbsp;</b>${order.cancel_reason}

                                        </div>

                                    </div>

                                </td>

                            </tr>

                        </table>

                    </td>

                </tr>

                <tr>

                    <td> <div style="height: 8px;"></div></td>

                </tr>

                <!-- Header starts -->

                <tr>

                    <td bgcolor="#EFEFEF" height="48"><span class="header" style="padding-left:5px;"><b>Order Cancelation Notification</b></span></td>

                </tr>

                <tr>

                    <td> <div style="height: 8px;"></div></td>

                </tr>

                <!-- Header message block -->

                <tr>

                    <td>

                        <table border="0" width="100%">

                            <tr>

                                <td valign="top" align="left">

                                    <div class="fontMedium" style="padding: 15px 5px;">

                                        Dear ${order.billing_address.FIRST_NAME} ${order.billing_address.LAST_NAME},<br/><br/>

                                        Your order has been canceled for the reasons indicated below. The items listed below were part of the canceled order.<br/><br/>

                                        <b>Cancelation Reason:</b> ${order.cancel_reason}<br/>

                                    </div>

                                </td>

                            </tr>

                        </table>

                    </td>

                </tr>

                <!-- Purchasing Information -->

                <tr>

                    <td>

                        <table border="0" width="100%" cellpadding="5" cellspacing="0">

                            <tr bgcolor="#EFEFEF">

                                <td align="left" valign="top" width="400">

                                    <b>ITEM DESCRIPTION</b>

                                </td>

                                <td align="left" valign="top" width="100">

                                    <b>ITEM PRICE</b>

                                </td>

                                <td align="left" valign="top" width="100">

                                    <b>QTY</b>

                                </td>

                                <td align="right" valign="top" width="100">

                                    <b>TOTAL</b>

                                </td>

                            </tr>

                            <!-- iterate order items -->

                            #foreach ($item in ${order.items})

                                <tr>

                                    <td align="left" valign="top" width="400">

                                        <b>${item.name}</b>

                                        #if (${item.gc_type} and ${item.gc_type} == "GC_TYPE_GC")

                                            <br /><span>${item.size_name}/${item.color_name}</span>

                                            <br /><span>Status: ${item.item_status}</span>

                                            <br /><span>Message: ${item.gc_message}</span>

                                        #else

                                            #if (${item.color_name} and ${item.color_name} != "")

                                                #if (${item.size_name} and ${item.size_name} != "")

                                                    <br /><span>${item.color_name}/${item.size_name}</span>

                                                #else

                                                    <br /><span>${item.color_name}</span>

                                                #end

                                            #else

                                                #if (${item.size_name} and ${item.size_name} != "")

                                                    <br /><span>${item.size_name}</span>

                                                #else

                                                #end

                                            #end

                                            <br /><span>Status: ${item.item_status}</span>

                                            #if (${item.gift_wrap} == "true")

                                                <br /><span>Gift Wrap: Yes</span>

                                            #else

                                                <br /><span>Gift Wrap: No</span>

                                            #end

                                        #end

                                    </td>

                                    <td align="left" valign="top" width="100">

                                        #if (${item.item_discount_total} == "$0.00")

                                            ${item.item_list_price}

                                        #else

                                            <strike>${item.item_list_price}</strike>

                                        #end

                                    </td>

                                    <td align="left" valign="top" width="100">${item.item_quantity_canceled}</td>

                                    <td align="right" valign="top" width="100">${item.item_canceled_total}</td>

                                </tr>

                                <tr>

                                    <td colspan="4" style="border-top:1px solid #CCCCCC"><div style="width: 1px; height: 1px;"></div></td>

                                </tr>

                            #end

                            <!-- iterate order items end -->

                        </table>

                    </td>

                </tr>

                <tr>

                    <td>

                        <table border="0" width="100%">

                            <tr>

                                <td valign="top">

                                    <div style="width: 550px;">

                                        If you have any questions about your order, please contact a <a href="${site-url}/custserv/custserv.jsp">${site-name} Customer Service Representative</a> or call us toll free at ${site-toll-free-number}. Please do not reply to this email as it does not accommodate replies.

                                    </div>

                                </td>

                            </tr>

                        </table>

                    </td>

                </tr>

                <tr>

                    <td> <div style="height: 8px;"></div></td>

                </tr>

            </table>

        </td></tr></table>

    </body>

</html>

Sample Order Cancellation Text Version

Order Cancellation Text Body Contents

An example of the Text Body Contents for the Order Cancellation email template is below.

Name: Order Cancellation

Subject: Order Cancelation Notification

From: Note: If a From address is not defined here, the system uses the from address defined in the custserv.email site parameter.

Text Body Contents:

Order Cancelation Notification

Order#: ${order.number}

Order Date: ${order.order_date}

Dear ${order.billing_address.FIRST_NAME} ${order.billing_address.LAST_NAME},

Your order has been canceled for the reasons indicated below. The items listed below were part of the canceled order.

    Cancel Reason: ${order.cancel_reason}

Items:

#foreach ($item in ${order.items})

${item.name}

#if (${item.gc_type} and ${item.gc_type} == "GC_TYPE_GC")

${item.size_name}/${item.color_name}

Status: ${item.item_status}

Message: ${item.gc_message}

#else

#if (${item.color_name} and ${item.color_name} != "")

#if (${item.size_name} and ${item.size_name} != "")

${item.color_name}/${item.size_name}

#else

${item.color_name}

#end

#else

#if (${item.size_name} and ${item.size_name} != "")

${item.size_name}

#else

#end

#end

Status: ${item.item_status}

#if (${item.gift_wrap} == "true")

Gift Wrap: Yes

#else

Gift Wrap: No

#end

#end

Item Price: ${item.item_list_price}

Qty: ${item.item_quantity_canceled}

Total: ${item.item_canceled_total}

#end

If you have any questions, please contact a ${sitename} Customer Service Representative or call us toll free at ${site-toll-free-number}. Please do not reply to this email as it does not accommodate replies.

See also

Email Templates

HTML Body Contents

Text Body Contents

Contact Us Auto-Response Email Template

Email a Friend Email Template

Forgot Your Password Email Template

Gift Certificate - Purchaser Email Template

Gift Certificate - Recipient Email Template

Loyalty - Welcome New Members Email Template

Order Cancellation Email Template

Order Confirmation Email Template

Share Wish List Email Template

Validate Email Email Template