Failed Orders / Basket Reminder
The Failed Orders email is setup to resend an email to anyone who attempted to place an order but did not succeed. The script will run every 10 minutes.
Criteria
The following must be met for the email to be sent:
- Customer must have attempted to place an order on the checkout.
- Their email address must have been entered.
- The attempt must have been made more than 15 minutes ago, as this gives time to confirm they have not placed an order since.
- They have not had a Failed Order email in the same time slot, to avoid duplicate emails.
- They must still have items in their basket at the time the Failed Order email is sent.
Email
The email sent out for stock reminders is customisable and should be managed via the Back-end in the Orders -> Emails section.
If an email does not already exist here for the "Product Stock Reminder" email type, then one must be created using the following steps:
- Click the "Add Email" tab at the top of the screen
- Select "Failed Order" from the "Use" select box
- Set any email name, subject and content (content goes in the box labelled "Email") desired
- Ignore the "Order #" box
- Click "Add Email Template"
Please see an example email template that can be used to get started with below.
{if $firstname}
<h1>Dear {$firstname} {$lastname},</h1>
{/if}
<p>We spotted that you did not complete your order. Perhaps you would like to try again? You can do so by following this link to retrieve your basket: <a href="http://{$ac_http_host}/basket?basket={$user_cookie}">by clicking here.</a></p>
<table cellpadding="0" cellspacing="0" class="item">
<tr>
<th>Item</th>
<th>Product Description</th>
<th>Quantity</th>
<th>Price</th>
</tr>
{foreach from=$failed_items item="basket"}
<tr>
<td><a href="http://{$ac_http_host}{$basket.product.product_filename}"><img src="http://{$ac_http_host}/{product_image_uri product_id=$basket.product_id width=100 height=100}" /></a></td>
<td><a href="http://{$ac_http_Host}{$basket.product.product_filename}">{$basket.product.product_name}</a><br />Item no: {$basket.product.product_reference}</td>
<td>{$basket.product_quantity}</td>
<td>{$basket.product.my_price|displayPrice}</td>
</tr>
{/foreach}
</table>
Updated almost 3 years ago